mbox series

[RFC,0/2] nfsdctl: new nfs-utils tool for managing the kernel NFS server

Message ID 20240412-nfsdctl-v1-0-efd6dcebcc04@kernel.org (mailing list archive)
Headers show
Series nfsdctl: new nfs-utils tool for managing the kernel NFS server | expand

Message

Jeff Layton April 12, 2024, 1:54 p.m. UTC
With Lorenzo's addition [1] of new kernel netlink interfaces, it's a
good time to revisit how the kernel server is managed from userland.

This series first adds Lorenzo's original userland nfsdctl tool to the
nfs-utils tree, and then converts it to a subcommand-based interface, in
the spirit of tools like nmcli or virsh.

This is not quite at feature parity with rpc.nfsd(8) yet, at least as
far as autostart supporting options in /etc/nfs.conf. We need a way to
set the grace-time and lease-time. This also lacks a manpage and a lot
of needed --help text, so it's not ready for merge yet.

Consider this a request for early feedback: Does this seem like a
reasonable approach for managing the server?

[1]: https://lore.kernel.org/linux-nfs/cover.1712853393.git.lorenzo@kernel.org/

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Jeff Layton (1):
      nfsdctl: convert it to a command-line based interface

Lorenzo Bianconi (1):
      nfsdctl: add the nfsdctl utility to nfs-utils

 configure.ac              |   13 +
 utils/Makefile.am         |    4 +
 utils/nfsdctl/Makefile.am |   10 +
 utils/nfsdctl/nfsdctl.c   | 1321 +++++++++++++++++++++++++++++++++++++++++++++
 utils/nfsdctl/nfsdctl.h   |  184 +++++++
 5 files changed, 1532 insertions(+)
---
base-commit: 4aaa812366170c5671a99eaca4d814cbf310cfd1
change-id: 20240412-nfsdctl-fa8bd8430cfd

Best regards,