On Wed, 19 Feb 2003 01:56:59 -0800 (PST), H. Peter Anvin <[EMAIL PROTECTED]> wrote:

> Well, it does, but the test is a sieve, rather than a true test, as there
> is no protection against race conditions.  It's mostly there to avoid the
> high overheard of the umount operation when it's not necessary or
> desirable.
> 
> A user can come in between the test and the umount request, and autofs
> depends on /bin/umount signalling error without harmful side effects.

Isn't autofs v4 supposed to fix this? I remember Jeremy mentioning that
the filesystem would lock all accesses to a dentry scheduled to be 
unmounted until the daemon replied to the request.

In fact, from his web page:

Previously, when the kernel sent an expire message to the daemon it was 
more an hint than anything else. Now the kernel makes certain that the 
tree isn't busy before sending an expire message to the daemon. It also 
blocks all new users of the tree until the umount is complete, so that 
they can't see a partially mounted tree.

Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.
_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to