On 2/21/07, Ingo Schwarze <[EMAIL PROTECTED]> wrote:
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[]

Ha, I knew I was missing something!  The source, of course, the source!


> 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.

Yeah, I didn't think it was very appropriate either.

Thanks!

Greg

Reply via email to