*- On  8 Jan, Jeremy Fitzhardinge wrote about "Re: autofs and mountpoint creation"
> On Wed, Jan 05, 2000 at 08:34:46AM -0500, Brian Servis wrote:
>> Yes, I have found this solution to be acceptable. But the only
>> disadvantage is that if you do a directory listing in /n then ALL the
>> mounts that are pointed to by the symlinks get mounted.  If there are a
>> lot then this can take a while to process(and waste resources?).  
> 
> 
> No.  If you do an ls -l /n, and /n is just symlinks, then all you get
> is a list of symlinks.  If you do a "ls -ld /n/*/.", then you're really
> asking for a list of the top-level inodes in each filesystem, and it
> has no choice but to mount them (what else could it do: make up ownership
> and permissions?).
> 

A little investigation showed why I was seeing automounts mounted when I
did an ls of a directory of links.  I am using LS_COLORS to show a color
for symbolic links and a different color for orphaned links.  Thus ls
must check the validity of the link which results in the mounts.  I
think I will change my color setup!

This should also perhaps be added to the AUTOFS-HOWTO somewhere so I am
CC'ing this to Alvin Oga even though he reads this least.

Brian Servis
-- 
------------------------------------------------------------------------
Mechanical Engineering              |  Never criticize anybody until you  
Purdue University                   |  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.

Reply via email to