Thanks Jeff.

http://hera.kernel.org/pipermail/autofs/2005-October/002517.html

Has 2 patches. One for expire.c and one for root.c

I am assuming I need the root.c one only..?

Thanks for your help.
On Mon, 24 Oct 2005, Jeff Moyer wrote:

Date: Mon, 24 Oct 2005 17:55:11 -0400
From: Jeff Moyer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: AutoFS on Linux Kernel <[email protected]>
Subject: Re: [autofs] autofs looks up wrong path element metoo and /net
    question

==> Regarding [autofs] autofs looks up wrong path element metoo and /net 
question; [EMAIL PROTECTED] adds:

devnull> Ian, list.  Fedora Core 2

devnull> /usr/sbin/automount -V Linux automount version 4.1.4

So you built your own?  OK.

devnull> I am running automount with /usr/sbin/automount --ghost -v --debug

devnull> uname -r 2.6.7 / 2.4.31

Again, your own kernel?  Ian posted a kernel patch to fix the issue.  You
probably want to grab that, though I can't find a pointer to it at the
moment.  I've attached the equivalent patch that went into RHEL3, for
reference.

-Jeff

--- linux-2.4.21/fs/autofs4/root.c.orig 2005-05-31 09:31:16.097321176 -0400
+++ linux-2.4.21/fs/autofs4/root.c      2005-05-31 09:31:19.816755736 -0400
@@ -301,7 +301,14 @@ static int try_to_fill_dentry(struct den

                DPRINTK(("try_to_fill_entry: expire done status=%d\n", status));

-               return 0;
+               /*
+                * If the directory still exists the mount request must
+                * continue otherwise it can't be followed at the right
+                * time during the walk.
+                */
+               status = d_invalidate(dentry);
+               if (status != -EBUSY)
+                       return 0;
        }

        DPRINTK(("try_to_fill_entry: dentry=%p %.*s ino=%p\n",


/dev/null

[EMAIL PROTECTED]


_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to