mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The legacy rpc.nfsd tool will set the nlm_grace_period if the NFSv4 grace period is set. nfsdctl is missing this functionality, so add a new netlink control interface for lockd that it can use. For now, it only allows setting the grace period, and the tcp and udp listener ports. lockd currently uses module parameters and sysctls for configuration, so all of its settings are global. With this change, lockd now tracks these values on a per-net-ns basis. It will only fall back to using the global values if any of them are 0. Finally, as a backward compatibility measure, if updating the nlm settings in the init_net namespace, also update the legacy global values to match. Link: https://issues.redhat.com/browse/RHEL-71698 Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
19 lines
580 B
C
19 lines
580 B
C
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
|
|
/* Do not edit directly, auto-generated from: */
|
|
/* Documentation/netlink/specs/lockd.yaml */
|
|
/* YNL-GEN kernel header */
|
|
|
|
#ifndef _LINUX_LOCKD_GEN_H
|
|
#define _LINUX_LOCKD_GEN_H
|
|
|
|
#include <net/netlink.h>
|
|
#include <net/genetlink.h>
|
|
|
|
#include <uapi/linux/lockd_netlink.h>
|
|
|
|
int lockd_nl_server_set_doit(struct sk_buff *skb, struct genl_info *info);
|
|
int lockd_nl_server_get_doit(struct sk_buff *skb, struct genl_info *info);
|
|
|
|
extern struct genl_family lockd_nl_family;
|
|
|
|
#endif /* _LINUX_LOCKD_GEN_H */
|