Skip to content

Enable config.d directory to be processed.

Steve Dickson linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v1 RFC1 patch 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3conffile: process config.d directory config files.support/nfs/conffile.c+116 -30 replies
2/3conffile: Only process files in the config.d dirs that end with ".conf"support/nfs/conffile.c+22 -20 replies
3/3manpage: Update nfs.conf and nfsmount.conf manpagessystemd/nfs.conf.man utils/mount/nfsmount.conf.man+15 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 0/3 V2] Enable config.d directory to be processed.

Here is the second attempt to use conf.d directories to set configuration variables.

When a conf.d directory exists and files with the ".conf" extension exist they will be used to set configuration variables.

Files not using that extension or files beginning with a "." (ex .nfs.conf) will be ignored.

The conf.d files will take priority over the main config files. Meaning a variable set in both the main config and the conf.d file, the conf.d file will have priority over the variable in the main config.

The ordering of when the conf.d are processed can be set by alphabetical naming convention. Prefixing file name with a 001-nfs.conf, 002-nfs.conf will control when the config is process. Note the last config file process with have the highest priority.

Steve Dickson (3):
conffile: process config.d directory config files.
conffile: Only process files in the config.d dirs that end with ".conf"
manpage: Update nfs.conf and nfsmount.conf manpages

 support/nfs/conffile.c        | 139 +++++++++++++++++++++++++++++++++-
 systemd/nfs.conf.man          |   8 ++
 utils/mount/nfsmount.conf.man |   7 ++
 3 files changed, 151 insertions(+), 3 deletions(-)
Signature · 1 line
2.26.2