Date: Mon, 17 Aug 2009 10:02:31 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_ctldir.c Message-ID: <200908171002.n7HA2nc2031380@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2009-08-17 10:02:31 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_ctldir.c
Log:
SVN rev 196310 on 2009-08-17 10:02:31Z by pjd
MFC r196309:
getcwd() (when __getcwd() fails) works by stating current directory, going up
(..), calling readdir and looking for previous directory inode. In case of
.zfs/ directory this doesn't work, because .zfs/ is hidden by default, so it
won't be visible in readdir output.
Fix this by implementing VPTOCNP for snapshot directories, so __getcwd()
doesn't fail and getcwd() doesn't have to use readdir method.
This fixes /bin/pwd from within .zfs/snapshot/<name>/.
Suggested by: kib
Approved by: re (rwatson)
Revision Changes Path
1.14.2.1 +43 -0 src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908171002.n7HA2nc2031380>
