]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/nfsmount.conf
mount.nfs: Refactor mount version and protocol autonegotiation
[nfs-utils.git] / utils / mount / nfsmount.conf
1 #
2 # /etc/nfsmount.conf - see nfsmount.conf(5) for details
3 #
4 # This is an NFS mount configuration file. This file can be broken
5 # up into three different sections: Mount, Server and Global
6
7 # [ MountPoint "Mount_point" ] 
8 # This section defines all the mount options that
9 # should be used on a particular mount point. The '<Mount_Point>'
10 # string need to be an exact match of the path in the mount 
11 # command. Example:
12 #     [ MountPoint "/export/home" ]
13 #       background=True
14 # Would cause all mount to /export/home would be done in
15 # the background
16 #
17 # [ Server "Server_Name" ]
18 # This section defines all the mount options that
19 # should be used on mounts to a particular NFS server. 
20 # Example:
21 #     [ Server "nfsserver.foo.com" ]
22 #       rsize=32k
23 #       wsize=32k
24 # All reads and writes to the 'nfsserver.foo.com' server 
25 # will be done with 32k (32768 bytes) block sizes.
26 #
27 [ NFSMount_Global_Options ]
28 # This statically named section defines global mount 
29 # options that can be applied on all NFS mount.
30 #
31 # Protocol Version [2,3,4]
32 # This defines the default protocol version which will
33 # be used to start the negotiation with the server.
34 # Defaultvers=4
35 #
36 # Setting this option makes it mandatory the server supports the
37 # given version. The mount will fail if the given version is 
38 # not support by the server. 
39 # Nfsvers=4
40 #
41 # Network Protocol [udp,tcp,rdma] (Note: values are case sensitive)
42 # This defines the default network protocol which will
43 # be used to start the negotiation with the server.
44 # Defaultproto=tcp
45 #
46 # Setting this option makes it mandatory the server supports the
47 # given network protocol. The mount will fail if the given network
48 # protocol is not supported by the server.
49 # Proto=tcp
50 #
51 # The number of times a request will be retired before 
52 # generating a timeout 
53 # Retrans=2
54 #
55 # The number of minutes that will retry mount
56 # Retry=2
57 #
58 # The minimum time (in seconds) file attributes are cached
59 # acregmin=30
60 #
61 # The Maximum time (in seconds) file attributes are cached
62 # acregmin=60
63 #
64 # The minimum time (in seconds) directory attributes are cached
65 # acregmin=30
66 #
67 # The Maximum time (in seconds) directory attributes are cached
68 # acregmin=60
69 #
70 # Enable Access  Control  Lists
71 # Acl=False
72 #
73 # Enable Attribute Caching
74 # Ac=True
75 #
76 # Do mounts in background (i.e. asynchronously)
77 # Background=False
78 #
79 # Close-To-Open cache coherence
80 # Cto=True
81 #
82 # Do mounts in foreground (i.e. synchronously)
83 # Foreground=True
84 #
85 # How to handle times out from servers (Hard is STRONGLY suggested)
86 # Hard=True
87 # Soft=False
88 #
89 # Enable File Locking
90 # Lock=True
91 #
92 # Enable READDIRPLUS on NFS version 3 mounts
93 # Rdirplus=True
94 #
95 # Maximum Read Size (in Bytes)
96 # Rsize=8k
97 #
98 # Maximum Write Size (in Bytes)
99 # Wsize=8k
100 #
101 # Maximum Server Block Size (in Bytes)
102 # Bsize=8k
103 #
104 # Ignore unknown mount options
105 # Sloppy=False
106 #
107 # Share Data and Attribute Caches
108 # Sharecache=True
109 #
110 # The amount of time, in tenths of a seconds, the client
111 # will wait for a response from the server before retransmitting
112 # the request.
113 # Timeo=600
114 #
115 # Sets all attributes times to the same time (in seconds)
116 # actimeo=30
117 #
118 # Server Mountd port mountport
119 # mountport=4001
120 #
121 # Server Mountd Protocol
122 # mountproto=tcp
123 #
124 # Server Mountd Version
125 # mounvers=3
126 #
127 # Server Mountd Host
128 # mounthost=hostname
129 #
130 # Server Port
131 # Port=2049
132 #
133 # RPCGSS security flavors 
134 # [none, sys, krb5, krb5i, krb5p ]
135 # Sec=sys