Can one find a mount point just knowing the volume name?
Peter Scott
Peter.J.Scott@jpl.nasa.gov
Thu, 08 Feb 2001 09:52:36 -0800
At 11:20 AM 2/8/01 -0600, Neulinger, Nathan R. wrote:
>mount "point" is the problem... There isn't just one mount point for a
>volume, there can be 0, 1, or hundreds...
Bingo.
>If you feel like loading down your server, you can get that information from
>salvager, but it's slow. The alternative is to recursively descend through
>afs space looking for mount points.
I've done this (don't ask for the code, Caltech owns it). It's not easy;
you've got to look out for foreign cell mounts and cyclic symlinks,
symlinks to local filesystems, and make sure you don't go down another
mount to a volume you've already visited. If you have anything like a
large heterogeneous cell, you will be amazed (and disgusted) by some of the
perverse things people do that will trip you up.
--
Peter Scott
Peter.J.Scott@jpl.nasa.gov