OpenAFS CVS Commit: openafs/src/afs/VNOPS by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Tue, 09 Nov 2004 12:19:17 EST


Update of /cvs/openafs/src/afs/VNOPS
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-stable-1_4_x/src/afs/VNOPS

Modified Files:
      Tag: openafs-stable-1_4_x
	afs_vnop_readdir.c 
Log Message:
DELTA STABLE14-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 for openafs-stable-1_4_x follows ---
STABLE14-readdir-report-correct-inums-20041108 openafs/src/afs/VNOPS/afs_vnop_readdir.c 1.24.2.3 1.24.2.4