Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 2009 07:09:19 +1100
From:      Peter Jeremy <peter@vk2pj.dyndns.org>
To:        freebsd-fs@freebsd.org
Subject:   Unable to pwd in ZFS snapshot
Message-ID:  <20090207200918.GA58657@test71.vk2pj.dyndns.org>

next in thread | raw e-mail | index | archive | help

--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I'm running -current from late last year (just after the ZFS v13
import) and have found that I can't determine the current working
directory inside a snapshot:
# df -k /usr/ports/.zfs/snapshot/pre_7.4
Filesystem         1024-blocks     Used     Avail Capacity  Mounted on
tank/ports@pre_7.4   877019136 31293824 845725312     4%    /usr/ports/.zfs=
/snap
shot/pre_7.4
# cd /usr/ports/.zfs/snapshot/pre_7.4
# pwd
pwd: .: No such file or directory
# ls .
=2Ecvsignore      accessibility   dns             math            security
CHANGES         arabic          editors         mbone           shells
COPYRIGHT       archivers       emulators       misc            sysutils
CVS             astro           finance         multimedia      textproc
GIDs            audio           french          net             ukrainian
INDEX-7         benchmarks      ftp             net-im          vietnamese
INDEX-8         biology         games           net-mgmt        work
KNOBS           build.cvsupdate german          net-p2p         www
LEGAL           build.diffs     graphics        news            x11
MOVED           cad             hebrew          packages        x11-clocks
Makefile        chinese         hungarian       palm            x11-drivers
Mk              comms           irc             polish          x11-fm
README          converters      japanese        ports-mgmt      x11-fonts
Templates       databases       java            portuguese      x11-servers
Tools           deskutils       korean          print           x11-themes
UIDs            devel           lang            russian         x11-toolkits
UPDATING        distfiles       mail            science         x11-wm
#=20

This breaks (eg) make.  I got around it by cloning the snapshot but
this behaviour strikes me as counter-intuitive (and the error message
leaves something to be desired).

--=20
Peter Jeremy

--GvXjxJ+pjyke8COw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEARECAAYFAkmN6m4ACgkQ/opHv/APuIfoUACdEKTd9KlftfT/4WGMfJt4QD+6
TFgAniYt34ZbL2gBfHFSP1okBCS68nTk
=SGv5
-----END PGP SIGNATURE-----

--GvXjxJ+pjyke8COw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090207200918.GA58657>