From: Chuck Lever <chuck.lever@oracle.com>
To: Roland Mainz <roland.mainz@nrubsig.org>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: [patch] mount.nfs: Add support for nfs://-URLs ...
Date: Sat, 7 Dec 2024 15:29:11 -0500 [thread overview]
Message-ID: <72c2c540-3d50-45f7-9e3a-9c18634440ff@oracle.com> (raw)
In-Reply-To: <699d3e51-49b5-4bcd-8c13-5714311f8629@oracle.com>
On 12/7/24 10:20 AM, Chuck Lever wrote:
> On 12/6/24 6:33 PM, Roland Mainz wrote:
>> On Fri, Dec 6, 2024 at 4:54 PM Chuck Lever <chuck.lever@oracle.com>
>> wrote:
>>>> - This feature will not be provided for NFSv3
>>>
>>> Why shouldn't mount.nfs also support using an NFS URL to mount an
>>> NFSv3-only server? Isn't this simply a matter of letting mount.nfs
>>> negotiate down to NFSv3 if needed?
>>
>> Two issues:
>> 1. I consider NFSv2/NFSv3/NFSv4.0 as obsolete
>
> NFSv2 is obsolete, yes.
>
> The NFSv3 standard is not being updated, but NFSv3 is broadly
> deployed and implementations are actively maintained. It's not
> obsolete.
>
> NFSv4.0 is on its way out, but is not obsolete yet. I don't
> think it would be challenging to include support here.
(Indeed, I presumed that /excluding/ minor version 0 would require
some extra work. But maybe that's not true).
>> 2. It would be much more complex because we need to think about how to
>> encode rpcbind&transport parameters, e.g. in cases of issues like
>> custom rpcbind+mountd ports, and/or UDP.
>
> This is much more than is needed, IMO. NFSv3 can stick with the
> standard rpcbind port, an rpcbind query for MNT. My reading of
> the RFCs suggests that for NFSv3, the transport protocol is
> selected based on what both sides support.
>
> I think we want to avoid trying to build every bell and whistle
> into the mount.nfs NFS URL implementation. Just cover the basics,
> at least in the initial implementation.
>
>
>> That will quickly escalate
>> and require lots of debates. We had that debate already in ~~2006 when
>> I was at SUN Microsystems, and there was never a consensus on how to
>> do nfs://-URLs for NFSv3 outside WebNFS.
>>
>> I think it can be done, IMHO but this is way outside of the scope of
>> this patch, which is mainly intended to fix some *URGENT* issues like
>> paths with non-ASCII characters for the CJKV people and implement
>> "hostport" notation (e.g. keep hostname+port in one string together).
I don't understand your comment about scope.
The scope of this patch, I thought, was to implement RFC 2224-compliant
NFS URLs for the mount.nfs command line. NFSv3 is specified right there
in that RFC. It seems to me that NFSv3 is indeed within scope, and
NFSv4 is in fact not (if you want to be pedantic about it).
And I don't see why handling NFSv3 should be difficult: The URL parser
should simply translate the URL into equivalent command line options
and pass those to the stropt code. That will handle NFS version and
transport negotiation automatically, yes?
Administrators will expect to be able to control the version negotiation
behavior via settings in /etc/nfs.conf. If NFS URLs bypass mount.nfs's
version negotiation (and therefore do not comply with the settings in
/etc/nfs.conf), I think that is not correct and will be disappointing
to administrators.
--
Chuck Lever
next prev parent reply other threads:[~2024-12-07 20:29 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-06 10:54 [patch] mount.nfs: Add support for nfs://-URLs Roland Mainz
2024-12-06 15:54 ` Chuck Lever
2024-12-06 16:15 ` nfs-utils library dependency littering - fork nfs-utils for Debian? " Mark Liam Brown
2024-12-06 16:58 ` Chuck Lever
2024-12-06 17:13 ` Mark Liam Brown
2024-12-06 19:40 ` Chuck Lever
2024-12-06 23:33 ` Roland Mainz
2024-12-07 15:20 ` Chuck Lever
2024-12-07 20:29 ` Chuck Lever [this message]
2024-12-19 14:47 ` Cedric Blancher
2024-12-07 20:53 ` NeilBrown
2024-12-07 22:54 ` Chuck Lever
2024-12-08 3:29 ` NeilBrown
2024-12-08 15:58 ` Chuck Lever
2024-12-09 15:15 ` Takeshi Nishimura
2024-12-09 15:46 ` Chuck Lever
2024-12-08 7:31 ` patchwork instance for linux-nfs patches? Cedric Blancher
2024-12-08 16:01 ` Chuck Lever
2024-12-08 7:41 ` [patch] mount.nfs: Add support for nfs://-URLs Cedric Blancher
2024-12-08 16:43 ` Chuck Lever
2024-12-10 11:46 ` Benjamin Coddington
2024-12-10 12:09 ` Steve Dickson
2024-12-07 17:05 ` Takeshi Nishimura
2024-12-08 22:12 ` NeilBrown
2024-12-10 12:13 ` Cedric Blancher
2024-12-10 14:15 ` Chuck Lever
2024-12-11 4:26 ` NeilBrown
2024-12-19 14:03 ` Cedric Blancher
2024-12-24 22:59 ` NeilBrown
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=72c2c540-3d50-45f7-9e3a-9c18634440ff@oracle.com \
--to=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=roland.mainz@nrubsig.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