Excerpts from transarc.external.info-afs: 14-Jul-94 Re: stat() system
call and .. Kris [EMAIL PROTECTED] (1078)
> My understanding is that this is not a reliable rule. For example,
> normal directories have an odd number and files have an even number.
> However, an AFS mount point (looks like a directory) has an even inode
> number. Also, symlinks have an even inode number, whether or not they
> point to a file or to a directory. Thus, if you are eliminate the stat
> to make a distinction, symlinks and mount points will break the
> solution.
Unless you wanted the searching to stop at symlinks and mount points,
which I usually do, at least for my own usage.
It may or may not be useful. In AFS you can know that odd inodes are
directories, whether or not that's sufficient for your applications.
You can also know that all directories in the current volume are odd
inodes. And that symlinks and mount points are even inodes.
> I also heard that the even/odd distinction doesn't exist in DFS.
Unfortunately, true. And kind of fundamental, since DFS can export
native file systems such as UFS, which themselves don't have an even/odd
rule.
Craig