On Fri, 2011-02-25 at 12:39 -0500, Ion Badulescu wrote:
> On Thu, 24 Feb 2011, Ian Kent wrote:
> 
> >>>> But the autofs4 module should be able to be used for autofs kernel
> >>>> protocol version 3. It may require some changes in user space and, since
> >>>> the v3 protocol in autofs4 hasn't been tested for so long, there may be
> >>>> some other bugs that need fixing.
> >>>
> >>> Problem is that amd I believe specifically looks for autofs3 (even though
> >>> the code says minimum autofs version 3, it fails to work with autofs4).
> >>> And since no one is responding to the bug I put in about that, and the
> >>> last time code was released for amd was in 2005, amd using autofs on the
> >>> current F14 kernel seems to dead.
> >>
> >> I'll grab the amd source and have a quick look.
> >> Where is the right place to get it?
> >
> > It looks like amd should work with autofs protocol version v4.
> > You should also try "modprobe autofs4" before starting amd and see what
> > happens.
> 
> No, amd will happily work with either autofs3 or autofs4.

My point above was that, in the past we've seen the wrong module loaded
or no module loaded because of name match failure. Pre-loading the
module uncovers those sorts of difficulties.

> 
> The problem is that it (optimistically) tries to use the highest version 
> that the kernel supports, which is autofs5 these days. But it itself 
> doesn't have support for autofs5, so it fails miserably.
> 
> The patch (copy/pasted so it might not apply cleanly) fixes autofs:
> 
> commit 5cefcd3e1c7cb4943697e48996b8b1cbc7a9e7de
> Author: Ion Badulescu <io...@buggy.badula.org>
> Date:   Tue Nov 30 07:14:23 2010 -0500
> 
>      max supported autofs version is 4
> 
> diff --git a/conf/autofs/autofs_linux.c b/conf/autofs/autofs_linux.c
> index af61804..e901da7 100644
> --- a/conf/autofs/autofs_linux.c
> +++ b/conf/autofs/autofs_linux.c
> @@ -59,7 +59,7 @@
>    */
> 
>   #define AUTOFS_MIN_VERSION 3
> -#define AUTOFS_MAX_VERSION AUTOFS_MAX_PROTO_VERSION
> +#define AUTOFS_MAX_VERSION 4
> 
> 
>   /*
> 
> 
> -Ion


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

Reply via email to