From: Chuck Lever III <chuck.lever@oracle.com>
To: Jeff Layton <jlayton@kernel.org>,
Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Cc: NeilBrown <neilb@suse.com>, Dai Ngo <dai.ngo@oracle.com>,
Olga Kornievskaia <olga.kornievskaia@gmail.com>,
Tom Talpey <tom@talpey.com>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: Should we establish a new nfsdctl userland program?
Date: Mon, 5 Feb 2024 19:18:11 +0000 [thread overview]
Message-ID: <DB4F609D-6ABF-4A1F-88EB-8487DC943B5C@oracle.com> (raw)
In-Reply-To: <8e69c484d0dd844453fb7144e72e8659dcb32085.camel@kernel.org>
> On Feb 5, 2024, at 1:03 PM, Jeff Layton <jlayton@kernel.org> wrote:
>
> On Mon, 2024-02-05 at 18:44 +0100, Lorenzo Bianconi wrote:
>>> On Mon, 2024-02-05 at 17:46 +0100, Lorenzo Bianconi wrote:
>>>>
>>>>
>>>> I agree on it. In order to proceed I guess we should define a list of
>>>> requirements/expected behaviour on this new user-space tool used to
>>>> configure nfsd. I am not so familiar with the user-space requirements
>>>> for nfsd so I am just copying what you suggested, something like:
>>>>
>>>> $ nfsdctl stats <--- fetch the new stats that got merged
>>>> $ nfsdctl xprt add proto <udp|tcp> host <host> [port <port>] <--- add a new listen socket, by address or hostname
>>>
>>> Those look fine.
>>>
>>> All of the commands should display the current state too when run with
>>> no arguments. So running "nfsctl xprt" should dump out all of the
>>> listening sockets. Ditto for the ones below too.
>>
>> ack
>>
>
> I think we might need a "nfsdctl xprt del" too. I know we don't have
> that functionality now, but I think it's missing. Otherwise if you
> mistakenly set the wrong socket with the interface above, how do you fix
> it?
Is "nfsdctl xprt" for managing listeners? I think the following
might be more in line with how NFS and RPC deal with transports:
nfsdctl listen netid xxx addr yyyyy [ port zzz ]
or
nfsdctl listen netid xxx dns yyyyy [ port zzz ]
"xxx" would be one of
udp, udp6, tcp, tcp6, rdma, rdma6, local
"addr yyyy" would be an IP presentation address, in an address
family that matches the netid's family. Recall that TI-RPC
considers IPv4 and IPv6 listeners each as separate endpoints.
"dns yyyy" would be a DNS label
Do we need to add a keyword to control whether the kernel
registers the new listening endpoint with the local rpcbind?
> Alternately, we could provide some way to reset the server state
> altogether:
>
> # nfsdctl reset
>
> ?
>
>>>
>>>> $ nfsdctl proto v3.0 v4.0 v4.1 <--- enable NFSv3 and v4.1
>>>
>>> The above would also enable v4.0 too?
>>>
>>> For this we might want to use the +/- syntax, actually. Also, there were
>>> no minorversions before v4, so it probably better not to accept that for
>>> v3:
>>>
>>> $ nfsdctl proto +v3 -v4.0 +4.1
I would prefer not using "proto" since that term is already
overloaded. "version" might be better, and maybe we don't
need the "v" suffix...?
--
Chuck Lever
next prev parent reply other threads:[~2024-02-05 19:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-25 19:40 Should we establish a new nfsdctl userland program? Jeff Layton
2024-01-25 19:54 ` Cedric Blancher
2024-01-25 20:24 ` Chuck Lever III
2024-01-26 0:50 ` Dan Shelton
2024-01-26 2:37 ` Chuck Lever III
2024-01-26 7:26 ` NeilBrown
2024-01-25 21:11 ` NeilBrown
2024-01-25 23:04 ` Jeff Layton
2024-02-02 17:08 ` Lorenzo Bianconi
2024-02-02 17:56 ` Jeff Layton
2024-02-05 16:46 ` Lorenzo Bianconi
2024-02-05 17:29 ` Jeff Layton
2024-02-05 17:44 ` Lorenzo Bianconi
2024-02-05 18:03 ` Jeff Layton
2024-02-05 19:18 ` Chuck Lever III [this message]
2024-02-05 19:44 ` NeilBrown
2024-02-05 19:50 ` Chuck Lever III
2024-02-05 21:09 ` 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=DB4F609D-6ABF-4A1F-88EB-8487DC943B5C@oracle.com \
--to=chuck.lever@oracle.com \
--cc=dai.ngo@oracle.com \
--cc=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=neilb@suse.com \
--cc=olga.kornievskaia@gmail.com \
--cc=tom@talpey.com \
/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;
as well as URLs for NNTP newsgroup(s).