Michael Tokarev wrote:
> On 04.06.2012 08:13, Jamie Heilman wrote:
> > Michael Tokarev wrote:
> >> Overall, the code quality is very very low, I'm not sure
> >> it is possible to maintain this package without very
> >> serious work with upstream first.
> > 
> > I took a stab at a slightly less annoying workaround, and found that
> > with 5.0.6-2 using a map of "jamie -fstype=nfs4 canarsie:/home/jamie"
> > worked too.  Reviewing the code, I'm actually kinda surprised it
> > worked, but the more I try to follow the logic, the more fragile
> > everything seems to get.
> 
> I had a discussion with upstream about this.  It looks like the code
> works correctly when specifying -fstype=nfs4 OR specifying -port=2049.
> In either case automount does not try to contact the portmapper, and
> works instantly.
> 
> On the other hand, -vers=4 does NOT work, because automount only checks
> for -fstype and -port, but not -vers.  This is a defect in autofs, but
> it is a small defect.  I think it can be made to work with -vers=4 too
> the same way it works with -fstype=nfs4, that should be easy.

Yeah, I'm testing a patch for this atm...

> Meanwhile, the trivial workaround is to specify -fstype=nfs4 and/or
> -port, instead of using -vers.  Not obvious, that's for sure, but it
> works and it is simple.

There's a lot of documentation problems, I'm working up patches for
those too.  As it turns out, you shouldn't have to specify the port
for nfs4... see port=n in nfs(5) under the "Options for NFS version 4
only" section.

Figuring out a way to probe NFSv4 servers that doesn't involve the rpc
ping is, IMO, what needs to happen.  Maybe for single hosts, it's
less important, but the probing and weighting that automount does is
necessary for replicated exports.

> Either using -port OR -fstype=nfv4 should work.  Please verify if
> it works for you.  Specifying -port= is a bit ugly to my taste, but
> -fstype=nfs4 is as good as -vers=4.

To make matters even more fun, there's a bug in the 3.5-rc kernels at
the moment that prevents -fstype=nfs4 from working all by itself...
but it's in the process of being worked out thankfully.

-- 
Jamie Heilman                     http://audible.transient.net/~jamie/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to