Unable to pwd in ZFS snapshot
Fabian Keil
freebsd-listen at fabiankeil.de
Sat Feb 7 13:25:38 PST 2009
Peter Jeremy <peter at vk2pj.dyndns.org> wrote:
> 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 at 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
I can reproduce this on:
FreeBSD TP51.local 8.0-CURRENT FreeBSD 8.0-CURRENT #30: Sat Feb 7 19:37:07 CET 2009 fk at TP51.local:/usr/obj/usr/src/sys/THINKPAD i386
It seems to work with bash's builtin though:
fk at TP51 /tank/privoxy/.zfs/snapshot/2009-02-07 $df -k .
Filesystem 1024-blocks Used Avail Capacity Mounted on
tank/privoxy at 2009-02-07 3704832 45824 3659008 1% /tank/privoxy/.zfs/snapshot/2009-02-07
fk at TP51 /tank/privoxy/.zfs/snapshot/2009-02-07 $/bin/pwd
pwd: .: No such file or directory
fk at TP51 /tank/privoxy/.zfs/snapshot/2009-02-07 $pwd
/tank/privoxy/.zfs/snapshot/2009-02-07
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20090207/0c6ec034/signature.pgp
More information about the freebsd-fs
mailing list