Marcus Watts writes:
> >
> > > Most versions of find (and almost certainly rdist) are not AFS-aware,
> > > and cannot be made to do this easily.
> >
> > find already stats files to find directories. It uses the link count to
> > find how many directories are there. AFS for some reason doesn't update
> > that count, but you can easily modify find to stat each file, and if it's
> > a directory, do a pioctl() call to get the mount point. If that call
> > succeeds, you know you're going into a new volume.
>
> It's going to be really slow and inefficient. I presume that
> Lee Melvin (who posed this question) was looking for something
> a bit faster.
yup. At one point I had a hacked up version of GNU find that had an
option to print out mount points as it traversed /afs directories,
and an option to not cross mountpoints as well. You can make it more
efficient if you use the trick that directories in /afs with
odd inodes are normal directories and those with even inodes are mount
points (assuming this is still true, I've yet to see a case where it
wasn't).
roland