OpenAFS CVS Commit: openafs/src/afs/VNOPS by shadow
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Mon, 08 Nov 2004 01:26:02 EST
Update of /cvs/openafs/src/afs/VNOPS
In directory GRAND.CENTRAL.ORG:/data/sb/openafs/src/afs/VNOPS
Modified Files:
afs_vnop_readdir.c
Log Message:
DELTA readdir-report-correct-inums-20041108
AUTHOR jhutz@cmu.edu
FIXES 15962
We currently try fairly hard to make stat() on a volume root return the
same vnode number as is listed for the mount point by readdir(). This
behaviour is desirable; in fact, getcwd would not work otherwise.
However, we are _not_ careful about making readdir list correct inode
numbers for "." in a volume root or ".." in a directory whose parent is
a volume root. This means that applications which examine these entries
will still see inconsistent inode numbers. Clearly, it would be more
desirable to report consistent inode numbers in all cases, instead of
only in some cases.
The attached patch, written while I was tracking down some NFS
translator problems (which ultimately proved to be unrelated), makes
readdir return consistent inode numbers for volume roots. We are
running this on a few machines and have seen no problems, but it has not
been extensively tested.
--- DELTA config follows ---
readdir-report-correct-inums-20041108 openafs/src/afs/VNOPS/afs_vnop_readdir.c 1.27 1.28