[OpenAFS] Re: OpenAFS-info digest, Vol 1 #905 - 4 msgs
Chuck Boeheim
boeheim@SLAC.Stanford.EDU
Tue, 05 Nov 2002 21:55:08 -0800 (PST)
On Tue, 5 Nov 2002, Chaskiel M Grundman wrote:
> The 'right' way of detecting mountpoints without using pioctl() is to use
> the even-odd rule: Directories in afs have odd inode numbers, while files
> and symlinks have even inode numbers. Since mountpoints are stored as
> symlinks, stat'ing one will return a mode of S_ISDIR (like a real
> directory), and an even inode number (not like a real directory).
Is this difference in inode numbers somethat that one can depend on?
I.e. is it so basic to the implementation that it's never going to
change, and can be used safely in scripts?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Chuck Boeheim Stanford Linear Accelerator Center 650-926-4640
SLAC Computing Services Assistant Director Boeheim@SLAC.Stanford.Edu
Contact info & PGP key: http://www.slac.stanford.edu/~boeheim
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=