AFS is all mounted on /afs. You will not find any AFS files under
anything that does not start with "/afs/". This is true on both a
client and server, since AFS servers store their files directly using
the inodes, without having any references to them in the ufs
file-system directory, so find on a server will ignore it...
The main question for you is: what if someone WANTS to search for
something starting in some subdirectory within AFS... Now, I don't
know what your application is doing, so this may not be a factor.
However if the user can specify the starting point of the find, then
you are in trouble, unless you always use a full pathname (check for a
leading '/') and ignore AFS....
There is a pioctl() to tell if a directory is really and AFS
mountpoint, but I don't know offhand what that call is....
Hope this helps..
-derek