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@xxxxxxxxxx/ Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> --- 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, -- Jeff Layton <jlayton@xxxxxxxxxx>