On Mon, Mar 11, 2019 at 12:16:59PM -0400, Kurt Mosiejczuk wrote:
> On Mon, Mar 11, 2019 at 04:51:00PM +0100, Otto Moerbeek wrote:
>
> > Looking at mount_nfs.c, I don't see all options you mention in the
> > mopts array. Where did you find them? e.g. udp does not exist in that
> > list.
>
> > When trying to test it:
>
> > ds:/tmp /mnt nfs rw,udp 0 0
>
> > I just get this:
>
> > mount_nfs: -o udp: option not supported
>
> > As I would expect. According to the table it's called "mntudp", and that
> > one is accepted.
>
> > So I'm confused as to where you did find the fstab option names you
> > mention.
>
> I found them in /usr/src/sbin/mount/mount.c. Apparently, I found the
> display code in there. A few of those *do* work as options, but not
> all. Not even some that I could swear worked in the past. (Them working
> in the past may have been on other OSs though).
>
> I'll rework this diff using the table of options I failed to find in
> mount_nfs.c before.
>
> This seems to indicate there are a number of mount_nfs options one can
> only use if you mount by hand using mount_nfs. Is that correct? Or am I
> still missing something?
>
> --Kurt
Any command line option can be passed using the dash syntax, as
described in mount(8), last part of -o section.
-Otto