On Tue, 12 Apr 2005, Greg Bradner wrote:

> 
> 
> Ian Kent wrote:
> 
> >On Wed, 6 Apr 2005, Greg Bradner wrote:
> >
> >  
> >
> >>I have a situation on IRIX where I am stat'ing a filesystem that is not 
> >>exported to the IRIX system.  The syslog says 'permission denied'.  
> >>That's expected.  Since the directory I'm in has 600 links to the file 
> >>system that is not exported, autofs keeps trying to mount and keeps 
> >>getting 'permission denied'.
> >>
> >>On linux I get 'permission denied', but it doesn't try to mount again 
> >>for 30 minutes.
> >>
> >>Has anyone heard of such a problem with IRIX's autofs and is there a fix?
> >>Why does linux only try every 30 minutes?
> >>    
> >>
> >
> >I'm not sure why Linux is trying every thirty minutes.
> >There's not explicit retry login in autofs.
> >
> >AFAIK it should only try to mount the target of the symlink when an access 
> >is attempted.
> >
> >Ian
> >  
> >
> Let me explain: I have one NAS1 server that has a large number of links 
> to another NAS2.  When I run a specific program, an in house tool, it 
> stats the links; which in turn tries to mount NAS2.  With the large 
> number of links, the program will stat one, get 'permission denied', and 
> moves to the next.  On IRIX, autofs tries to mount with each stat.  On 
> linux, it stats the link, but doesn't try to mount each time, rather 
> every 30 minutes.
> My main curiosity is whether or not Linux autofs caches the status in 
> some way and won't retry for 30 minutes?
> 

Once again I'm unsure of what should be happening.

autofs on Linux shouldn't mount at all on stat unless the target is 
contained within (not the mount point itself) the filesystem.

In fact it stat should return lies (actually the autofs filesystem node) 
about the target. 

There isn't any retry logic in the code.
AFAIK there would need to be some process scanning the directories for 
this retry to happen.

I haven't used IRIX autofs for a long time.

Ian

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to