On Wed, Jun 24, 2009 at 01:42:58PM +0000, Thordur I. Bjornsson wrote: > I like this a little bit better then what was previously proposed. > > I wouldn't mind just removing the long options all togather, but I > doubt thats possible now.
here's the diff then. please check the alternative option names, as i suspect some may be wrong (i cannot find the source to verify). also -d has no long form given. jmc Index: mount_nfs.8 =================================================================== RCS file: /cvs/src/sbin/mount_nfs/mount_nfs.8,v retrieving revision 1.39 diff -u -r1.39 mount_nfs.8 --- mount_nfs.8 6 Jun 2009 20:58:50 -0000 1.39 +++ mount_nfs.8 25 Jun 2009 13:09:42 -0000 @@ -66,27 +66,31 @@ .%T "NFS: Network File System Version 3 Protocol Specification" , Appendix I. .Pp -The options are as follows: +The options are documented below. +An equivalent is given in parentheses, +suitable for use in +.Xr fstab 5 +entries. .Bl -tag -width Ds -.It Fl 2 +.It Fl 2 Pq nfsv2 Use the NFS Version 2 protocol. -.It Fl 3 +.It Fl 3 Pq nfsv3 Use the NFS Version 3 protocol. The default is to try version 3 first, and fall back to version 2 if the mount fails. -.It Fl a Ar maxreadahead +.It Fl a Ar maxreadahead Pq readahead Set the read-ahead count to the specified value. This may be in the range of 0\-4, and determines how many blocks will be read ahead when a large file is being read sequentially. Trying a value greater than 1 for this is suggested for mounts with a large bandwidth-delay product. -.It Fl b +.It Fl b Pq bg If an initial attempt to contact the server fails, fork off a child to keep trying the mount in the background. Useful for .Xr fstab 5 , where the file system mount is not critical to multiuser operation. -.It Fl c +.It Fl c Pq noconn For UDP mount points, do not do a .Xr connect 2 . This must be used for servers that do not reply to requests from the @@ -99,23 +103,23 @@ This may be useful for UDP mounts that exhibit high retry rates, since it is possible that the dynamically estimated timeout interval is too short. -.It Fl g Ar maxgroups +.It Fl g Ar maxgroups Pq maxgrouplist Set the maximum size of the group list for the credentials to the specified value. This should be used for mounts on old servers that cannot handle a group list size of 16, as specified in RFC 1057. Try 8, if users in a lot of groups cannot get a response from the mount point. -.It Fl I Ar readdirsize +.It Fl I Ar readdirsize Pq rdirsize Set the readdir read size to the specified value. The value should normally be a multiple of .Dv DIRBLKSIZ that is less than or equal to the read size for the mount. -.It Fl i +.It Fl i Pq intr Make the mount interruptible, which implies that file system calls that are delayed due to an unresponsive server will fail with EINTR when a termination signal is posted for the process. -.It Fl l +.It Fl l Pq rdirplus Used with NFSV3 to specify that the .Dq readdir plus RPC should @@ -167,10 +171,10 @@ Use the specified port number for NFS requests. The default is to query the portmapper for the NFS port. .El -.It Fl R Ar retrycnt +.It Fl R Ar retrycnt Pq retrycnt Set the retry count for doing the mount to the specified value. The default is 10000. -.It Fl r Ar readsize +.It Fl r Ar readsize Pq rsize Set the read data size to the specified value. It should normally be a power of 2 greater than or equal to 1024. This should be used for UDP mounts when the @@ -185,16 +189,16 @@ See the .Fl w option as well. -.It Fl s +.It Fl s Pq soft A soft mount, which implies that file system calls will fail after .Ar retrans round trip timeout intervals have been reached (see .Fl x ) . -.It Fl T +.It Fl T Pq tcp Use TCP instead of UDP. Note that TCP may not be supported by some very old NFS servers. -.It Fl t Ar timeout +.It Fl t Ar timeout Pq timeo Set the initial retransmit timeout to the specified value in milliseconds. May be useful for fine tuning UDP mounts over internetworks with high packet loss rates or an overloaded server. @@ -207,12 +211,12 @@ option should be specified when using this option to manually tune the timeout interval.) -.It Fl U +.It Fl U Pq udp Force the mount protocol to use UDP, even for TCP NFS mounts. (Necessary for some old .Bx servers.) -.It Fl w Ar writesize +.It Fl w Ar writesize Pq wsize Set the write data size to the specified value. Ditto the comments w.r.t. the .Fl r @@ -225,7 +229,7 @@ .Fl w options should only be used as a last ditch effort at improving performance when mounting servers that do not support TCP mounts. -.It Fl x Ar retrans +.It Fl x Ar retrans Pq retrans Set the retransmit timeout count for soft mounts to the specified value. Defaults to 10. .El