]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/nfs.man
nfs-utils: NFSv4: fix backgrounding
[nfs-utils.git] / utils / mount / nfs.man
1 .\"@(#)nfs.5"
2 .TH NFS 5 "2 November 2007"
3 .SH NAME
4 nfs \- fstab format and options for the
5 .B nfs
6 and
7 .B nfs4
8 file systems
9 .SH SYNOPSIS
10 .I /etc/fstab
11 .SH DESCRIPTION
12 NFS is an Internet Standard protocol
13 created by Sun Microsystems in 1984. NFS was developed
14 to allow file sharing between systems residing
15 on a local area network.
16 The Linux NFS client supports three versions
17 of the NFS protocol:
18 NFS version 2 [RFC1094],
19 NFS version 3 [RFC1813],
20 and NFS version 4 [RFC3530].
21 .P
22 The
23 .BR mount (8)
24 command attaches a file system to the system's
25 name space hierarchy at a given mount point.
26 The
27 .I /etc/fstab
28 file describes how
29 .BR mount (8)
30 should assemble a system's file name hierarchy
31 from various independent file systems
32 (including file systems exported by NFS servers).
33 Each line in the
34 .I /etc/fstab
35 file describes a single file system, its mount point,
36 and a set of default mount options for that mount point.
37 .P
38 For NFS file system mounts, a line in the
39 .I /etc/fstab
40 file specifies the server name,
41 the path name of the exported server directory to mount,
42 the local directory that is the mount point,
43 the type of file system that is being mounted,
44 and a list of mount options that control
45 the way the filesystem is mounted and
46 how the NFS client behaves when accessing
47 files on this mount point.
48 The fifth and sixth fields on each line are not used
49 by NFS, thus conventionally each contain the digit zero. For example:
50 .P
51 .SP
52 .NF
53 .TA 2.5i +0.75i +0.75i +1.0i
54         server:path     /mountpoint     fstype  option,option,...       0 0
55 .FI
56 .P
57 The server's hostname and export pathname
58 are separated by a colon, while
59 the mount options are separated by commas. The remaining fields
60 are separated by blanks or tabs.
61 The server's hostname can be an unqualified hostname,
62 a fully qualified domain name,
63 or a dotted quad IPv4 address.
64 The
65 .I fstype
66 field contains either "nfs" (for version 2 or version 3 NFS mounts)
67 or "nfs4" (for NFS version 4 mounts).
68 The
69 .B nfs
70 and
71 .B nfs4
72 file system types share similar mount options,
73 which are described below.
74 .SH "MOUNT OPTIONS"
75 Refer to
76 .BR mount (8)
77 for a description of generic mount options
78 available for all file systems. If you do not need to
79 specify any mount options, use the generic option
80 .B defaults
81 in
82 .IR /etc/fstab .
83 .DT
84 .SS "Valid options for either the nfs or nfs4 file system type"
85 These options are valid to use when mounting either
86 .B nfs
87 or
88 .B nfs4
89 file system types.
90 They imply the same behavior
91 and have the same default for both file system types.
92 .TP 1.5i
93 .BR soft " / " hard
94 Determines the recovery behavior of the NFS client
95 after an NFS request times out.
96 If neither option is specified (or if the
97 .B hard
98 option is specified), NFS requests are retried indefinitely.
99 If the
100 .B soft
101 option is specified, then the NFS client fails an NFS request
102 after
103 .B retrans
104 retransmissions have been sent,
105 causing the NFS client to return an error
106 to the calling application.
107 .IP
108 .I NB:
109 A so-called "soft" timeout can cause
110 silent data corruption in certain cases. As such, use the
111 .B soft
112 option only when client responsiveness
113 is more important than data integrity.
114 Using NFS over TCP or increasing the value of the
115 .B retrans
116 option may mitigate some of the risks of using the
117 .B soft
118 option.
119 .TP 1.5i
120 .BI timeo= n
121 The time (in tenths of a second) the NFS client waits for a
122 response before it retries an NFS request. If this
123 option is not specified, requests are retried every
124 60 seconds for NFS over TCP.
125 The NFS client does not perform any kind of timeout backoff
126 for NFS over TCP.
127 .IP
128 However, for NFS over UDP, the client uses an adaptive
129 algorithm to estimate an appropriate timeout value for frequently used
130 request types (such as READ and WRITE requests), but uses the
131 .B timeo
132 setting for infrequently used request types (such as FSINFO requests).
133 If the
134 .B timeo
135 option is not specified,
136 infrequently used request types are retried after 1.1 seconds.
137 After each retransmission, the NFS client doubles the timeout for
138 that request,
139 up to a maximum timeout length of 60 seconds.
140 .TP 1.5i
141 .BI retrans= n
142 The number of times the NFS client retries a request before
143 it attempts further recovery action. If the
144 .B retrans
145 option is not specified, the NFS client tries each request
146 three times.
147 .IP
148 The NFS client generates a "server not responding" message
149 after
150 .B retrans
151 retries, then attempts further recovery (depending on whether the
152 .B hard
153 mount option is in effect).
154 .TP 1.5i
155 .BI rsize= n
156 The maximum number of bytes in each network READ request
157 that the NFS client can receive when reading data from a file
158 on an NFS server.
159 The actual data payload size of each NFS READ request is equal to
160 or smaller than the
161 .B rsize
162 setting. The largest read payload supported by the Linux NFS client
163 is 1,048,576 bytes (one megabyte).
164 .IP
165 The
166 .B rsize
167 value is a positive integral multiple of 1024.
168 Specified
169 .B rsize
170 values lower than 1024 are replaced with 4096; values larger than
171 1048576 are replaced with 1048576. If a specified value is within the supported
172 range but not a multiple of 1024, it is rounded down to the nearest
173 multiple of 1024.
174 .IP
175 If an
176 .B rsize
177 value is not specified, or if the specified
178 .B rsize
179 value is larger than the maximum that either client or server can support,
180 the client and server negotiate the largest
181 .B rsize
182 value that they can both support.
183 .IP
184 The
185 .B rsize
186 mount option as specified on the
187 .BR mount (8)
188 command line appears in the
189 .I /etc/mtab
190 file. However, the effective
191 .B rsize
192 value negotiated by the client and server is reported in the
193 .I /proc/mounts
194 file.
195 .TP 1.5i
196 .BI wsize= n
197 The maximum number of bytes per network WRITE request
198 that the NFS client can send when writing data to a file
199 on an NFS server. The actual data payload size of each
200 NFS WRITE request is equal to
201 or smaller than the
202 .B wsize
203 setting. The largest write payload supported by the Linux NFS client
204 is 1,048,576 bytes (one megabyte).
205 .IP
206 Similar to
207 .B rsize
208 , the
209 .B wsize
210 value is a positive integral multiple of 1024.
211 Specified
212 .B wsize
213 values lower than 1024 are replaced with 4096; values larger than
214 1048576 are replaced with 1048576. If a specified value is within the supported
215 range but not a multiple of 1024, it is rounded down to the nearest
216 multiple of 1024.
217 .IP
218 If a
219 .B wsize
220 value is not specified, or if the specified
221 .B wsize
222 value is larger than the maximum that either client or server can support,
223 the client and server negotiate the largest
224 .B wsize
225 value that they can both support.
226 .IP
227 The
228 .B wsize
229 mount option as specified on the
230 .BR mount (8)
231 command line appears in the
232 .I /etc/mtab
233 file. However, the effective
234 .B wsize
235 value negotiated by the client and server is reported in the
236 .I /proc/mounts
237 file.
238 .TP 1.5i
239 .BR ac " / " noac
240 Selects whether the client may cache file attributes. If neither
241 option is specified (or if
242 .B ac
243 is specified), the client caches file
244 attributes.
245 .IP
246 To improve performance, NFS clients cache file
247 attributes. Every few seconds, an NFS client checks the server's version of each
248 file's attributes for updates.  Changes that occur on the server in
249 those small intervals remain undetected until the client checks the
250 server again. The
251 .B noac
252 option prevents clients from caching file
253 attributes so that applications can more quickly detect file changes
254 on the server.
255 .IP
256 In addition to preventing the client from caching file attributes,
257 the
258 .B noac
259 option forces application writes to become synchronous so
260 that local changes to a file become visible on the server
261 immediately.  That way, other clients can quickly detect recent
262 writes when they check the file's attributes.
263 .IP
264 Using the
265 .B noac
266 option provides greater cache coherence among NFS clients
267 accessing the same files,
268 but it extracts a significant performance penalty.
269 As such, judicious use of file locking is encouraged instead.
270 The DATA AND METADATA COHERENCE section contains a detailed discussion
271 of these trade-offs.
272 .TP 1.5i
273 .BI acregmin= n
274 The minimum time (in seconds) that the NFS client caches
275 attributes of a regular file before it requests
276 fresh attribute information from a server.
277 If this option is not specified, the NFS client uses
278 a 3-second minimum.
279 .TP 1.5i
280 .BI acregmax= n
281 The maximum time (in seconds) that the NFS client caches
282 attributes of a regular file before it requests
283 fresh attribute information from a server.
284 If this option is not specified, the NFS client uses
285 a 60-second maximum.
286 .TP 1.5i
287 .BI acdirmin= n
288 The minimum time (in seconds) that the NFS client caches
289 attributes of a directory before it requests
290 fresh attribute information from a server.
291 If this option is not specified, the NFS client uses
292 a 30-second minimum.
293 .TP 1.5i
294 .BI acdirmax= n
295 The maximum time (in seconds) that the NFS client caches
296 attributes of a directory before it requests
297 fresh attribute information from a server.
298 If this option is not specified, the NFS client uses
299 a 60-second maximum.
300 .TP 1.5i
301 .BI actimeo= n
302 Using
303 .B actimeo
304 sets all of
305 .BR acregmin ,
306 .BR acregmax ,
307 .BR acdirmin ,
308 and
309 .B acdirmax
310 to the same value.
311 If this option is not specified, the NFS client uses
312 the defaults for each of these options listed above.
313 .TP 1.5i
314 .BR bg " / " fg
315 Determines how the
316 .BR mount (8)
317 command behaves if an attempt to mount an export fails.
318 The
319 .B fg
320 option causes
321 .BR mount (8)
322 to exit with an error status if any part of the mount request
323 times out or fails outright.
324 This is called a "foreground" mount,
325 and is the default behavior if neither the
326 .B fg
327 nor
328 .B bg
329 mount option is specified.
330 .IP
331 If the
332 .B bg
333 option is specified, a timeout or failure causes the
334 .BR mount (8)
335 command to fork a child which continues to attempt
336 to mount the export.
337 The parent immediately returns with a zero exit code.
338 This is known as a "background" mount.
339 .IP
340 If the local mount point directory is missing, the
341 .BR mount (8)
342 command acts as if the mount request timed out.
343 This permits nested NFS mounts specified in
344 .I /etc/fstab
345 to proceed in any order during system initialization,
346 even if some NFS servers are not yet available.
347 Alternatively these issues can be addressed
348 using an automounter (refer to
349 .BR automount (8)
350 for details).
351 .TP 1.5i
352 .BI retry= n
353 The number of minutes that the
354 .BR mount (8)
355 command retries an NFS mount operation
356 in the foreground or background before giving up.
357 If this option is not specified, the default value for foreground mounts
358 is 2 minutes, and the default value for background mounts is 10000 minutes (80 minutes shy of one week).
359 .TP 1.5i
360 .BI sec= mode
361 The RPCGSS security flavor to use for accessing files on this mount point.
362 If the
363 .B sec
364 option is not specified, or if
365 .B sec=sys
366 is specified, the NFS client uses the AUTH_SYS security flavor
367 for all NFS requests on this mount point.
368 Valid security flavors are
369 .BR none ,
370 .BR sys ,
371 .BR krb5 ,
372 .BR krb5i ,
373 .BR krb5p ,
374 .BR lkey ,
375 .BR lkeyi ,
376 .BR lkeyp ,
377 .BR spkm ,
378 .BR spkmi ,
379 and
380 .BR spkmp .
381 Refer to the SECURITY CONSIDERATIONS section for details.
382 .TP 1.5i
383 .BR sharecache " / " nosharecache
384 Determines how the client's data cache and attribute cache are shared
385 when mounting the same export more than once concurrently.  Using the
386 same cache reduces memory requirements on the client and presents
387 identical file contents to applications when the same remote file is
388 accessed via different mount points.
389 .IP
390 If neither option is specified, or if the
391 .B sharecache
392 option is
393 specified, then a single cache is used for all mount points that
394 access the same export.  If the
395 .B nosharecache
396 option is specified,
397 then that mount point gets a unique cache.  Note that when data and
398 attribute caches are shared, the mount options from the first mount
399 point take effect for subsequent concurrent mounts of the same export.
400 .IP
401 As of kernel 2.6.18, the behavior specified by
402 .B nosharecache
403 is legacy caching behavior. This
404 is considered a data risk since multiple cached copies
405 of the same file on the same client can become out of sync
406 following a local update of one of the copies.
407 .TP 1.5i
408 .BR resvport " / " noresvport
409 Specifies whether the NFS client should use a privileged source port
410 when communicating with an NFS server for this mount point.
411 If this option is not specified, or the
412 .B resvport
413 option is specified, the NFS client uses a privileged source port.
414 If the
415 .B noresvport
416 option is specified, the NFS client uses a non-privileged source port.
417 This option is supported in kernels 2.6.28 and later.
418 .IP
419 Using non-privileged source ports helps increase the maximum number of
420 NFS mount points allowed on a client, but NFS servers must be configured
421 to allow clients to connect via non-privileged source ports.
422 .IP
423 Refer to the SECURITY CONSIDERATIONS section for important details.
424 .TP 1.5i
425 .BI lookupcache= mode
426 Specifies how the kernel manages its cache of directory entries
427 for a given mount point.
428 .I mode
429 can be one of
430 .BR all ,
431 .BR none ,
432 .BR pos ,
433 or
434 .BR positive .
435 This option is supported in kernels 2.6.28 and later.
436 .IP
437 The Linux NFS client caches the result of all NFS LOOKUP requests.
438 If the requested directory entry exists on the server,
439 the result is referred to as
440 .IR positive .
441 If the requested directory entry does not exist on the server,
442 the result is referred to as
443 .IR negative .
444 .IP
445 If this option is not specified, or if
446 .B all
447 is specified, the client assumes both types of directory cache entries
448 are valid until their parent directory's cached attributes expire.
449 .IP
450 If
451 .BR pos " or " positive
452 is specified, the client assumes positive entries are valid
453 until their parent directory's cached attributes expire, but
454 always revalidates negative entires before an application
455 can use them.
456 .IP
457 If
458 .B none
459 is specified,
460 the client revalidates both types of directory cache entries
461 before an application can use them.
462 This permits quick detection of files that were created or removed
463 by other clients, but can impact application and server performance.
464 .IP
465 The DATA AND METADATA COHERENCE section contains a
466 detailed discussion of these trade-offs.
467 .SS "Valid options for the nfs file system type"
468 Use these options, along with the options in the above subsection,
469 for mounting the
470 .B nfs
471 file system type.
472 .TP 1.5i
473 .BI proto= transport
474 The transport the NFS client uses
475 to transmit requests to the NFS server for this mount point.
476 .I transport
477 can be either
478 .B udp
479 or
480 .BR tcp .
481 Each transport uses different default
482 .B retrans
483 and
484 .B timeo
485 settings; refer to the description of these two mount options for details.
486 .IP
487 In addition to controlling how the NFS client transmits requests to
488 the server, this mount option also controls how the
489 .BR mount (8)
490 command communicates with the server's rpcbind and mountd services.
491 Specifying
492 .B proto=tcp
493 forces all traffic from the
494 .BR mount (8)
495 command and the NFS client to use TCP.
496 Specifying
497 .B proto=udp
498 forces all traffic types to use UDP.
499 .IP
500 If the
501 .B proto
502 mount option is not specified, the
503 .BR mount (8)
504 command discovers which protocols the server supports
505 and chooses an appropriate transport for each service.
506 Refer to the TRANSPORT METHODS section for more details.
507 .TP 1.5i
508 .B udp
509 The
510 .B udp
511 option is an alternative to specifying
512 .BR proto=udp.
513 It is included for compatibility with other operating systems.
514 .TP 1.5i
515 .B tcp
516 The
517 .B tcp
518 option is an alternative to specifying
519 .BR proto=tcp.
520 It is included for compatibility with other operating systems.
521 .TP 1.5i
522 .BI port= n
523 The numeric value of the server's NFS service port.
524 If the server's NFS service is not available on the specified port,
525 the mount request fails.
526 .IP
527 If this option is not specified, or if the specified port value is 0,
528 then the NFS client uses the NFS service port number
529 advertised by the server's rpcbind service.
530 The mount request fails if the server's rpcbind service is not available,
531 the server's NFS service is not registered with its rpcbind service,
532 or the server's NFS service is not available on the advertised port.
533 .TP 1.5i
534 .BI mountport= n
535 The numeric value of the server's mountd port.
536 If the server's mountd service is not available on the specified port,
537 the mount request fails.
538 .IP
539 If this option is not specified,
540 or if the specified port value is 0, then the
541 .BR mount (8)
542 command uses the mountd service port number
543 advertised by the server's rpcbind service.
544 The mount request fails if the server's rpcbind service is not available,
545 the server's mountd service is not registered with its rpcbind service,
546 or the server's mountd service is not available on the advertised port.
547 .IP
548 This option can be used when mounting an NFS server
549 through a firewall that blocks the rpcbind protocol.
550 .TP 1.5i
551 .BI mountproto= transport
552 The transport the NFS client uses
553 to transmit requests to the NFS server's mountd service when performing
554 this mount request, and when later unmounting this mount point.
555 .I transport
556 can be either
557 .B udp
558 or
559 .BR tcp .
560 .IP
561 This option can be used when mounting an NFS server
562 through a firewall that blocks a particular transport.
563 When used in combination with the
564 .B proto
565 option, different transports for mountd requests and NFS requests
566 can be specified.
567 If the server's mountd service is not available via the specified
568 transport, the mount request fails.
569 Refer to the TRANSPORT METHODS section for more on how the
570 .B mountproto
571 mount option interacts with the
572 .B proto
573 mount option.
574 .TP 1.5i
575 .BI mounthost= name
576 The hostname of the host running mountd.
577 If this option is not specified, the
578 .BR mount (8)
579 command assumes that the mountd service runs
580 on the same host as the NFS service.
581 .TP 1.5i
582 .BI mountvers= n
583 The RPC version number used to contact the server's mountd.
584 If this option is not specified, the client uses a version number
585 appropriate to the requested NFS version.
586 This option is useful when multiple NFS services
587 are running on the same remote server host.
588 .TP 1.5i
589 .BI namlen= n
590 The maximum length of a pathname component on this mount.
591 If this option is not specified, the maximum length is negotiated
592 with the server. In most cases, this maximum length is 255 characters.
593 .IP
594 Some early versions of NFS did not support this negotiation.
595 Using this option ensures that
596 .BR pathconf (3)
597 reports the proper maximum component length to applications
598 in such cases.
599 .TP 1.5i
600 .BI nfsvers= n
601 The NFS protocol version number used to contact the server's NFS service.
602 The Linux client supports version 2 and version 3 of the NFS protocol
603 when using the file system type
604 .BR nfs .
605 If the server does not support the requested version,
606 the mount request fails.
607 If this option is not specified, the client attempts to use version 3,
608 but negotiates the NFS version with the server if version 3 support
609 is not available.
610 .TP 1.5i
611 .BI vers= n
612 This option is an alternative to the
613 .B nfsvers
614 option.
615 It is included for compatibility with other operating systems.
616 .TP 1.5i
617 .BR lock " / " nolock
618 Selects whether to use the NLM sideband protocol to lock files on the server.
619 If neither option is specified (or if
620 .B lock
621 is specified), NLM locking is used for this mount point.
622 When using the
623 .B nolock
624 option, applications can lock files,
625 but such locks provide exclusion only against other applications
626 running on the same client.
627 Remote applications are not affected by these locks.
628 .IP
629 NLM locking must be disabled with the
630 .B nolock
631 option when using NFS to mount
632 .I /var
633 because
634 .I /var
635 contains files used by the NLM implementation on Linux.
636 Using the
637 .B nolock
638 option is also required when mounting exports on NFS servers
639 that do not support the NLM protocol.
640 .TP 1.5i
641 .BR intr " / " nointr
642 Selects whether to allow signals to interrupt file operations
643 on this mount point. If neither option
644 is specified (or if
645 .B nointr
646 is specified),
647 signals do not interrupt NFS file operations. If
648 .B intr
649 is specified, system calls return EINTR if an in-progress NFS operation is interrupted by
650 a signal.
651 .IP
652 Using the
653 .B intr
654 option is preferred to using the
655 .B soft
656 option because it is significantly less likely to result in data corruption.
657 .IP
658 The
659 .BR intr " / " nointr
660 mount option is deprecated after kernel 2.6.25.
661 Only SIGKILL can interrupt a pending NFS operation on these kernels,
662 and if specified, this mount option is ignored to provide backwards
663 compatibility with older kernels.
664 .TP 1.5i
665 .BR cto " / " nocto
666 Selects whether to use close-to-open cache coherence semantics.
667 If neither option is specified (or if
668 .B cto
669 is specified), the client uses close-to-open
670 cache coherence semantics. If the
671 .B nocto
672 option is specified, the client uses a non-standard heuristic to determine when
673 files on the server have changed.
674 .IP
675 Using the
676 .B nocto
677 option may improve performance for read-only mounts,
678 but should be used only if the data on the server changes only occasionally.
679 The DATA AND METADATA COHERENCE section discusses the behavior
680 of this option in more detail.
681 .TP 1.5i
682 .BR acl " / " noacl
683 Selects whether to use the NFSACL sideband protocol on this mount point.
684 The NFSACL sideband protocol is a proprietary protocol
685 implemented in Solaris that manages Access Control Lists. NFSACL was never
686 made a standard part of the NFS protocol specification.
687 .IP
688 If neither
689 .B acl
690 nor
691 .B noacl
692 option is specified,
693 the NFS client negotiates with the server
694 to see if the NFSACL protocol is supported,
695 and uses it if the server supports it.
696 Disabling the NFSACL sideband protocol may be necessary
697 if the negotiation causes problems on the client or server.
698 Refer to the SECURITY CONSIDERATIONS section for more details.
699 .TP 1.5i
700 .BR rdirplus " / " nordirplus
701 Selects whether to use NFS version 3 READDIRPLUS requests.
702 If this option is not specified, the NFS client uses READDIRPLUS requests
703 on NFS version 3 mounts to read small directories.
704 Some applications perform better if the client uses only READDIR requests
705 for all directories.
706 .SS "Valid options for the nfs4 file system type"
707 Use these options, along with the options in the first subsection above,
708 for mounting the
709 .B nfs4
710 file system type.
711 .TP 1.5i
712 .BI proto= transport
713 The transport the NFS client uses
714 to transmit requests to the NFS server for this mount point.
715 .I transport
716 can be either
717 .B udp
718 or
719 .BR tcp .
720 All NFS version 4 servers are required to support TCP,
721 so if this mount option is not specified, the NFS version 4 client
722 uses the TCP transport protocol.
723 Refer to the TRANSPORT METHODS section for more details.
724 .TP 1.5i
725 .BI port= n
726 The numeric value of the server's NFS service port.
727 If the server's NFS service is not available on the specified port,
728 the mount request fails.
729 .IP
730 If this mount option is not specified,
731 the NFS client uses the standard NFS port number of 2049
732 without first checking the server's rpcbind service.
733 This allows an NFS version 4 client to contact an NFS version 4
734 server through a firewall that may block rpcbind requests.
735 .IP
736 If the specified port value is 0,
737 then the NFS client uses the NFS service port number
738 advertised by the server's rpcbind service.
739 The mount request fails if the server's rpcbind service is not available,
740 the server's NFS service is not registered with its rpcbind service,
741 or the server's NFS service is not available on the advertised port.
742 .TP 1.5i
743 .BR intr " / " nointr
744 Selects whether to allow signals to interrupt file operations
745 on this mount point. If neither option is specified (or if
746 .B intr
747 is specified), system calls return EINTR if an in-progress NFS operation
748 is interrupted by a signal.  If
749 .B nointr
750 is specified, signals do not
751 interrupt NFS operations.
752 .IP
753 Using the
754 .B intr
755 option is preferred to using the
756 .B soft
757 option because it is significantly less likely to result in data corruption.
758 .IP
759 The
760 .BR intr " / " nointr
761 mount option is deprecated after kernel 2.6.25.
762 Only SIGKILL can interrupt a pending NFS operation on these kernels,
763 and if specified, this mount option is ignored to provide backwards
764 compatibility with older kernels.
765 .TP 1.5i
766 .BR cto " / " nocto
767 Selects whether to use close-to-open cache coherence semantics
768 for NFS directories on this mount point.
769 If neither
770 .B cto
771 nor
772 .B nocto
773 is specified,
774 the default is to use close-to-open cache coherence
775 semantics for directories.
776 .IP
777 File data caching behavior is not affected by this option.
778 The DATA AND METADATA COHERENCE section discusses
779 the behavior of this option in more detail.
780 .TP 1.5i
781 .BI clientaddr= n.n.n.n
782 Specifies  a  single  IPv4  address  (in dotted-quad form)
783 that the NFS client advertises to allow servers
784 to perform NFS version 4 callback requests against
785 files on this mount point. If  the  server is unable to
786 establish callback connections to clients, performance
787 may degrade, or accesses to files may temporarily hang.
788 .IP
789 If this option is not specified, the
790 .BR mount (8)
791 command attempts to discover an appropriate callback address automatically.
792 The automatic discovery process is not perfect, however.
793 In the presence of multiple client network interfaces,
794 special routing policies,
795 or atypical network topologies,
796 the exact address to use for callbacks may be nontrivial to determine.
797 .SH MOUNT CONFIGURATION FILE
798 If the mount command is configured to do so, all of the mount options 
799 described in the previous section can also be configured in the 
800 .I /etc/nfsmount.conf 
801 file. See 
802 .BR nfsmount.conf(5)
803 for details.
804 .SH EXAMPLES
805 To mount an export using NFS version 2,
806 use the
807 .B nfs
808 file system type and specify the
809 .B nfsvers=2
810 mount option.
811 To mount using NFS version 3,
812 use the
813 .B nfs
814 file system type and specify the
815 .B nfsvers=3
816 mount option.
817 To mount using NFS version 4,
818 use the
819 .B nfs4
820 file system type.
821 The
822 .B nfsvers
823 mount option is not supported for the
824 .B nfs4
825 file system type.
826 .P
827 The following example from an
828 .I /etc/fstab
829 file causes the mount command to negotiate
830 reasonable defaults for NFS behavior.
831 .P
832 .NF
833 .TA 2.5i +0.7i +0.7i +.7i
834         server:/export  /mnt    nfs     defaults        0 0
835 .FI
836 .P
837 Here is an example from an /etc/fstab file for an NFS version 2 mount over UDP.
838 .P
839 .NF
840 .TA 2.5i +0.7i +0.7i +.7i
841         server:/export  /mnt    nfs     nfsvers=2,proto=udp     0 0
842 .FI
843 .P
844 Try this example to mount using NFS version 4 over TCP
845 with Kerberos 5 mutual authentication.
846 .P
847 .NF
848 .TA 2.5i +0.7i +0.7i +.7i
849         server:/export  /mnt    nfs4    sec=krb5        0 0
850 .FI
851 .P
852 This example can be used to mount /usr over NFS.
853 .P
854 .NF
855 .TA 2.5i +0.7i +0.7i +.7i
856         server:/export  /usr    nfs     ro,nolock,nocto,actimeo=3600    0 0
857 .FI
858 .SH "TRANSPORT METHODS"
859 NFS clients send requests to NFS servers via
860 Remote Procedure Calls, or
861 .IR RPCs .
862 The RPC client discovers remote service endpoints automatically,
863 handles per-request authentication,
864 adjusts request parameters for different byte endianness on client and server,
865 and retransmits requests that may have been lost by the network or server.
866 RPC requests and replies flow over a network transport.
867 .P
868 In most cases, the
869 .BR mount (8)
870 command, NFS client, and NFS server
871 can automatically negotiate proper transport
872 and data transfer size settings for a mount point.
873 In some cases, however, it pays to specify
874 these settings explicitly using mount options.
875 .P
876 Traditionally, NFS clients used the UDP transport exclusively for
877 transmitting requests to servers.  Though its implementation is
878 simple, NFS over UDP has many limitations that prevent smooth
879 operation and good performance in some common deployment
880 environments.  Even an insignificant packet loss rate results in the
881 loss of whole NFS requests; as such, retransmit timeouts are usually
882 in the subsecond range to allow clients to recover quickly from
883 dropped requests, but this can result in extraneous network traffic
884 and server load.
885 .P
886 However, UDP can be quite effective in specialized settings where
887 the networks MTU is large relative to NFSs data transfer size (such
888 as network environments that enable jumbo Ethernet frames).  In such
889 environments, trimming the
890 .B rsize
891 and
892 .B wsize
893 settings so that each
894 NFS read or write request fits in just a few network frames (or even
895 in  a single  frame) is advised.  This reduces the probability that
896 the loss of a single MTU-sized network frame results in the loss of
897 an entire large read or write request.
898 .P
899 TCP is the default transport protocol used for all modern NFS
900 implementations.  It performs well in almost every conceivable
901 network environment and provides excellent guarantees against data
902 corruption caused by network unreliability.  TCP is often a
903 requirement for mounting a server through a network firewall.
904 .P
905 Under normal circumstances, networks drop packets much more
906 frequently than NFS servers drop requests.  As such, an aggressive
907 retransmit timeout  setting for NFS over TCP is unnecessary. Typical
908 timeout settings for NFS over TCP are between one and ten minutes.
909 After  the client exhausts its retransmits (the value of the
910 .B retrans
911 mount option), it assumes a network partition has occurred,
912 and attempts to reconnect to the server on a fresh socket. Since
913 TCP itself makes network data transfer reliable,
914 .B rsize
915 and
916 .B wsize
917 can safely be allowed to default to the largest values supported by
918 both client and server, independent of the network's MTU size.
919 .SS "Using the mountproto mount option"
920 This section applies only to NFS version 2 and version 3 mounts
921 since NFS version 4 does not use a separate protocol for mount
922 requests.
923 .P
924 The Linux NFS client can use a different transport for
925 contacting an NFS server's rpcbind service, its mountd service,
926 its Network Lock Manager (NLM) service, and its NFS service.
927 The exact transports employed by the Linux NFS client for
928 each mount point depends on the settings of the transport
929 mount options, which include
930 .BR proto ,
931 .BR mountproto ,
932 .BR udp ", and " tcp .
933 .P
934 The client sends Network Status Manager (NSM) notifications
935 via UDP no matter what transport options are specified, but
936 listens for server NSM notifications on both UDP and TCP.
937 The NFS Access Control List (NFSACL) protocol shares the same
938 transport as the main NFS service.
939 .P
940 If no transport options are specified, the Linux NFS client
941 uses UDP to contact the server's mountd service, and TCP to
942 contact its NLM and NFS services by default.
943 .P
944 If the server does not support these transports for these services, the
945 .BR mount (8)
946 command attempts to discover what the server supports, and then retries
947 the mount request once using the discovered transports.
948 If the server does not advertise any transport supported by the client
949 or is misconfigured, the mount request fails.
950 If the
951 .B bg
952 option is in effect, the mount command backgrounds itself and continues
953 to attempt the specified mount request.
954 .P
955 When the
956 .B proto
957 option, the
958 .B udp
959 option, or the
960 .B tcp
961 option is specified but the
962 .B mountproto
963 option is not, the specified transport is used to contact
964 both the server's mountd service and for the NLM and NFS services.
965 .P
966 If the
967 .B mountproto
968 option is specified but none of the
969 .BR proto ", " udp " or " tcp
970 options are specified, then the specified transport is used for the
971 initial mountd request, but the mount command attempts to discover
972 what the server supports for the NFS protocol, preferring TCP if
973 both transports are supported.
974 .P
975 If both the
976 .BR mountproto " and " proto
977 (or
978 .BR udp " or " tcp )
979 options are specified, then the transport specified by the
980 .B mountproto
981 option is used for the initial mountd request, and the transport
982 specified by the
983 .B proto
984 option (or the
985 .BR udp " or " tcp " options)"
986 is used for NFS, no matter what order these options appear.
987 No automatic service discovery is performed if these options are
988 specified.
989 .P
990 If any of the
991 .BR proto ", " udp ", " tcp ", "
992 or
993 .B mountproto
994 options are specified more than once on the same mount command line,
995 then the value of the rightmost instance of each of these options
996 takes effect.
997 .SH "DATA AND METADATA COHERENCE"
998 Some modern cluster file systems provide
999 perfect cache coherence among their clients.
1000 Perfect cache coherence among disparate NFS clients
1001 is expensive to achieve, especially on wide area networks.
1002 As such, NFS settles for weaker cache coherence that
1003 satisfies the requirements of most file sharing types. Normally,
1004 file sharing is completely sequential:
1005 first client A opens a file, writes something to it, then closes it;
1006 then client B opens the same file, and reads the changes.
1007 .DT
1008 .SS "Close-to-open cache consistency"
1009 When an application opens a file stored on an NFS server,
1010 the NFS client checks that it still exists on the server
1011 and is permitted to the opener by sending a GETATTR or ACCESS request.
1012 When the application closes the file,
1013 the NFS client writes back any pending changes
1014 to the file so that the next opener can view the changes.
1015 This also gives the NFS client an opportunity to report
1016 any server write errors to the application
1017 via the return code from
1018 .BR close (2).
1019 The behavior of checking at open time and flushing at close time
1020 is referred to as close-to-open cache consistency.
1021 .SS "Weak cache consistency"
1022 There are still opportunities for a client's data cache
1023 to contain stale data.
1024 The NFS version 3 protocol introduced "weak cache consistency"
1025 (also known as WCC) which provides a way of efficiently checking
1026 a file's attributes before and after a single request.
1027 This allows a client to help identify changes
1028 that could have been made by other clients.
1029 .P
1030 When a client is using many concurrent operations
1031 that update the same file at the same time
1032 (for example, during asynchronous write behind),
1033 it is still difficult to tell whether it was
1034 that client's updates or some other client's updates
1035 that altered the file.
1036 .SS "Attribute caching"
1037 Use the
1038 .B noac
1039 mount option to achieve attribute cache coherence
1040 among multiple clients.
1041 Almost every file system operation checks
1042 file attribute information.
1043 The client keeps this information cached
1044 for a period of time to reduce network and server load.
1045 When
1046 .B noac
1047 is in effect, a client's file attribute cache is disabled,
1048 so each operation that needs to check a file's attributes
1049 is forced to go back to the server.
1050 This permits a client to see changes to a file very quickly,
1051 at the cost of many extra network operations.
1052 .P
1053 Be careful not to confuse the
1054 .B noac
1055 option with "no data caching."
1056 The
1057 .B noac
1058 mount option prevents the client from caching file metadata,
1059 but there are still races that may result in data cache incoherence
1060 between client and server.
1061 .P
1062 The NFS protocol is not designed to support
1063 true cluster file system cache coherence
1064 without some type of application serialization.
1065 If absolute cache coherence among clients is required,
1066 applications should use file locking. Alternatively, applications
1067 can also open their files with the O_DIRECT flag
1068 to disable data caching entirely.
1069 .SS "Directory entry caching"
1070 The Linux NFS client caches the result of all NFS LOOKUP requests.
1071 If the requested directory entry exists on the server,
1072 the result is referred to as a
1073 .IR positive " lookup result.
1074 If the requested directory entry does not exist on the server
1075 (that is, the server returned ENOENT),
1076 the result is referred to as
1077 .IR negative " lookup result.
1078 .P
1079 To detect when directory entries have been added or removed
1080 on the server,
1081 the Linux NFS client watches a directory's mtime.
1082 If the client detects a change in a directory's mtime,
1083 the client drops all cached LOOKUP results for that directory.
1084 Since the directory's mtime is a cached attribute, it may
1085 take some time before a client notices it has changed.
1086 See the descriptions of the
1087 .BR acdirmin ", " acdirmax ", and " noac
1088 mount options for more information about
1089 how long a directory's mtime is cached.
1090 .P
1091 Caching directory entries improves the performance of applications that
1092 do not share files with applications on other clients.
1093 Using cached information about directories can interfere
1094 with applications that run concurrently on multiple clients and
1095 need to detect the creation or removal of files quickly, however.
1096 The
1097 .B lookupcache
1098 mount option allows some tuning of directory entry caching behavior.
1099 .P
1100 Before kernel release 2.6.28,
1101 the Linux NFS client tracked only positive lookup results.
1102 This permitted applications to detect new directory entries
1103 created by other clients quickly while still providing some of the
1104 performance benefits of caching.
1105 If an application depends on the previous lookup caching behavior
1106 of the Linux NFS client, you can use
1107 .BR lookupcache=positive .
1108 .P
1109 If the client ignores its cache and validates every application
1110 lookup request with the server,
1111 that client can immediately detect when a new directory
1112 entry has been either created or removed by another client.
1113 You can specify this behavior using
1114 .BR lookupcache=none .
1115 The extra NFS requests needed if the client does not
1116 cache directory entries can exact a performance penalty.
1117 Disabling lookup caching
1118 should result in less of a performance penalty than using
1119 .BR noac ,
1120 and has no effect on how the NFS client caches the attributes of files.
1121 .P
1122 .SS "The sync mount option"
1123 The NFS client treats the
1124 .B sync
1125 mount option differently than some other file systems
1126 (refer to
1127 .BR mount (8)
1128 for a description of the generic
1129 .B sync
1130 and
1131 .B async
1132 mount options).
1133 If neither
1134 .B sync
1135 nor
1136 .B async
1137 is specified (or if the
1138 .B async
1139 option is specified),
1140 the NFS client delays sending application
1141 writes to the server
1142 until any of these events occur:
1143 .IP
1144 Memory pressure forces reclamation of system memory resources.
1145 .IP
1146 An application flushes file data explicitly with
1147 .BR sync (2),
1148 .BR msync (2),
1149 or
1150 .BR fsync (3).
1151 .IP
1152 An application closes a file with
1153 .BR close (2).
1154 .IP
1155 The file is locked/unlocked via
1156 .BR fcntl (2).
1157 .P
1158 In other words, under normal circumstances,
1159 data written by an application may not immediately appear
1160 on the server that hosts the file.
1161 .P
1162 If the
1163 .B sync
1164 option is specified on a mount point,
1165 any system call that writes data to files on that mount point
1166 causes that data to be flushed to the server
1167 before the system call returns control to user space.
1168 This provides greater data cache coherence among clients,
1169 but at a significant performance cost.
1170 .P
1171 Applications can use the O_SYNC open flag to force application
1172 writes to individual files to go to the server immediately without
1173 the use of the
1174 .B sync
1175 mount option.
1176 .SS "Using file locks with NFS"
1177 The Network Lock Manager protocol is a separate sideband protocol
1178 used to manage file locks in NFS version 2 and version 3.
1179 To support lock recovery after a client or server reboot,
1180 a second sideband protocol --
1181 known as the Network Status Manager protocol --
1182 is also required.
1183 In NFS version 4,
1184 file locking is supported directly in the main NFS protocol,
1185 and the NLM and NSM sideband protocols are not used.
1186 .P
1187 In most cases, NLM and NSM services are started automatically,
1188 and no extra configuration is required.
1189 Configure all NFS clients with fully-qualified domain names
1190 to ensure that NFS servers can find clients to notify them of server reboots.
1191 .P
1192 NLM supports advisory file locks only.
1193 To lock NFS files, use
1194 .BR fcntl (2)
1195 with the F_GETLK and F_SETLK commands.
1196 The NFS client converts file locks obtained via
1197 .BR flock (2)
1198 to advisory locks.
1199 .P
1200 When mounting servers that do not support the NLM protocol,
1201 or when mounting an NFS server through a firewall
1202 that blocks the NLM service port,
1203 specify the
1204 .B nolock
1205 mount option. NLM locking must be disabled with the
1206 .B nolock
1207 option when using NFS to mount
1208 .I /var
1209 because
1210 .I /var
1211 contains files used by the NLM implementation on Linux.
1212 .P
1213 Specifying the
1214 .B nolock
1215 option may also be advised to improve the performance
1216 of a proprietary application which runs on a single client
1217 and uses file locks extensively.
1218 .SS "NFS version 4 caching features"
1219 The data and metadata caching behavior of NFS version 4
1220 clients is similar to that of earlier versions.
1221 However, NFS version 4 adds two features that improve
1222 cache behavior:
1223 .I change attributes
1224 and
1225 .IR "file delegation" .
1226 .P
1227 The
1228 .I change attribute
1229 is a new part of NFS file and directory metadata
1230 which tracks data changes.
1231 It replaces the use of a file's modification
1232 and change time stamps
1233 as a way for clients to validate the content
1234 of their caches.
1235 Change attributes are independent of the time stamp
1236 resolution on either the server or client, however.
1237 .P
1238 A
1239 .I file delegation
1240 is a contract between an NFS version 4 client
1241 and server that allows the client to treat a file temporarily
1242 as if no other client is accessing it.
1243 The server promises to notify the client (via a callback request) if another client
1244 attempts to access that file.
1245 Once a file has been delegated to a client, the client can
1246 cache that file's data and metadata aggressively without
1247 contacting the server.
1248 .P
1249 File delegations come in two flavors:
1250 .I read
1251 and
1252 .IR write .
1253 A
1254 .I read
1255 delegation means that the server notifies the client
1256 about any other clients that want to write to the file.
1257 A
1258 .I write
1259 delegation means that the client gets notified about
1260 either read or write accessors.
1261 .P
1262 Servers grant file delegations when a file is opened,
1263 and can recall delegations at any time when another
1264 client wants access to the file that conflicts with
1265 any delegations already granted.
1266 Delegations on directories are not supported.
1267 .P
1268 In order to support delegation callback, the server
1269 checks the network return path to the client during
1270 the client's initial contact with the server.
1271 If contact with the client cannot be established,
1272 the server simply does not grant any delegations to
1273 that client.
1274 .SH "SECURITY CONSIDERATIONS"
1275 NFS servers control access to file data,
1276 but they depend on their RPC implementation
1277 to provide authentication of NFS requests.
1278 Traditional NFS access control mimics
1279 the standard mode bit access control provided in local file systems.
1280 Traditional RPC authentication uses a number
1281 to represent each user
1282 (usually the user's own uid),
1283 a number to represent the user's group (the user's gid),
1284 and a set of up to 16 auxiliary group numbers
1285 to represent other groups of which the user may be a member.
1286 .P
1287 Typically, file data and user ID values appear unencrypted
1288 (i.e. "in the clear") on the network.
1289 Moreover, NFS versions 2 and 3 use
1290 separate sideband protocols for mounting,
1291 locking and unlocking files,
1292 and reporting system status of clients and servers.
1293 These auxiliary protocols use no authentication.
1294 .P
1295 In addition to combining these sideband protocols with the main NFS protocol,
1296 NFS version 4 introduces more advanced forms of access control,
1297 authentication, and in-transit data protection.
1298 The NFS version 4 specification mandates NFSv4 ACLs,
1299 RPCGSS authentication, and RPCGSS security flavors
1300 that provide per-RPC integrity checking and encryption.
1301 Because NFS version 4 combines the
1302 function of the sideband protocols into the main NFS protocol,
1303 the new security features apply to all NFS version 4 operations
1304 including mounting, file locking, and so on.
1305 RPCGSS authentication can also be used with NFS versions 2 and 3,
1306 but does not protect their sideband protocols.
1307 .P
1308 The
1309 .B sec
1310 mount option specifies the RPCGSS security mode
1311 that is in effect on a given NFS mount point.
1312 Specifying
1313 .B sec=krb5
1314 provides cryptographic proof of a user's identity in each RPC request.
1315 This provides strong verification of the identity of users
1316 accessing data on the server.
1317 Note that additional configuration besides adding this mount option
1318 is required in order to enable Kerberos security.
1319 Refer to the
1320 .BR rpc.gssd (8)
1321 man page for details.
1322 .P
1323 Two additional flavors of Kerberos security are supported:
1324 .B krb5i
1325 and
1326 .BR krb5p .
1327 The
1328 .B krb5i
1329 security flavor provides a cryptographically strong guarantee
1330 that the data in each RPC request has not been tampered with.
1331 The
1332 .B krb5p
1333 security flavor encrypts every RPC request
1334 to prevent data exposure during network transit; however,
1335 expect some performance impact
1336 when using integrity checking or encryption.
1337 Similar support for other forms of cryptographic security (such as lipkey and SPKM3)
1338 is also available.
1339 .P
1340 The NFS version 4 protocol allows
1341 clients and servers to negotiate among multiple security flavors
1342 during mount processing.
1343 However, Linux does not yet implement such negotiation.
1344 The Linux client specifies a single security flavor at mount time
1345 which remains in effect for the lifetime of the mount.
1346 If the server does not support this flavor,
1347 the initial mount request is rejected by the server.
1348 .SS "Using non-privileged source ports"
1349 NFS clients usually communicate with NFS servers via network sockets.
1350 Each end of a socket is assigned a port value, which is simply a number
1351 between 1 and 65535 that distinguishes socket endpoints at the same
1352 IP address.
1353 A socket is uniquely defined by a tuple that includes the transport
1354 protocol (TCP or UDP) and the port values and IP addresses of both
1355 endpoints.
1356 .P
1357 The NFS client can choose any source port value for its sockets,
1358 but usually chooses a
1359 .I privileged
1360 port.
1361 A privileged port is a port value less than 1024.
1362 Only a process with root privileges may create a socket
1363 with a privileged source port.
1364 .P
1365 The exact range of privileged source ports that can be chosen is
1366 set by a pair of sysctls to avoid choosing a well-known port, such as
1367 the port used by ssh.
1368 This means the number of source ports available for the NFS client,
1369 and therefore the number of socket connections that can be used
1370 at the same time,
1371 is practically limited to only a few hundred.
1372 .P
1373 As described above, the traditional default NFS authentication scheme,
1374 known as AUTH_SYS, relies on sending local UID and GID numbers to identify
1375 users making NFS requests.
1376 An NFS server assumes that if a connection comes from a privileged port,
1377 the UID and GID numbers in the NFS requests on this connection have been
1378 verified by the client's kernel or some other local authority.
1379 This is an easy system to spoof, but on a trusted physical network between
1380 trusted hosts, it is entirely adequate.
1381 .P
1382 Roughly speaking, one socket is used for each NFS mount point.
1383 If a client could use non-privileged source ports as well,
1384 the number of sockets allowed,
1385 and thus the maximum number of concurrent mount points,
1386 would be much larger.
1387 .P
1388 Using non-privileged source ports may compromise server security somewhat,
1389 since any user on AUTH_SYS mount points can now pretend to be any other
1390 when making NFS requests.
1391 Thus NFS servers do not support this by default.
1392 They explicitly allow it usually via an export option.
1393 .P
1394 To retain good security while allowing as many mount points as possible,
1395 it is best to allow non-privileged client connections only if the server
1396 and client both require strong authentication, such as Kerberos.
1397 .SS "Mounting through a firewall"
1398 A firewall may reside between an NFS client and server,
1399 or the client or server may block some of its own ports via IP
1400 filter rules.
1401 It is still possible to mount an NFS server through a firewall,
1402 though some of the
1403 .BR mount (8)
1404 command's automatic service endpoint discovery mechanisms may not work; this
1405 requires you to provide specific endpoint details via NFS mount options.
1406 .P
1407 NFS servers normally run a portmapper or rpcbind daemon to advertise
1408 their service endpoints to clients. Clients use the rpcbind daemon to determine:
1409 .IP
1410 What network port each RPC-based service is using
1411 .IP
1412 What transport protocols each RPC-based service supports
1413 .P
1414 The rpcbind daemon uses a well-known port number (111) to help clients find a service endpoint.
1415 Although NFS often uses a standard port number (2049),
1416 auxiliary services such as the NLM service can choose
1417 any unused port number at random.
1418 .P
1419 Common firewall configurations block the well-known rpcbind port.
1420 In the absense of an rpcbind service,
1421 the server administrator fixes the port number
1422 of NFS-related services so that the firewall
1423 can allow access to specific NFS service ports.
1424 Client administrators then specify the port number
1425 for the mountd service via the
1426 .BR mount (8)
1427 command's
1428 .B mountport
1429 option.
1430 It may also be necessary to enforce the use of TCP or UDP
1431 if the firewall blocks one of those transports.
1432 .SS "NFS Access Control Lists"
1433 Solaris allows NFS version 3 clients direct access
1434 to POSIX Access Control Lists stored in its local file systems.
1435 This proprietary sideband protocol, known as NFSACL,
1436 provides richer access control than mode bits.
1437 Linux implements this protocol
1438 for compatibility with the Solaris NFS implementation.
1439 The NFSACL protocol never became a standard part
1440 of the NFS version 3 specification, however.
1441 .P
1442 The NFS version 4 specification mandates a new version
1443 of Access Control Lists that are semantically richer than POSIX ACLs.
1444 NFS version 4 ACLs are not fully compatible with POSIX ACLs; as such,
1445 some translation between the two is required
1446 in an environment that mixes POSIX ACLs and NFS version 4.
1447 .SH FILES
1448 .TP 1.5i
1449 .I /etc/fstab
1450 file system table
1451 .SH BUGS
1452 The generic
1453 .B remount
1454 option is not fully supported.
1455 Generic options, such as
1456 .BR rw " and " ro
1457 can be modified using the
1458 .B remount
1459 option,
1460 but NFS-specific options are not all supported.
1461 The underlying transport or NFS version
1462 cannot be changed by a remount, for example.
1463 Performing a remount on an NFS file system mounted with the
1464 .B noac
1465 option may have unintended consequences.
1466 The
1467 .B noac
1468 option is a mixture of a generic option,
1469 .BR sync ,
1470 and an NFS-specific option
1471 .BR actimeo=0 .
1472 .P
1473 Before 2.4.7, the Linux NFS client did not support NFS over TCP.
1474 .P
1475 Before 2.4.20, the Linux NFS client used a heuristic
1476 to determine whether cached file data was still valid
1477 rather than using the standard close-to-open cache coherency method
1478 described above.
1479 .P
1480 Starting with 2.4.22, the Linux NFS client employs
1481 a Van Jacobsen-based RTT estimator to determine retransmit
1482 timeout values when using NFS over UDP.
1483 .P
1484 Before 2.6.0, the Linux NFS client did not support NFS version 4.
1485 .P
1486 Before 2.6.8, the Linux NFS client used only synchronous reads and writes
1487 when the
1488 .BR rsize " and " wsize
1489 settings were smaller than the system's page size.
1490 .P
1491 The Linux NFS client does not yet support
1492 certain optional features of the NFS version 4 protocol,
1493 such as security negotiation, server referrals, and named attributes.
1494 .SH "SEE ALSO"
1495 .BR fstab (5),
1496 .BR mount (8),
1497 .BR umount (8),
1498 .BR mount.nfs (5),
1499 .BR umount.nfs (5),
1500 .BR exports (5),
1501 .BR nfsd (8),
1502 .BR sm-notify (8),
1503 .BR rpc.statd (8),
1504 .BR rpc.idmapd (8),
1505 .BR rpc.gssd (8),
1506 .BR rpc.svcgssd (8),
1507 .BR kerberos (1)
1508 .sp
1509 RFC 768 for the UDP specification.
1510 .br
1511 RFC 793 for the TCP specification.
1512 .br
1513 RFC 1094 for the NFS version 2 specification.
1514 .br
1515 RFC 1813 for the NFS version 3 specification.
1516 .br
1517 RFC 1832 for the XDR specification.
1518 .br
1519 RFC 1833 for the RPC bind specification.
1520 .br
1521 RFC 2203 for the RPCSEC GSS API protocol specification.
1522 .br
1523 RFC 3530 for the NFS version 4 specification.