*- On 25 Jan, Rich McClellan wrote about "directory listing..."
> Hello all,
>
> I apologize up front if this has been beaten to death but I've looked high
> and low and found nothing:
>
> Is it possible to have autofs show a listing of mount points even if they
> have not been mounted? I realize that it might tax the automounter to
> mount every point when someone does an `ls /net` or `ls /home`, but the
> users here are going nuts trying to find there way around blindly.
>
Make a directory of symlinks that point to your actual mount points that
are controlled by the automounter. Thus the symlinks will be orphaned
links until they are used. Take a look at
http://www.Linux-Consulting.com/Amd_AutoFS/autofs-5.html#ss5.3.
Example: Let autofs manage everything under /.autofs/net and then make
/net a farm of symlinks to /.autofs/net as in:
/net/machine1 -> /.autofs/net/machine1 where /.autofs/net/machine1 is
created by the automounter when someone cd's to /net/machine1.
#/etc/auto.master
/.autofs/net /etc/auto.net
#/etc/auto.net
machine1 <options> <location>
This works for me. The only thing that I have discovered is that if a
user is using an ls with color options enabled and they have orphaned
symlinks a different color than un-orphaned symlinks then the
automounter will mount all the mount points pointed to in a farm of
symlinks. The ls code must determine if a symlink is an orphan or not
so it follows the symlink, thus causing the automounter to mount the fs
pointed to by the link.
Brian Servis
--
------------------------------------------------------------------------
[EMAIL PROTECTED] (preferred) | Never criticize anybody until you
[EMAIL PROTECTED] | have walked a mile in their shoes,
[EMAIL PROTECTED] | because by that time you will be a
http://www.ecn.purdue.edu/~servis | mile away and have their shoes.