> The even/odd inode hack still seems to work, but it does not work for
> AFS mount points, probably because they are symlinks. And of course it
> doesn't work for symlinks to valid directories. Does anyone have a
> terribly nice hack for detecting a mount point as well? Is a
> VIOC_AFS_STAT_MT_PT pioctl on all files (obviously I can skip dirs found
> with the odd/even hack) fast, or is there something more clever I can do?
If you know that your are in the AFS file system, you can distinquish a
directory, regular file, symbolic link and AFS mount point with one stat()
call. The st_mode bits tell you if you have a directory, regular file, or
symbolic link. Real directories have odd inode numbers, therefore directories
with even inode numbers are AFS mount points.
...Tim
Tim Theisen Associate Researcher
Internet: [EMAIL PROTECTED] Department of Computer Sciences
UUCP: uwvax!tim University of Wisconsin-Madison
Phone: (608)262-0438 1210 West Dayton Street
FAX: (608)262-9777 Madison, WI 53706-1685