Skip to content

Enable the setting of a kernel module parameter from nfs.conf

Steve Dickson linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nfs-utils: Enable the retrieval of raw config settings without expansionsupport/include/conffile.h support/nfs/conffile.c tools/nfsconf/nfsconf.man +1 more+49 -71 reply
2/3nfs-utils: Add support for further ${variable} expansions in nfs.confsupport/nfs/conffile.c+249 -110 replies
3/3nfs-utils: Update nfs4_unique_id module parameter from the nfs.conf valueconfigure.ac nfs.conf systemd/Makefile.am +4 more+74 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Enable the setting of a kernel module parameter from nfs.conf

This is a tweak of the patch set Alice Mitchell posted last July [1]. It enables the setting of the nfs4_unique_id kernel module parameter from /etc/nfs.conf.

Things I tweaked:

* Introduce a new [kernel] section in nfs.conf which only contains the nfs4_unique_id setting... For now...

* nfs4_unique_id can be set to two different values

- nfs4_unique_id = ${machine-id} will use /etc/machine-id as the unique id.
- nfs4_unique_id = ${hostname} will use the system's hostname as the unique id.

* The new nfs-config systemd service need to be enabled for the /etc/modprobe.d/nfs.conf file to be created with the "options nfs nfs4_unique_id=" set.

I see this patch set is not a way to set the nfs4_unique_id module parameter... I see it as a beginning of a way to set all module parameters from /etc/nfs.conf, which I think is a good thing...

[1] https://www.spinics.net/lists/linux-nfs/msg78658.html

Alice Mitchell (3):
nfs-utils: Enable the retrieval of raw config settings without
expansion
nfs-utils: Add support for further ${variable} expansions in nfs.conf
nfs-utils: Update nfs4_unique_id module parameter from the nfs.conf
value

 configure.ac                  |   1 +
 nfs.conf                      |   4 +-
 support/include/conffile.h    |   1 +
 support/nfs/conffile.c        | 283 ++++++++++++++++++++++++++++++++--
 systemd/Makefile.am           |   3 +
 systemd/nfs-client.target     |   3 +
 systemd/nfs-conf-export.sh    |  28 ++++
 systemd/nfs-config.service.in |  18 +++
 systemd/nfs.conf.man          |  19 ++-
 tools/nfsconf/nfsconf.man     |  10 +-
 tools/nfsconf/nfsconfcli.c    |  22 ++-
 11 files changed, 372 insertions(+), 20 deletions(-)
 create mode 100755 systemd/nfs-conf-export.sh
 create mode 100644 systemd/nfs-config.service.in
Signature · 1 line
2.30.2