From: Neil Brown <neilb@suse.de>
To: "Chuck Lever" <chucklever@gmail.com>
Cc: "Steve Dickson" <SteveD@redhat.com>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] mount: enable retry for nfs23 to set the correct protocol for mount.
Date: Mon, 21 Jul 2008 16:06:59 +1000 [thread overview]
Message-ID: <18564.10115.809293.243948@notabene.brown> (raw)
In-Reply-To: message from Chuck Lever on Monday July 21
On Monday July 21, chucklever@gmail.com wrote:
>
> The workaround for older nfs-utils has been to specify
> "mountproto=udp/tcp" explicitly.
Yes, that's a usable workaround.
> I think this works around the problem of having a server who's
> portmapper listens only on TCP. The underlying portmap client in the
> mount command (and in the kernel) should be able to deal with that
> without tying the rpcbind transport to the transport that is being
> queried, and that is what is truly broken here.
>
> So I think I would rather see this problem addressed in the
> portmap/rpcbind client implementations and not in the upper level
> mountd clients. If a portmap query doesn't work over UDP, it seems
> like it should try it over TCP instead, and then remember that for
> later queries.
>
> I think your objection would be that this doesn't address the
> regression for particular combinations of nfs-utils and kernel
> versions, but I don't have a better suggestion at the moment.
My other objection is the you are pushing too much functionality into
the kernel.
The portmap lookup can be done in userspace, and so "should" be.
I'm not even convinced that the mount lookup belongs in the kernel,
though passing a (hex encoded) file handle down might be a bit clumsy.
But I've decided that there are bigger fish in the sea and I'm going
to let this one swim away. As you say, the enterprise releases are
more important, and it looks like enough fixes will make their way in
before SLES11 that this won't be an issue any more.
I still hope the other two nfs-utils patches will get in.
>
> Again, I may not be clear on the original requirements here. My
> understanding is that the legacy mount command uses default settings
> if "proto/mountproto" are not specified. It does not attempt to use
> "the best" settings unless the default settings don't work. This is
> what the text-based mount logic does -- it uses default settings
> (NFSv3 over TCP, mountd v3 over UDP), then punts if it needs service
> discovery.
"requirements"? that would be nice?
The legacy code tries every possibly combination of values that
weren't explicitly given until it finds a combination that "works".
It goes from most desirable to least desirable.
The text-based mount logic doesn't do what you said any more.
It default to mountd over TCP thanks to
nfs_set_mount_transport_protocol().
Will this be a regression for someone else I wonder ....
NeilBrown
next prev parent reply other threads:[~2008-07-21 6:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 12:56 [PATCH] mount: enable retry for nfs23 to set the correct protocol for mount Neil Brown
[not found] ` <18556.40594.897682.204554-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-15 15:11 ` Chuck Lever
[not found] ` <76bd70e30807150811p56feb02bo6e4a366d5577b398-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-16 17:12 ` Steve Dickson
2008-07-17 2:25 ` Neil Brown
[not found] ` <18558.44430.959865.662592-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-17 10:38 ` Steve Dickson
2008-07-17 22:50 ` Neil Brown
2008-07-17 23:15 ` Neil Brown
2008-07-18 0:12 ` Neil Brown
[not found] ` <18559.57353.428342.328105-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-18 4:54 ` Chuck Lever
2008-08-28 15:35 ` Steve Dickson
[not found] ` <18559.53893.95829.499988-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-19 16:09 ` Chuck Lever
2008-07-20 6:48 ` Neil Brown
[not found] ` <18562.57287.656749.540603-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-21 1:28 ` Chuck Lever
2008-07-21 2:49 ` Neil Brown
2008-07-21 2:55 ` Neil Brown
[not found] ` <18563.64191.468427.481673-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-21 20:59 ` Chuck Lever
[not found] ` <18563.63821.501053.402741-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-21 4:43 ` Chuck Lever
2008-07-21 6:06 ` Neil Brown [this message]
[not found] ` <18564.10115.809293.243948-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-07-21 15:32 ` Chuck Lever
[not found] ` <76bd70e30807210832l188bd3adl92762d5856bbaa5e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-21 17:40 ` Trond Myklebust
2008-07-21 19:01 ` Chuck Lever
2008-07-21 17:23 ` Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18564.10115.809293.243948@notabene.brown \
--to=neilb@suse.de \
--cc=SteveD@redhat.com \
--cc=chucklever@gmail.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox