diff options
author | kib <kib@FreeBSD.org> | 2013-03-01 18:40:14 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-03-01 18:40:14 +0000 |
commit | 0da1880cbc10809b659cabb782a330c021999d1a (patch) | |
tree | c7a198349df48a04759d7be4edea5b43b30541fd /lib/libc/stdlib/radixsort.c | |
parent | 0bc64999312aebf9154a527d512d4c04a379fdd6 (diff) | |
download | FreeBSD-src-0da1880cbc10809b659cabb782a330c021999d1a.zip FreeBSD-src-0da1880cbc10809b659cabb782a330c021999d1a.tar.gz |
Make the default implementation of the VOP_VPTOCNP() fail if the
directory entry, matched by the inode number, is ".".
NFSv4 client might instantiate the distinct vnodes which have the same
inode number, since single v4 export can be combined from several
filesystems on the server. For instance, a case when the nested
server mount point is exactly one directory below the top of the
export, causes directory and its parent to have the same inode number
2. The vop_stdvptocnp() algorithm then returns "." as the name of the
lower directory.
Filtering out the "." entry with ENOENT works around this behaviour,
the error forces getcwd(3) to fall back to usermode implementation,
which compares both st_dev and st_ino.
Based on the submission by: rmacklem
Tested by: rmacklem
MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/radixsort.c')
0 files changed, 0 insertions, 0 deletions