Hi Greg,

Greg Thomas wrote on Wed, Feb 21, 2007 at 05:16:35PM -0800:

> This has been bugging me for a couple of days, and I can't figure out
> if I'm missing something or the fstab (or another) man page is.

As fstab(5) does not explain any options except the generic ones
   rw   ro   sw   xx
   [no]auto   (user|group)quota
I think fstab(5) does not lack anything.

> From the example in the fstab man page:
> server:/export/ports /usr/ports nfs rw,nodev,nosuid,tcp,soft,intr 0 0
> 
> Many of the options in the fourth field are explained in the various
> mount man pages but as far as I can see for the NFS example things
> like soft and tcp aren't.

Indeed, i would say several options are missing from mount_nfs(8).

> In the mount_nfs man page you can see the options for soft, tcp, or
> udp (-s, -T, -U respectively)

Be careful not to jump to conclusions;
the last one is "mntudp", not "udp".

> but I don't see where the options valid for fstab are explicitly
> listed.  I know in these three cases it's an easy guess but I don't
> know if all the NFS options are as easily guessable.

Do not guess.  When in dire need, read the fantastic source.
OpenBSD source is mostly fun to read.

  /usr/src/sbin/mount_nfs/mount_nfs.c
  const struct mntopt mopts[]

> So, am I missing where the valid options for NFS entries in fstab are
> listed?  I notice on some other OSes that there is a man 5 nfs which
> shows all the options valid for fstab.

Hmmm, nfs(5) does not seem like the place to put this in OpenBSD.

These options are not only for the fstab(5); you can as well pass them
to mount[_nfs] -o.  As far as i know, anything you can pass to mount(8)
via -o can also be put into the fourth field of the fstab(5).

By the way, mount_nfs -o resvport still sets NFSMNT_RESVPORT,
even though mount_nfs -P is obsolete and a noop.

And for mount_nfs -agIRrtwx, i failed to find any -o synonyms.
Er, well.  Hmmm...

Good luck setting up your fstab,
  Ingo

Index: mount_nfs.8
===================================================================
RCS file: /cvs/src/sbin/mount_nfs/mount_nfs.8,v
retrieving revision 1.36
diff -u -r1.36 mount_nfs.8
--- mount_nfs.8 3 Jan 2006 19:01:18 -0000       1.36
+++ mount_nfs.8 22 Feb 2007 02:47:33 -0000
@@ -163,9 +163,49 @@
 .Ar num
 seconds.
 The default is 5 seconds.
+.It Cm bg
+Synonym for the
+.Fl b
+flag.
+.It Cm conn
+Synonym for the
+.Fl c
+flag.
+.It Cm dumbtimer
+Synonym for the
+.Fl d
+flag.
+.It Cm intr
+Synonym for the
+.Fl i
+flag.
+.It Cm mntudp
+Synonym for the
+.Fl U
+flag.
+.It Cm nfsv2
+Synonym for the
+.Fl 2
+flag.
+.It Cm nfsv3
+Synonym for the
+.Fl 3
+flag.
 .It Cm port Ns = Ns Ar portnumber
 Use the specified port number for NFS requests.
 The default is to query the portmapper for the NFS port.
+.It Cm rdirplus
+Synonym for the
+.Fl l
+flag.
+.It Cm soft
+Synonym for the
+.Fl s
+flag.
+.It Cm tcp
+Synonym for the
+.Fl T
+flag.
 .El
 .It Fl R Ar retrycnt
 Set the retry count for doing the mount to the specified value.

Reply via email to