diff options
author | pjd <pjd@FreeBSD.org> | 2009-08-17 10:00:18 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2009-08-17 10:00:18 +0000 |
commit | f10215bfe677cea2d2d8f37934b727b2e4f2a1fc (patch) | |
tree | 6bf1c1069660720ee14b4dbed629a2ee0b72a112 /sys/cddl/contrib/opensolaris/uts/common/fs/vnode.c | |
parent | 131066d515bbb9cbb5a4fe078b182d438544ade5 (diff) | |
download | FreeBSD-src-f10215bfe677cea2d2d8f37934b727b2e4f2a1fc.zip FreeBSD-src-f10215bfe677cea2d2d8f37934b727b2e4f2a1fc.tar.gz |
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)
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/vnode.c')
0 files changed, 0 insertions, 0 deletions