Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2009 22:12:02 +0100
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        freebsd-fs@freebsd.org
Subject:   Re: Unable to pwd in ZFS snapshot
Message-ID:  <20090207221202.1a19456a@fabiankeil.de>
In-Reply-To: <20090207200918.GA58657@test71.vk2pj.dyndns.org>
References:  <20090207200918.GA58657@test71.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/8YQS2.hNh_aQuSsnBoUpYf2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Peter Jeremy <peter@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@pre_7.4   877019136 31293824 845725312     4%    /usr/ports/.z=
fs/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@TP51.local:/usr/obj/usr/src/sys/THINKPAD  i386

It seems to work with bash's builtin though:

fk@TP51 /tank/privoxy/.zfs/snapshot/2009-02-07 $df -k .
Filesystem              1024-blocks  Used   Avail Capacity  Mounted on
tank/privoxy@2009-02-07     3704832 45824 3659008     1%    /tank/privoxy/.=
zfs/snapshot/2009-02-07
fk@TP51 /tank/privoxy/.zfs/snapshot/2009-02-07 $/bin/pwd
pwd: .: No such file or directory
fk@TP51 /tank/privoxy/.zfs/snapshot/2009-02-07 $pwd
/tank/privoxy/.zfs/snapshot/2009-02-07

Fabian

--Sig_/8YQS2.hNh_aQuSsnBoUpYf2
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkmN+SIACgkQBYqIVf93VJ3YBwCgq3KGFPVblZCaVK1vjbqUzvg8
kT0AnjKLGM3U8bKKh+JYJ230xU80Tyze
=QU/B
-----END PGP SIGNATURE-----

--Sig_/8YQS2.hNh_aQuSsnBoUpYf2--



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