Skip to content

Add options to nfsd etc to avoid needing to write to /proc

Neil Brown linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nfsd: add -r and --rdma options to request rdma service.utils/nfsd/nfsd.c utils/nfsd/nfsd.man utils/nfsd/nfssvc.c +1 more+63 -32 replies
2/4nfsd: alloc nfsv4leasetime and nfsv4gracetime to be set.utils/nfsd/nfsd.c utils/nfsd/nfsd.man utils/nfsd/nfssvc.c +1 more+58 -50 replies
3/4nfsd: set nlm grace time to make NFSv4 grace timeutils/nfsd/nfsd.man utils/nfsd/nfssvc.c+10 -11 reply
4/4statd: add options to set port number of lockd.utils/statd/statd.c utils/statd/statd.man+76 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [nfs-utils RPC-PATCH 0/4] Add options to nfsd etc to avoid needing to write to /proc

There are a number of NFS-related setting that currently must be set by writing to various files under /proc.
This is a bit clumsy, particularly for systemd unit files.

So this series adds options to a number of commands where relevant.

The first two (rdma, and nfsv4{grace,lease}time) I am quite comfortable with. The third (nlm grace time) I think is probably right but if someone can argue
an alternate approach I'm unlikely to resist.
The fourth is .... uhm. You better look yourself.

Part of me thinks that nlm port numbers should be set in /etc/sysctl.conf (or sysctl.d) and /etc/modprobe.d should have something like

install lockd sysctl -p /etc/sysctl.d/lockd

but last time I tried that it broke "modprobe --show-depends".
Also it is awkward to get setting from /etc/sysconfig/nfs into /etc/sysctl.d/lockd

Thoughts?

Thanks,
NeilBrown

---

Neil Brown (4):
nfsd: add -r and --rdma options to request rdma service.
nfsd: alloc nfsv4leasetime and nfsv4gracetime to be set.
nfsd: set nlm grace time to make NFSv4 grace time
statd: add options to set port number of lockd.

 utils/nfsd/nfsd.c     |   52 +++++++++++++++++++++++++++++++++++++++----
 utils/nfsd/nfsd.man   |   21 +++++++++++++++++
 utils/nfsd/nfssvc.c   |   59 +++++++++++++++++++++++++++++++++++++++++++++++++
 utils/nfsd/nfssvc.h   |    2 ++
 utils/statd/statd.c   |   57 +++++++++++++++++++++++++++++++++++++++++++++--
 utils/statd/statd.man |   24 ++++++++++++++++++--
 6 files changed, 204 insertions(+), 11 deletions(-)
Signature · 1 line
Signature