From owner-freebsd-fs@FreeBSD.ORG Sat Feb 7 21:25:37 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 972A0106564A for ; Sat, 7 Feb 2009 21:25:37 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay11.ispgateway.de (smtprelay11.ispgateway.de [80.67.29.28]) by mx1.freebsd.org (Postfix) with ESMTP id 52E118FC24 for ; Sat, 7 Feb 2009 21:25:37 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [88.153.16.241] (helo=localhost) by smtprelay11.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1LVuTa-0008Cb-0I for freebsd-fs@freebsd.org; Sat, 07 Feb 2009 22:12:34 +0100 Date: Sat, 7 Feb 2009 22:12:02 +0100 From: Fabian Keil To: freebsd-fs@freebsd.org Message-ID: <20090207221202.1a19456a@fabiankeil.de> In-Reply-To: <20090207200918.GA58657@test71.vk2pj.dyndns.org> References: <20090207200918.GA58657@test71.vk2pj.dyndns.org> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd8.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/8YQS2.hNh_aQuSsnBoUpYf2"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Df-Sender: 775067 Subject: Re: Unable to pwd in ZFS snapshot X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2009 21:25:38 -0000 --Sig_/8YQS2.hNh_aQuSsnBoUpYf2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Peter Jeremy 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--