[PATCH nfs-utils 00/17] exportfs/exportd/mountd: allow them to use netlink for up/downcalls

Jeff Layton
2026-03-16T15:16:53Z

This adds support for the new netlink-based upcalls and downcalls in
mountd, exportd and exportfs. With this, mountd is no longer reliant on
/proc for sunrpc cache upcalls.

There are also a few bugfixes and cleanups for existing code and
documentation in here too.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Jeff Layton (17):
nfsdctl: move *_netlink.h to support/include/
support/export: remove unnecessary static variables in nfsd_fh expkey lookup
exportfs: remove obsolete legacy mode documentation from manpage
support/include: update netlink headers for all cache upcalls
build: add libnl3 and netlink header support for exportd and mountd
xlog: claim D_FAC3 as D_NETLINK
exportd/mountd: add netlink support for svc_export cache
exportd/mountd: add netlink support for the nfsd.fh cache
exportd/mountd: add netlink support for the auth.unix.ip cache
exportd/mountd: add netlink support for the auth.unix.gid cache
mountd/exportd: only use /proc interfaces if netlink setup fails
support/export: check for pending requests after opening netlink sockets
exportd/mountd: use cache type from notifications to target scanning
nfsd/sunrpc: add cache flush command and attribute enums
exportfs: add netlink support for cache flush with /proc fallback
exportfs: use netlink to probe kernel support, skip export_test
mountd/exportd/exportfs: add --no-netlink option to disable netlink

configure.ac | 32 +-
support/export/Makefile.am | 5 +-
support/export/cache.c | 1892 +++++++++++++++++---
support/export/cache_flush.c | 166 ++
support/include/Makefile.am | 7 +-
{utils/nfsdctl => support/include}/lockd_netlink.h | 0
support/include/nfsd_netlink.h | 232 +++
support/include/sunrpc_netlink.h | 85 +
support/include/xlog.h | 2 +-
support/nfs/cacheio.c | 49 +-
utils/exportd/Makefile.am | 2 +-
utils/exportd/exportd.c | 10 +-
utils/exportd/exportd.man | 12 +-
utils/exportfs/Makefile.am | 6 +-
utils/exportfs/exportfs.c | 55 +-
utils/exportfs/exportfs.man | 79 +-
utils/mountd/Makefile.am | 2 +-
utils/mountd/mountd.c | 9 +-
utils/mountd/mountd.man | 9 +
utils/nfsdctl/nfsd_netlink.h | 98 -
20 files changed, 2343 insertions(+), 409 deletions(-)
---
base-commit: b9c9eea7c3afcfc77e241f71302a792dd15c8ea8
change-id: 20260316-exportd-netlink-a53bf66ae034

Best regards,
--
Jeff Layton <jlayton@kernel.org>