2008-10-19 00:46:57

by Jan Engelhardt

[permalink] [raw]
Subject: mount.nfs should support arbitrary option order

Hi,


currently it seems that mount.nfs only accepts -o as the last portion:


# mount.nfs -o foo a:/ /
usage: mount.nfs remotetarget dir [-rvVwfnsih] [-o nfsoptions]
options:
-r Mount file system readonly
-v Verbose
-V Print version
-w Mount file system read-write
-f Fake mount, do not actually mount
-n Do not update /etc/mtab
-s Tolerate sloppy mount options rather than fail
-h Print this help
nfsoptions Refer to mount.nfs(8) or nfs(5)

# mount.nfs a:/ / -o foo
mount.nfs: an incorrect mount option was specified


It would be nice if options can be specified anywhere. Especially
hard POSIX puts options first.


2008-10-20 10:56:42

by Steve Dickson

[permalink] [raw]
Subject: Re: mount.nfs should support arbitrary option order

Bz https://bugzilla.linux-nfs.org/show_bug.cgi?id=170 has
been opened.. feel free to add yourself the cc list if you
would like to follow its progress.... (assuming there is any ;-) )

steved.


Jan Engelhardt wrote:
> Hi,
>
>
> currently it seems that mount.nfs only accepts -o as the last portion:
>
>
> # mount.nfs -o foo a:/ /
> usage: mount.nfs remotetarget dir [-rvVwfnsih] [-o nfsoptions]
> options:
> -r Mount file system readonly
> -v Verbose
> -V Print version
> -w Mount file system read-write
> -f Fake mount, do not actually mount
> -n Do not update /etc/mtab
> -s Tolerate sloppy mount options rather than fail
> -h Print this help
> nfsoptions Refer to mount.nfs(8) or nfs(5)
>
> # mount.nfs a:/ / -o foo
> mount.nfs: an incorrect mount option was specified
>
>
> It would be nice if options can be specified anywhere. Especially
> hard POSIX puts options first.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html