John W. Coomes <[EMAIL PROTECTED]> writes:
> Afs knows about all the mount points, can it list them all?  If not,
> why not? 

        But it doesn't know about them at all. All a mount point is is
a symbolic link to {#,%}volume.nameF (where F is a filler character).
These are resolved in the cache manager at encounter time. Just as
there is no way to enumerate all files in a filesystem without
traversing the filesystem you can't know the mount points in AFS
without traversing the cell.

        There are better ways to traverse. One particular one is a
program I hacked together (very minimally) from a library we have here
that deals with AFS

        /afs/andrew.cmu.edu/usr12/dl2n/src/mtpt

is the source. Make it, invocation is "mtpt pathname" and it will
recursively traverse from pathname down reporting all valid
mountpoints (it won't tell you about mountpoints to non-existant
volumes). Much faster than shell scripting or find.

        Even better would be something that would scan the actual
volumes on the fileserver.

                                        dan
                                        cmu comp services
                                        [EMAIL PROTECTED]

Reply via email to