Date: Mon, 17 Aug 2009 10:00:18 +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: <200908171000.n7HA0SBI031230@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2009-08-17 10:00:18 UTC FreeBSD src repository Modified files: sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_ctldir.c Log: SVN rev 196309 on 2009-08-17 10:00:18Z by pjd 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.15 +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?200908171000.n7HA0SBI031230>