On Wed, 2006 Nov 01 18:42:34 +0000, James Youngman wrote: > > But my question is, does AFS guanrantee that readdir() will return > them in that order?
It does appear that "." and ".." come first consistently, but is this really necessary? Ext3 itself doesn't do this. > >It'll know from the get-go if an entry is a subdirectory or not, so no > >problem there. > > But I believe that only works if find has a way of knowing (without > stat()ing all the mount points) if a directory is in AFS or not. There isn't a good way of going from some arbitrary path to a filesystem type? (I'm not very familiar with this part of the POSIX API, alas.) If not, it might be sufficient to check if the directory's canonical path is under /afs. (You're never going to have AFS mounted on e.g. /usr or /mnt/afs.) > >What I also wanted to suggest was more graceful handling of the "we > >really can't tell what this entry is" case, by adding a "-type u" test. > > Yes, that's a good idea. Could you log this as a separate bug on > Savannah? (svannah.gnu.org). The same thing could also be useful > for entries in directories which allow r but not x. Will do! --Daniel -- NAME = Daniel Richard G. ## Remember, skunks _\|/_ meef? EMAIL1 = [EMAIL PROTECTED] ## don't smell bad--- (/o|o\) / EMAIL2 = [EMAIL PROTECTED] ## it's the people who < (^),> WWW = http://www.******.org/ ## annoy them that do! / \ -- (****** = site not yet online) _______________________________________________ Bug-findutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-findutils
