This version fixes some selftest coverage gaps that Sashiko pointed out. The actual bugfix is unchanged.
This patchset fixes a rather silly bug that Scott pointed out to me in a meeting recently. You currently can't set the ports in lockd via the netlink interface unless you also set the gracetime. This patch makes them all properly optional. Signed-off-by: Jeff Layton <[email protected]> --- Changes in v2: - selftests: split put_ports() into put_tcp_port()/put_udp_port() helpers - selftests: attributes_are_set_independently now also covers a UDP-only SERVER_SET - selftests: empty_set_is_a_noop and settings_are_per_netns now set and check gracetime too - Link to v1: https://lore.kernel.org/r/[email protected] --- Jeff Layton (2): lockd: allow SERVER_SET without a gracetime attribute selftests/nfsd: add lockd netlink configuration tests fs/lockd/svc.c | 50 ++-- tools/testing/selftests/nfsd/.gitignore | 1 + tools/testing/selftests/nfsd/Makefile | 1 + tools/testing/selftests/nfsd/nfsd_lockd_netlink.c | 268 ++++++++++++++++++++++ tools/testing/selftests/nfsd/nfsd_netlink.h | 90 ++++++-- 5 files changed, 367 insertions(+), 43 deletions(-) --- base-commit: cab95e6be3ba82bcf4c8be27c2eb20e55238aa41 change-id: 20260922-nfsd-testing-00c12335047d Best regards, -- Jeff Layton <[email protected]>

