From: Chuck Lever <chuck.lever@oracle.com>
To: Steve Dickson <SteveD@redhat.com>
Cc: Jeff Layton <jlayton@redhat.com>,
"Muntz, Daniel" <Dan.Muntz@netapp.com>,
Mike Frysinger <vapier@gentoo.org>,
linux-nfs@vger.kernel.org
Subject: Re: should we make --enable-tirpc the default in current nfs-utils?
Date: Tue, 9 Jun 2009 13:01:26 -0400 [thread overview]
Message-ID: <6FC2F8D7-91F4-4EED-AFBF-F50EEFB752EA@oracle.com> (raw)
In-Reply-To: <4A2E82AD.7070908-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
On Jun 9, 2009, at 11:41 AM, Steve Dickson wrote:
> Chuck Lever wrote:
>>
>> I think you are making my argument for me. The fact that TI-RPC
>> support
>> could go into glibc (but hasn't because of politics) suggests that
>> --enable-tirpc has nothing to do with a particular library. It is
>> solely a feature knob, just like all the other --enable switches in
>> ./configure.
> So you agree that --enable-tirpc and --enable-ipv6 are the same thing
> since you can't have ipv6 without libtirpc and only reason to
> have libtirpc is ipv6...
I don't agree that they are the same. There are other reasons to
support TI-RPC, even in IPv4-only environments.
TI-RPC was invented to sink as many transport dependencies into the
library code as possible, so RPC applications don't have to deal with
the transport layer unless absolutely necessary. They no longer have
to worry about port numbers and sockaddrs, and the rest. So, top
level TI-RPC client APIs (rpc_call(3t)) take a hostname and an RPC
program/version/procedure, and server side APIs (rpc_reg(3t)) take an
RPC program/version, and the library handles all the network details
for you.
So, TI-RPC is a prerequisite for IPv6, and IPv6 is a _subset_ of the
features that TI-RPC provides. But, you can use TI-RPC in
environments that do not have any IPv6 support whatsoever. The TI-RPC
transport switch can be used in much the same way as the kernel's RPC
transport switch -- new transport capabilities are added to the
library, and TI-RPC applications now have much less work to do to
support them.
Specifically in the case of nfs-utils, we are adopting TI-RPC to
support IPv6. But, that doesn't make IPv6 and TI-RPC equivalent; it
makes IPv6 the driver of TI-RPC adoption. Once TI-RPC support is
enabled, IPv6 comes for free -- it's actually very little extra work
to provide IPv6 support once TI-RPC support is available.
If TI-RPC support is not available, then IPv6 support is moot. If it
is available, then IPv6 support should be controlled via a run-time
switch, not via a build-time switch. Thus, --enable-ipv6 should go
away.
For example: suppose we add sctp transport capabilities to libtirpc.
Then, does it make sense to build nfs-utils with --enable-ipv6 to get
that support? No, it makes sense to build nfs-utils with --enable-
tirpc, and then use /etc/netconfig to enable sctp transports for nfs-
utils, because you'll have to dink around in /etc/netconfig whether we
use --enable-ipv6 or --enable-tirpc.
>>>> I honestly don't see a distinction between --enable-gss, which adds
>>>> additional features in nfs-utils, but requires an additional
>>>> library,
>>>> and --enable-tirpc, which adds additional features, but requires an
>>>> additional library.
>>> -enable-gss cause two daemon to be build and get installed which
>>> adds the Secure NFS functionality. --enable-tirpc only causes code
>>> paths to change, it add no functionality unless Ipv6 is enabled.
>>
>> TI-RPC is not just an IPv6 enabler. It also has interoperability
>> implications. Support for rpcbind v3/v4 has no dependence on
>> IPv6. You
>> can use rpcbind v3 or v4 requests over IPv4, for example, which
>> provides
>> a significantly richer set of functionality. One area of non-IPv6
>> interest would be support for registering local services via
>> AF_UNIX --
>> this type of registering is actually authenticated, so it is a good
>> security feature.
> But again, the only reason rpcbind is around is because it has
> IPv6 support. Please believe, I was a bit nervous switch out the
> portmapper since it was a very stable piece of code since it
> very rarely changed...
rpcbind provides additional features, and supports new versions of the
rpcbind protocol. ONE REASON you might want these features is IPv6
support. You have more secure local registration, and also a --warm-
start option, for example; both desirable features. Neither of those
have anything to do with IPv6.
>>> So that's way I think all that is needed is an --enable-ipv6 flag.
>>
>> Actually, the new statd is built only if --enable-tirpc is set. So,
>> yes: new code _and_ new components are provided if --enable-tirpc is
>> set. TI-RPC is very similar to Secure NFS functionality. Secure NFS
>> provides support for new RPC features known as RPCSEC GSS, and
>> --enable-tirpc provides support for new RPC features known as TI-RPC.
>> So again, I don't see any philosophical difference between --enable-
>> gss
>> and --enable-tirpc.
> And the only reason statd need to use the new code is for IPv6
> support, true?
Yes, but I don't see why that's relevant. Again, IPv6 may be a driver
for our adoption of TI-RPC, but that doesn't mean the two are
equivalent.
>> However, --enable-ipv6 is unnecessary because we want, and have,
>> run-time switches for that support. We are forced to, because nfs-
>> utils
>> has to run on kernels which may or may not support IPv6.
>
>> I am continuing to argue this point because getting rid of
>> --enable-tirpc will make our jobs a lot harder. The reason this
>> knob is
>> there is to firewall the new code and keep upstream nfs-utils
>> stable as
>> we integrate more and more support for TI-RPC.
> Understood... And I applaud the effort both you and Jeff are making...
>
>> If we call it --enable-ipv6, many distributions will say "so what, i
>> don't need that" and leave it turned off. We won't get the kind of
>> soak
>> time we really need.
> And if we call --enable-tirpc they will not know that they are
> enabling
> IPv6 code in statd, true?
The new man page for statd explains how that works; inet6 can be
disabled for statd, if desired, via the run-time switch provided in /
etc/netconfig.
But even if statd can respond to NSM requests from IPv6, that really
doesn't matter, unless the rest of the system is ready for IPv6. It's
simply a piece of the infrastructure. AFAICT there is no harm in
having an IPv6-enabled statd on a system that doesn't otherwise
support IPv6.
> But in the end, I guess I have confidence that the distros will do
> what is
> best for them... and if they have customers that need this support
> they
> will enable it. If not, they will not enable it, regardless of what
> upstream does...
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
next prev parent reply other threads:[~2009-06-09 17:01 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 11:36 should we make --enable-tirpc the default in current nfs-utils? Jeff Layton
[not found] ` <20090605073648.5a5497b5-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-05 16:10 ` J. Bruce Fields
2009-06-05 16:14 ` Chuck Lever
2009-06-05 16:38 ` J. Bruce Fields
2009-06-05 17:30 ` Chuck Lever
2009-06-05 18:14 ` Steve Dickson
2009-06-05 16:24 ` Mike Frysinger
2009-06-05 17:36 ` Jeff Layton
[not found] ` <20090605133634.23357e8e-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-05 20:50 ` Mike Frysinger
2009-06-06 11:11 ` Jeff Layton
[not found] ` <20090606071153.164d92dd-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-06 18:00 ` Muntz, Daniel
[not found] ` <7A24DF798E223B4C9864E8F92E8C93EC031D19D3-hX7t0kiaRRpT+ZUat5FNkAK/GNPrWCqfQQ4Iyu8u01E@public.gmane.org>
2009-06-06 20:02 ` Jeff Layton
[not found] ` <20090606160230.247d3ca3-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-08 9:09 ` Steve Dickson
[not found] ` <4A2CD550.4090609-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-06-08 11:10 ` Jeff Layton
[not found] ` <20090608071026.0b57fff8-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2009-06-08 13:36 ` Steve Dickson
[not found] ` <4A2D13DF.2040105-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-06-08 14:26 ` Chuck Lever
2009-06-08 15:04 ` Steve Dickson
[not found] ` <4A2D2862.3090303-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-06-08 15:24 ` Chuck Lever
2009-06-08 16:41 ` Jeff Layton
[not found] ` <20090608124140.3fa02688-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-08 16:50 ` Chuck Lever
2009-06-08 17:00 ` Jeff Layton
[not found] ` <20090608130012.0bea6215-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-08 17:36 ` Chuck Lever
2009-06-09 12:06 ` Steve Dickson
[not found] ` <4A2E503E.1080809-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-06-09 14:30 ` Chuck Lever
2009-06-09 14:48 ` Steve Dickson
[not found] ` <4A2E7646.1030602-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-06-09 15:29 ` Chuck Lever
2009-06-09 15:41 ` Steve Dickson
[not found] ` <4A2E82AD.7070908-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-06-09 17:01 ` Chuck Lever [this message]
2009-06-08 14:16 ` Chuck Lever
2009-06-08 14:23 ` Mike Frysinger
2009-06-08 15:36 ` Muntz, Daniel
[not found] ` <7A24DF798E223B4C9864E8F92E8C93EC031D1B02-hX7t0kiaRRpT+ZUat5FNkAK/GNPrWCqfQQ4Iyu8u01E@public.gmane.org>
2009-06-08 16:49 ` Jeff Layton
[not found] ` <20090608124913.7340074c-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-09 12:58 ` Steve Dickson
2009-06-08 15:46 ` Muntz, Daniel
[not found] ` <7A24DF798E223B4C9864E8F92E8C93EC031D1B12-hX7t0kiaRRpT+ZUat5FNkAK/GNPrWCqfQQ4Iyu8u01E@public.gmane.org>
2009-06-08 16:59 ` Jeff Layton
[not found] ` <20090608125957.3c8f0c95-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-08 17:05 ` Chuck Lever
2009-06-08 17:10 ` Jeff Layton
[not found] ` <20090608131024.6aa0c020-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2009-06-08 17:46 ` Chuck Lever
2009-06-09 12:35 ` Steve Dickson
[not found] ` <4A2E5714.3030502-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-06-09 14:48 ` Chuck Lever
2009-06-09 15:27 ` Steve Dickson
2009-06-08 22:17 ` Muntz, Daniel
[not found] ` <7A24DF798E223B4C9864E8F92E8C93EC031D1EFD-hX7t0kiaRRpT+ZUat5FNkAK/GNPrWCqfQQ4Iyu8u01E@public.gmane.org>
2009-06-08 23:08 ` Jeff Layton
[not found] ` <20090608190825.046355d4-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2009-06-09 1:41 ` Muntz, Daniel
2009-06-09 13:18 ` Steve Dickson
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=6FC2F8D7-91F4-4EED-AFBF-F50EEFB752EA@oracle.com \
--to=chuck.lever@oracle.com \
--cc=Dan.Muntz@netapp.com \
--cc=SteveD@redhat.com \
--cc=jlayton@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=vapier@gentoo.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