kern/159077: [zfs] Can't cd .. with latest zfs version
Fabian Keil
freebsd-listen at fabiankeil.de
Sat Jul 23 12:10:14 UTC 2011
The following reply was made to PR kern/159077; it has been noted by GNATS.
From: Fabian Keil <freebsd-listen at fabiankeil.de>
To: bug-followup at FreeBSD.org, mharo at freebsd.org
Cc:
Subject: Re: kern/159077: [zfs] Can't cd .. with latest zfs version
Date: Sat, 23 Jul 2011 13:43:26 +0200
--Sig_/Dci3z9B3kZCsY_I=wEyT+/a
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Do you have the problem in every directory or only in some?
Can you "cd .." as root?
Does the '..' link exist and is it accessible?
I ask because the problem looks familiar to me:
fk at r500 ~/git/privoxy $/usr/bin/cd ..
cd: ..: No such file or directory
fk at r500 ~/git/privoxy $stat -x ..
stat: ..: stat: Permission denied
fk at r500 ~/git/privoxy $sudo stat -x ..
File: ".."
Size: 33 FileType: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 1001/ fk) Gid: ( 1001/ =
fk)
Device: 113,472580146 Inode: 3 Links: 33
Access: Fri Mar 12 23:05:31 2010
Modify: Sat Jul 23 13:26:27 2011
Change: Sat Jul 23 13:26:27 2011
fk at r500 ~/git/privoxy $stat -x ~/git/
File: "/home/fk/git/"
Size: 33 FileType: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 1001/ fk) Gid: ( 1001/ =
fk)
Device: 113,472580146 Inode: 3 Links: 33
Access: Fri Mar 12 23:05:31 2010
Modify: Sat Jul 23 13:26:27 2011
Change: Sat Jul 23 13:26:27 2011
fk at r500 ~/git/privoxy $stat -x ~/git/curl/..
File: "/home/fk/git/curl/.."
Size: 33 FileType: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 1001/ fk) Gid: ( 1001/ =
fk)
Device: 113,472580146 Inode: 3 Links: 33
Access: Fri Mar 12 23:05:31 2010
Modify: Sat Jul 23 13:26:27 2011
Change: Sat Jul 23 13:26:27 2011
fk at r500 ~/git/privoxy $stat -x ~/git/privoxy/..
stat: /home/fk/git/privoxy/..: stat: Permission denied
So somehow as a user I'm allowed to access "~/git" but not "~/git/privoxy/.=
.".
bash's builtin cd doesn't seem to use '..', so it continues to work.
~/git, ~/git/privoxy and ~/git/curl are different datasets.
Scrubbing the pool doesn't show any issues.
If I send/receive a snapshot of ~/git/privoxy, the copy doesn't
have the problem.
As far as I know, I only have the problem with "~/git/privoxy/..".
The problem survived several ZFS updates so far, and at least in
may case it's neither a regression in ZFSv28 nor serious.
Fabian
--Sig_/Dci3z9B3kZCsY_I=wEyT+/a
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)
iEYEARECAAYFAk4qs+QACgkQBYqIVf93VJ0UvgCgrKRZDFGC+2/ieE7wBasQXg96
QIAAn0uj2tj8BF+X9QpLBWSL8llfKd23
=4CRh
-----END PGP SIGNATURE-----
--Sig_/Dci3z9B3kZCsY_I=wEyT+/a--
More information about the freebsd-fs
mailing list