Excerpts from ext.misc.info-afs: 12-Jul-94 stat() system call and AFS?
Tim [EMAIL PROTECTED] (606)

> We have found out about the even/odd inode
> rule.

Are you planning to use the even/odd inode rule to distinquish between
files and directories without having to perform stat operations?

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.

I also heard that the even/odd distinction doesn't exist in DFS.

This is all 2nd hand information, and I hope I'm wrong and someone can
set me straight - I would love to eliminate stat operations when
scanning trees.

Kris Davis ([EMAIL PROTECTED], krisd@rchland, krisd@rchvmw2)
Microcode Development Environment  Dept213
1-507-253-3707  IBM Rochester, MN


Reply via email to