1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
.\" @(#)nfsmount.conf.5"
.TH NFSMOUNT.CONF 5 "16 December 2020"
.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 section headers
followed by variable assignments associated with that section.
A section header is defined by a string enclosed by
.BR [
and
.BR ]
brackets.
Variable assignments are assignment statements that assign values
to particular variables using the
.BR =
operator, as in
.BR Proto=Tcp .
The variables that can be assigned are the set of NFS specific
mount options listed in
.BR nfs (5)
together with the filesystem-independant mount options listed in
.BR mount (8)
and three additions:
.B Sloppy=True
has the same effect as the
.B -s
option to
.IR mount ,
and
.B Foreground=True
and
.B Background=True
have the same effect as
.B bg
and
.BR fg .
.PP
Options in the config file may be given in upper, lower, or mixed case
and will be shifted to lower case before being passed to the filesystem.
.PP
Boolean mount options which do not need an equals sign must be given as
.RI \[dq] option =True".
Instead of preceeding such an option with
.RB \[dq] no \[dq]
its negation must be given as
.RI \[dq] option =False".
.PP
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 \[dq]Server_Name\[dq] ]
- This section defines all the mount options that should
be used on mounts to a particular NFS server. The
.I \[dq]Server_Name\[dq]
strings needs to be surrounded by '\[dq]' and be an exact match
(ignoring case) of the server name used in the
.B mount
command.
.HP
.B [ MountPoint \[dq]Mount_Point\[dq] ]
- This section defines all the mount options that
should be used on a particular mount point.
The
.I \[dq]Mount_Point\[dq]
string needs to be surrounded by '\[dq]' and be an
exact match of the mount point used in the
.BR mount
command. Though path names are usually case-sensitive, the Mount_Point
name is matched insensitive to case.
.PP
The sections are processed in the reverse of the order listed above, and
any options already seen, either in a previous section or on the
command line, will be ignored when seen again.
.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
.PP
The TCP/IPv4 protocol will be used on every NFS mount.
.RE
.PP
[ Server \[dq]nfsserver.foo.com\[dq] ]
.br
rsize=32k
.br
wsize=32k
.br
proto=udp6
.RS
.PP
A 32k (32768 bytes) block size will be used as the read and write
size on all mounts to the 'nfsserver.foo.com' server. UDP/IPv6
is the protocol to be used.
.RE
.PP
[ MountPoint \[dq]/export/home\[dq] ]
.br
Background=True
.RS
.PP
All mounts to the '/export/home' export will be performed in
the background (i.e. done asynchronously).
.RE
.SH FILES
.I /usr/etc/nfsmount.conf
.br
.I /usr/etc/nfsmount.conf.d/*.conf
.br
.I /etc/nfsmount.conf
.br
.I /etc/nfsmount.conf.d/*.conf
.br
.IP
Default NFS mount configuration files, variables set in the later file
over-ride those in the earlier file.
.PD
.SH SEE ALSO
.BR nfs (5),
.BR mount (8),
|