]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] autofs4: can't mount due to mount point dir not empty
authorIan Kent <raven@themaw.net>
Mon, 27 Mar 2006 09:14:44 +0000 (01:14 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:39 +0000 (08:44 -0800)
commit2d753e62b87ab2fc72bb4ff5153791d32ff9c08e
treed10660a7ad08973679c3cfa66cd2b8eedae5afaa
parentf360ce3be466d50de153b001b24561ca7593042b
[PATCH] autofs4: can't mount due to mount point dir not empty

Addresse a problem where stale dentrys stop mounts from happening.

When a mount point directory is pre-created and a non-existent entry within it
is requested a dentry ends up being created within the mount point directory
which stops future mounts.  The problem is solved by ignoring negative,
unhashed dentrys in the mount point d_subdirs list.

Additionally the apparent cacheing of -ENOENT returns from requests is
removed.  The test on d_time is a tautology and d_time is not initialised and
has an unexpected value.  In short it doesn't do what it's meant to.

The cacheing of failed requests to the daemon is important and will be
followed up later.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/autofs4/autofs_i.h
fs/autofs4/root.c