mschorm / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
859b4d5
--- util-linux-2.13-pre2/mount/mount.8.nfsv4	2005-08-02 19:34:16.000000000 +0200
859b4d5
+++ util-linux-2.13-pre2/mount/mount.8	2005-08-17 10:44:06.000000000 +0200
859b4d5
@@ -384,6 +384,7 @@
859b4d5
 .IR msdos ,
859b4d5
 .IR ncpfs ,
859b4d5
 .IR nfs ,
859b4d5
+.IR nfs4 ,
859b4d5
 .IR ntfs ,
859b4d5
 .IR proc ,
859b4d5
 .IR qnx4 ,
859b4d5
@@ -421,7 +422,7 @@
859b4d5
 program has to do is issue a simple
859b4d5
 .IR mount (2)
859b4d5
 system call, and no detailed knowledge of the filesystem type is required.
859b4d5
-For a few types however (like nfs, smbfs, ncpfs) ad hoc code is
859b4d5
+For a few types however (like nfs, nfs4, smbfs, ncpfs) ad hoc code is
859b4d5
 necessary. The nfs ad hoc code is built in, but smbfs and ncpfs
859b4d5
 have a separate mount program. In order to make it possible to
859b4d5
 treat all types in a uniform way, mount will execute the program
859b4d5
@@ -449,9 +450,10 @@
859b4d5
 All of the filesystem types listed there will be tried,
859b4d5
 except for those that are labeled "nodev" (e.g.,
859b4d5
 .IR devpts ,
859b4d5
-.I proc
859b4d5
+.IR proc ,
859b4d5
+.IR nfs ,
859b4d5
 and
859b4d5
-.IR nfs ).
859b4d5
+.IR nfs4 ).
859b4d5
 If
859b4d5
 .I /etc/filesystems
859b4d5
 ends in a line with a single * only, mount will read
859b4d5
@@ -1373,6 +1375,73 @@
859b4d5
 .B nolock
859b4d5
 Do not use locking. Do not start lockd.
859b4d5
 
859b4d5
+.SH "Mount options for nfs4"
859b4d5
+Instead of a textual option string, parsed by the kernel, the
859b4d5
+.I nfs4
859b4d5
+file system expects a binary argument of type
859b4d5
+.IR "struct nfs4_mount_data" .
859b4d5
+The program
859b4d5
+.B mount
859b4d5
+itself parses the following options of the form `tag=value',
859b4d5
+and puts them in the structure mentioned:
859b4d5
+.BI rsize= n,
859b4d5
+.BI wsize= n,
859b4d5
+.BI timeo= n,
859b4d5
+.BI retrans= n,
859b4d5
+.BI acregmin= n,
859b4d5
+.BI acregmax= n,
859b4d5
+.BI acdirmin= n,
859b4d5
+.BI acdirmax= n,
859b4d5
+.BI actimeo= n,
859b4d5
+.BI retry= n,
859b4d5
+.BI port= n,
859b4d5
+.BI proto= n,
859b4d5
+.BI clientaddr= n,
859b4d5
+.BI sec= n.
859b4d5
+The option
859b4d5
+.BI addr= n
859b4d5
+is accepted but ignored.
859b4d5
+Also the following Boolean options, possibly preceded by
859b4d5
+.B no
859b4d5
+are recognized:
859b4d5
+.BR bg ,
859b4d5
+.BR fg ,
859b4d5
+.BR soft ,
859b4d5
+.BR hard ,
859b4d5
+.BR intr ,
859b4d5
+.BR cto ,
859b4d5
+.BR ac ,
859b4d5
+For details, see
859b4d5
+.BR nfs (5).
859b4d5
+
859b4d5
+Especially useful options include
859b4d5
+.TP
859b4d5
+.B rsize=32768,wsize=32768
859b4d5
+This will make your NFS connection faster than with the default
859b4d5
+buffer size of 4096.
859b4d5
+.TP
859b4d5
+.B hard
859b4d5
+The program accessing a file on a NFS mounted file system will hang
859b4d5
+when the server crashes. The process cannot be interrupted or
859b4d5
+killed unless you also specify
859b4d5
+.BR intr .
859b4d5
+When the NFS server is back online the program will continue undisturbed
859b4d5
+from where it was. This is probably what you want.
859b4d5
+.TP
859b4d5
+.B soft
859b4d5
+This option allows the kernel to time out if the NFS server is not
859b4d5
+responding for some time. The time can be
859b4d5
+specified with
859b4d5
+.BR timeo=time .
859b4d5
+This timeout value is expressed in tenths of a second.
859b4d5
+The
859b4d5
+.BR soft
859b4d5
+option might be useful if your NFS server sometimes doesn't respond
859b4d5
+or will be rebooted while some process tries to get a file from the server.
859b4d5
+Avoid using this option with
859b4d5
+.BR proto=udp
859b4d5
+or with a short timeout.
859b4d5
+
859b4d5
 .SH "Mount options for ntfs"
859b4d5
 .TP
859b4d5
 .BI iocharset= name