[01/15] Add man-page describing /etc/nfs.conf
diff mbox

Message ID 148065110794.28046.7740199040148300941.stgit@noble
State New
Headers show

Commit Message

NeilBrown Dec. 2, 2016, 3:58 a.m. UTC
It may seem a little odd placing this in the "systemd" directory,
but it is a conveninent place, and /etc/nfs.conf was added in
part to help with systemd integration.

Signed-off-by: NeilBrown <neilb@suse.com>
 systemd/Makefile.am  |    4 ++-
 systemd/nfs.conf.man |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+), 1 deletion(-)
 create mode 100644 systemd/nfs.conf.man

To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

diff mbox

diff --git a/systemd/Makefile.am b/systemd/Makefile.am
index 49c9b8d3b459..b647ef00a0d1 100644
--- a/systemd/Makefile.am
+++ b/systemd/Makefile.am
@@ -36,7 +36,9 @@  unit_files += \
-EXTRA_DIST = $(unit_files)
+man5_MANS	= nfs.conf.man
+EXTRA_DIST = $(unit_files) $(man5_MANS)
 unit_dir = /usr/lib/systemd/system
 generator_dir = /usr/lib/systemd/system-generators
diff --git a/systemd/nfs.conf.man b/systemd/nfs.conf.man
new file mode 100644
index 000000000000..3dd56f735de2
--- /dev/null
+++ b/systemd/nfs.conf.man
@@ -0,0 +1,67 @@ 
+nfs.conf \- general configuration for NFS daemons and tools
+.I /etc/nfs.conf
+This file contains site-specific configuration for various NFS daemons
+and other processes.  Most configuration can also be passed to
+processes via command line arguments, but it can be more convenient to
+have a central file.  In particular, this encourages consistent
+configuration across different processes.
+When command line options are provided, they override values set in
+this file.  When this file does not specify a particular parameter,
+and no command line option is provided, each tool provides its own
+default values.
+The file format supports multiple sections, each of which can contain
+multiple value assignments.  A section is introduced by a line
+containing the section name enclosed in square brackets, so
+.B [global]
+would introduce a section called
+.BR global .
+A value assignment is a single line that has the name of the value, an
+equals sign, and a setting for the value, so
+.B threads = 4
+would set the value named
+.B threads
+in the current section to
+.BR 4 .
+Leading and trailing spaces and tab
+are ignored, as are spaces and tabs surrounding the equals sign.
+Any line starting with
+.RB \*(lq # \*(rq
+.RB \*(lq ; \*(rq
+is ignored, as is any blank line.
+Lookup of section and value names is case-insensitive.
+The following sections are known to various programs, and can contain
+the given named values.
+.B nfsdcltrack
+Recognized values:
+.BR storagedir .
+.B nfsdcltrack
+program is run directly by the Linux kernel and there is no
+opportunity to provide command line arguments, so the configuration
+file is the only way to configure this program.  See
+.BR nfsdcltrack (8)
+for details.
+.I /etc/nfs.conf
+.BR nfsdcltrack (8),
+.BR nfsmount.conf (5).