freebsd-dev/sys/cddl
Pawel Jakub Dawidek 8e9fd65fbf 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)
2009-08-17 10:00:18 +00:00
..
boot/zfs Unexpand $FreeBSD$. 2009-05-23 16:01:58 +00:00
compat/opensolaris Manage asynchronous vnode release just like Solaris. 2009-08-17 09:48:34 +00:00
contrib/opensolaris getcwd() (when __getcwd() fails) works by stating current directory, going up 2009-08-17 10:00:18 +00:00
dev dtrace_gethrtime: improve scaling of TSC ticks to nanoseconds 2009-07-15 17:07:39 +00:00