public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [nfs-utils PATCH v2 0/2] nfsdctl version handling fixes
@ 2025-01-10 20:17 Scott Mayhew
  2025-01-10 20:17 ` [nfs-utils PATCH v2 1/2] nfsdctl: tweak the version subcommand behavior Scott Mayhew
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Scott Mayhew @ 2025-01-10 20:17 UTC (permalink / raw)
  To: steved; +Cc: jlayton, yoyang, linux-nfs

Two changes in how nfsdctl does version handling.  The first patch makes
the 'nfsdctl version' command behave according to the man page for w.r.t
handling +4/-4, e.g.

# utils/nfsdctl/nfsdctl
nfsdctl> threads 0
nfsdctl> version
+3.0 +4.0 +4.1 +4.2
nfsdctl> version -4
nfsdctl> version
+3.0 -4.0 -4.1 -4.2
nfsdctl> version +4
nfsdctl> version
+3.0 +4.0 +4.1 +4.2
nfsdctl> version -4 +4.2
nfsdctl> version
+3.0 -4.0 -4.1 +4.2
nfsdctl> ^D

The second patch makes nfsdctl's handling of the nfsd version options in
nfs.conf behave like rpc.nfsd's.  This is important since the systemd
service file will fall back to rpc.nfsd if nfsdctl fails.  I'll send a
test script and test results in a followup email.

-Scott

Scott Mayhew (2):
  nfsdctl: tweak the version subcommand behavior
  nfsdctl: tweak the nfs.conf version handling

 utils/nfsdctl/nfsdctl.c | 69 +++++++++++++++++++++++++++++++++++------
 1 file changed, 59 insertions(+), 10 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-13 23:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10 20:17 [nfs-utils PATCH v2 0/2] nfsdctl version handling fixes Scott Mayhew
2025-01-10 20:17 ` [nfs-utils PATCH v2 1/2] nfsdctl: tweak the version subcommand behavior Scott Mayhew
2025-01-10 20:17 ` [nfs-utils PATCH v2 2/2] nfsdctl: tweak the nfs.conf version handling Scott Mayhew
2025-01-10 20:26 ` [nfs-utils PATCH v2 0/2] nfsdctl version handling fixes Scott Mayhew
2025-01-11 12:30 ` Jeff Layton
2025-01-13 23:11   ` Scott Mayhew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox