freebsd-dev/sys/cddl/contrib/opensolaris
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
..
common Fix misalignment in nvpair_native_embedded() caused by the compiler 2009-08-16 01:48:46 +00:00
uts getcwd() (when __getcwd() fails) works by stating current directory, going up 2009-08-17 10:00:18 +00:00
OPENSOLARIS.LICENSE Now that we have CDDLed code in the tree, add CDDL license. 2007-09-23 07:04:50 +00:00