> 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.

just as a sidebar, mount points *are* symlinks in the form:
        '#volumename '
        '%volumename '

and so forth that are interpreted specially by the afs code.  try:
        ln -s '#root.afs ' foo
        fs lsm foo
        ls foo

presumably if stat says x is a dir and the inode is even, then x
is a mountpoint.

                                        bruce

Reply via email to