summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-08-16 17:05:56 -0400
committerSteve Dickson <steved@redhat.com>2009-08-16 17:05:56 -0400
commit4d18845fee7c6f5fc3d987fd9d3b5c5215c9e68b (patch)
tree7df891ed59452a1e120db550f1bc24a27e379e21 /utils
parent9082582d6675e45067838805a65b6fcc07164557 (diff)
downloadnfs-utils-4d18845fee7c6f5fc3d987fd9d3b5c5215c9e68b.tar.gz
nfs-utils-4d18845fee7c6f5fc3d987fd9d3b5c5215c9e68b.tar.xz
nfs-utils-4d18845fee7c6f5fc3d987fd9d3b5c5215c9e68b.zip
The new nfsmount.conf(5) man page and the update to
the nfs(5) man page Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/mount/Makefile.am1
-rw-r--r--utils/mount/nfs.man7
-rw-r--r--utils/mount/nfsmount.conf.man87
3 files changed, 95 insertions, 0 deletions
diff --git a/utils/mount/Makefile.am b/utils/mount/Makefile.am
index db7778f..905bcb9 100644
--- a/utils/mount/Makefile.am
+++ b/utils/mount/Makefile.am
@@ -20,6 +20,7 @@ mount_nfs_SOURCES = mount.c error.c network.c fstab.c token.c \
if MOUNT_CONFIG
mount_nfs_SOURCES += configfile.c
+man5_MANS += nfsmount.conf.man
endif
mount_nfs_LDADD = ../../support/nfs/libnfs.a \
diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
index 7aa15d6..2299637 100644
--- a/utils/mount/nfs.man
+++ b/utils/mount/nfs.man
@@ -794,6 +794,13 @@ In the presence of multiple client network interfaces,
special routing policies,
or atypical network topologies,
the exact address to use for callbacks may be nontrivial to determine.
+.SH MOUNT CONFIGURATION FILE
+If the mount command is configured to do so, all of the mount options
+described in the previous section can also be configured in the
+.I /etc/nfsmount.conf
+file. See
+.BR nfsmount.conf(5)
+for details.
.SH EXAMPLES
To mount an export using NFS version 2,
use the
diff --git a/utils/mount/nfsmount.conf.man b/utils/mount/nfsmount.conf.man
new file mode 100644
index 0000000..12a3fe7
--- /dev/null
+++ b/utils/mount/nfsmount.conf.man
@@ -0,0 +1,87 @@
+.\"@(#)nfsmount.conf.5"
+.TH NFSMOUNT.CONF 5 "9 Mar 2008"
+.SH NAME
+nfsmount.conf - Configuration file for NFS mounts
+.SH SYNOPSIS
+Configuration file for NFS mounts that allows options
+to be set globally, per server or per mount point.
+.SH DESCRIPTION
+The configuration file is made up of multiple sections
+followed by variables associated with that section.
+A section is defined by a string enclosed by
+.BR [
+and
+.BR ]
+branches.
+Variables are assignment statements that assign values
+to particular variables using the
+.BR =
+operator, as in
+.BR Proto=Tcp .
+Sections are broken up into three basic categories:
+Global options, Server options and Mount Point options.
+.HP
+.B [ NFSMount_Global_Options ]
+- This statically named section
+defines all of the global mount options that can be
+applied to every NFS mount.
+.HP
+.B [ Server \(lqServer_Name\(rq ]
+- This section defines all the mount options that should
+be used on mounts to a particular NFS server. The
+.I \(lqServer_Name\(rq
+strings needs to be surrounded by '\(lq' and
+be an exact match of the server name used in the
+.B mount
+command.
+.HP
+.B [ MountPoint \(lqMount_Point\(rq ]
+- This section defines all the mount options that
+should be used on a particular mount point.
+The
+.I \(lqMount_Point\(rq
+string needs to be surrounded by '\(lq' and be an
+exact match of the mount point used in the
+.BR mount
+command.
+.SH EXAMPLES
+.PP
+These are some example lines of how sections and variables
+are defined in the configuration file.
+.PP
+[ NFSMount_Global_Options ]
+.br
+ Proto=Tcp
+.RS
+.HP
+The TCP protocol will be used on every NFS mount.
+.HP
+.RE
+[ Server \(lqnfsserver.foo.com\(rq ]
+.br
+ rsize=32k
+.br
+ wsize=32k
+.HP
+.RS
+A 33k (32768 bytes) block size will be used as the read and write
+size on all mounts to the 'nfsserver.foo.com' server.
+.HP
+.RE
+.BR
+[ MountPoint \(lq/export/home\(rq ]
+.br
+ Background=True
+.RS
+.HP
+All mounts to the '/export/home' export will be performed in
+the background (i.e. done asynchronously).
+.HP
+.SH FILES
+.TP 10n
+.I /etc/nfsmount.conf
+Default NFS mount configuration file
+.PD
+.SH SEE ALSO
+.BR nfs (5),
+.BR mount (8),