Unable to pwd in ZFS snapshot

Randy Sofia randysofia at gmail.com
Thu Feb 4 04:42:47 UTC 2010


`pwd` returns "No such file or directory" when browsing snapshot files. This
was addressed in:
http://lists.freebsd.org/pipermail/freebsd-fs/2009-February/005675.html  but
remains the same as of 8.0-RELEASE.

I am wondering if this is the expected behavior or if this was left by the
wayside.

A work around is available as per the previous discussion:
zfs set snapdir=visible volume

Reproducible behavior:
CANAAN# zfs snapshot pithos/media at 0_day_ago
CANAAN# cd /pithos/media/.zfs/snapshot/0_day_ago/
CANAAN# pwd
pwd: .: No such file or directory
CANAAN# uname -a
FreeBSD CANAAN 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Fri Dec 18 00:38:33 UTC
2009     root@:/usr/obj/usr/src/sys/CANAAN  amd64

--randy


More information about the freebsd-fs mailing list