should mount -u fail or silently ignore options?
Jeremy Chadwick
freebsd at jdc.parodius.com
Mon Jan 23 22:47:16 UTC 2012
On Mon, Jan 23, 2012 at 02:37:12PM -0800, Doug Barton wrote:
> On 01/22/2012 16:53, Rick Macklem wrote:
> > However, my question is...
> > - Should the "mount -u" fail and return an error
> > OR
> > Silently ignore the "udp" option and return ok.
> >
> > I ask because the NFS clients currently silently
> > clear flags like NFSMNT_NFSV3 and NFSMNT_NOLOCKD
> > because they can't be changed and then nfs_mount()
> > returns 0, assuming any other options work.
>
> My preference would be that no command silently do something other than
> what was asked for. Otherwise the operator may be relying on certain
> behavior that was requested, but not fulfilled.
+1 Doug's recommendation. (I've been trying to write up an explanation
of my preference but was too verbose; Doug's fits what I was trying to
say perfectly)
--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, US |
| Making life hard for others since 1977. PGP 4BD6C0CB |
More information about the freebsd-fs
mailing list