* The text-based mount interface doesn't support -s (--sloppy)
@ 2008-04-25 8:11 Steinar H. Gunderson
[not found] ` <20080425081114.GA5148-6Z/AllhyZU4@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Steinar H. Gunderson @ 2008-04-25 8:11 UTC (permalink / raw)
To: linux-nfs
Hi,
Another user-reported regression. -s used to work, but since 1.1.2 it does
not, probably due to the text-based interface somehow:
fugl:~> sudo mount.nfs 10.0.0.10:/store /store -s -o rw,asdfasdf
mount.nfs: an incorrect mount option was specified
/* Steinar */
--
Homepage: http://www.sesse.net/
^ permalink raw reply [flat|nested] 8+ messages in thread[parent not found: <20080425081114.GA5148-6Z/AllhyZU4@public.gmane.org>]
* Re: The text-based mount interface doesn't support -s (--sloppy) [not found] ` <20080425081114.GA5148-6Z/AllhyZU4@public.gmane.org> @ 2008-04-25 14:30 ` Chuck Lever 2008-04-25 14:35 ` Steinar H. Gunderson 0 siblings, 1 reply; 8+ messages in thread From: Chuck Lever @ 2008-04-25 14:30 UTC (permalink / raw) To: Steinar H. Gunderson; +Cc: linux-nfs On Apr 25, 2008, at 4:11 AM, Steinar H. Gunderson wrote: > Hi, > > Another user-reported regression. -s used to work, but since 1.1.2 > it does > not, probably due to the text-based interface somehow: > > fugl:~> sudo mount.nfs 10.0.0.10:/store /store -s -o rw,asdfasdf > mount.nfs: an incorrect mount option was specified It's not exactly clear what the "sloppy" option is supposed to allow. We are trying to figure out right now precisely how this should work. But before complaining too loudly about text-based mounts, please remember that there was no specification for the mount.nfs command and mount system call interface except for a 15 year old man page. We had to do something to move forward with IPv6 and RDMA transports; the legacy binary-only interface was simply inadequate. -- Chuck Lever chuck[dot]lever[at]oracle[dot]com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: The text-based mount interface doesn't support -s (--sloppy) 2008-04-25 14:30 ` Chuck Lever @ 2008-04-25 14:35 ` Steinar H. Gunderson [not found] ` <20080425143543.GA6292-6Z/AllhyZU4@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Steinar H. Gunderson @ 2008-04-25 14:35 UTC (permalink / raw) To: Chuck Lever; +Cc: linux-nfs On Fri, Apr 25, 2008 at 10:30:35AM -0400, Chuck Lever wrote: > It's not exactly clear what the "sloppy" option is supposed to allow. > We are trying to figure out right now precisely how this should work. Well, in general it seems to ignore any new options that come into it. The problem in question was -o grpid= that was coming in through autofs mounts and was not too easy to remove for the user. > But before complaining too loudly about text-based mounts, please > remember that there was no specification for the mount.nfs command and > mount system call interface except for a 15 year old man page. We had > to do something to move forward with IPv6 and RDMA transports; the > legacy binary-only interface was simply inadequate. Yes, I'm fully aware of that. (In particular, I'm waiting eagerly for IPv6; RDMA is a bit out of my range still. :-) ) People seem to depend on a lot of options behaving in a specific way, though. /* Steinar */ -- Homepage: http://www.sesse.net/ ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20080425143543.GA6292-6Z/AllhyZU4@public.gmane.org>]
* Re: The text-based mount interface doesn't support -s (--sloppy) [not found] ` <20080425143543.GA6292-6Z/AllhyZU4@public.gmane.org> @ 2008-04-25 14:50 ` Chuck Lever 2008-04-25 15:03 ` Jeff Layton 0 siblings, 1 reply; 8+ messages in thread From: Chuck Lever @ 2008-04-25 14:50 UTC (permalink / raw) To: Steinar H. Gunderson, Jeff Layton; +Cc: Linux NFS Mailing List On Apr 25, 2008, at 10:35 AM, Steinar H. Gunderson wrote: > On Fri, Apr 25, 2008 at 10:30:35AM -0400, Chuck Lever wrote: >> It's not exactly clear what the "sloppy" option is supposed to allow. >> We are trying to figure out right now precisely how this should work. > > Well, in general it seems to ignore any new options that come into > it. The > problem in question was -o grpid= that was coming in through autofs > mounts and was not too easy to remove for the user. The grpid mount option is what triggered our earlier discussion of -- sloppy as well. An expedient solution may be to tell the kernel mount option parser specifically to ignore these common automounter options, like grpid. Jeff, what do you think of that? >> But before complaining too loudly about text-based mounts, please >> remember that there was no specification for the mount.nfs command >> and >> mount system call interface except for a 15 year old man page. We >> had >> to do something to move forward with IPv6 and RDMA transports; the >> legacy binary-only interface was simply inadequate. > > Yes, I'm fully aware of that. (In particular, I'm waiting eagerly > for IPv6; > RDMA is a bit out of my range still. :-) ) People seem to depend on > a lot of > options behaving in a specific way, though. Understood. Having neither a specification, a unit test suite, nor any strong sense of history on the mailing list (ie not having a grip on most use cases) means we are shooting blind in this case. There will be some pain. -- Chuck Lever chuck[dot]lever[at]oracle[dot]com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: The text-based mount interface doesn't support -s (--sloppy) 2008-04-25 14:50 ` Chuck Lever @ 2008-04-25 15:03 ` Jeff Layton [not found] ` <20080425110319.479a0e80-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Jeff Layton @ 2008-04-25 15:03 UTC (permalink / raw) To: Chuck Lever; +Cc: Steinar H. Gunderson, Linux NFS Mailing List On Fri, 25 Apr 2008 10:50:09 -0400 Chuck Lever <chuck.lever@oracle.com> wrote: > On Apr 25, 2008, at 10:35 AM, Steinar H. Gunderson wrote: > > On Fri, Apr 25, 2008 at 10:30:35AM -0400, Chuck Lever wrote: > >> It's not exactly clear what the "sloppy" option is supposed to allow. > >> We are trying to figure out right now precisely how this should work. > > > > Well, in general it seems to ignore any new options that come into > > it. The > > problem in question was -o grpid= that was coming in through autofs > > mounts and was not too easy to remove for the user. > > The grpid mount option is what triggered our earlier discussion of -- > sloppy as well. > > An expedient solution may be to tell the kernel mount option parser > specifically to ignore these common automounter options, like grpid. > Jeff, what do you think of that? > That might reduce the pain for now... I tend to think the big problem is people sharing autofs maps between different OS's. It's hard to predict what options we might see that are valid on another OS. We really need to define what the sloppy flag means and how it behaves. It's a reasonably safe assumption that autofs will use it, so hooking that up is probably the best solution. Personally, I like the idea of just adding a "sloppy" mount option and making "-s" add it to the string. When someone adds that option, the kernel could just skip over options it doesn't recognize. When it's not present, then it would fail on any unrecognized options. This might mean that we need to have the kernel parser do more than one pass over the string though. Once to look for the sloppy option, and again to parse the others. This is not such a bad thing, IMO...there are some other options that can get clobbered depending on order. For instance, if retrans or timeo is parsed before "tcp" those options can get overwritten. We may end up needing a multi-pass parser anyway... -- Jeff Layton <jlayton@redhat.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20080425110319.479a0e80-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org>]
* Re: The text-based mount interface doesn't support -s (--sloppy) [not found] ` <20080425110319.479a0e80-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org> @ 2008-04-25 15:17 ` Chuck Lever 2008-04-25 15:42 ` Jeff Layton 0 siblings, 1 reply; 8+ messages in thread From: Chuck Lever @ 2008-04-25 15:17 UTC (permalink / raw) To: Jeff Layton; +Cc: Steinar H. Gunderson, Linux NFS Mailing List On Apr 25, 2008, at 11:03 AM, Jeff Layton wrote: > On Fri, 25 Apr 2008 10:50:09 -0400 > Chuck Lever <chuck.lever@oracle.com> wrote: > >> On Apr 25, 2008, at 10:35 AM, Steinar H. Gunderson wrote: >>> On Fri, Apr 25, 2008 at 10:30:35AM -0400, Chuck Lever wrote: >>>> It's not exactly clear what the "sloppy" option is supposed to >>>> allow. >>>> We are trying to figure out right now precisely how this should >>>> work. >>> >>> Well, in general it seems to ignore any new options that come into >>> it. The >>> problem in question was -o grpid= that was coming in through autofs >>> mounts and was not too easy to remove for the user. >> >> The grpid mount option is what triggered our earlier discussion of -- >> sloppy as well. >> >> An expedient solution may be to tell the kernel mount option parser >> specifically to ignore these common automounter options, like grpid. >> Jeff, what do you think of that? >> > > That might reduce the pain for now... > > I tend to think the big problem is people sharing autofs maps between > different OS's. It's hard to predict what options we might see that > are > valid on another OS. We really need to define what the sloppy flag > means and how it behaves. It's a reasonably safe assumption that > autofs > will use it, so hooking that up is probably the best solution. > > Personally, I like the idea of just adding a "sloppy" mount option and > making "-s" add it to the string. When someone adds that option, the > kernel could just skip over options it doesn't recognize. When it's > not > present, then it would fail on any unrecognized options. > > This might mean that we need to have the kernel parser do more than > one > pass over the string though. Once to look for the sloppy option, and > again to parse the others. This is not such a bad thing, IMO...there > are some other options that can get clobbered depending on order. The mount.nfs command can easily guarantee that the "sloppy" option comes first. It might be a nice added flexibility to allow the parser to switch from strict to sloppy mode in the middle of the option string. > For instance, if retrans or timeo is parsed before "tcp" those options > can get overwritten. We may end up needing a multi-pass parser > anyway... The parser can be made more careful about how those options are handled. -- Chuck Lever chuck[dot]lever[at]oracle[dot]com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: The text-based mount interface doesn't support -s (--sloppy) 2008-04-25 15:17 ` Chuck Lever @ 2008-04-25 15:42 ` Jeff Layton [not found] ` <20080425114240.7a9518c1-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Jeff Layton @ 2008-04-25 15:42 UTC (permalink / raw) To: Chuck Lever; +Cc: Steinar H. Gunderson, Linux NFS Mailing List On Fri, 25 Apr 2008 11:17:39 -0400 Chuck Lever <chuck.lever@oracle.com> wrote: > On Apr 25, 2008, at 11:03 AM, Jeff Layton wrote: > > On Fri, 25 Apr 2008 10:50:09 -0400 > > Chuck Lever <chuck.lever@oracle.com> wrote: > > > >> On Apr 25, 2008, at 10:35 AM, Steinar H. Gunderson wrote: > >>> On Fri, Apr 25, 2008 at 10:30:35AM -0400, Chuck Lever wrote: > >>>> It's not exactly clear what the "sloppy" option is supposed to > >>>> allow. > >>>> We are trying to figure out right now precisely how this should > >>>> work. > >>> > >>> Well, in general it seems to ignore any new options that come into > >>> it. The > >>> problem in question was -o grpid= that was coming in through autofs > >>> mounts and was not too easy to remove for the user. > >> > >> The grpid mount option is what triggered our earlier discussion of -- > >> sloppy as well. > >> > >> An expedient solution may be to tell the kernel mount option parser > >> specifically to ignore these common automounter options, like grpid. > >> Jeff, what do you think of that? > >> > > > > That might reduce the pain for now... > > > > I tend to think the big problem is people sharing autofs maps between > > different OS's. It's hard to predict what options we might see that > > are > > valid on another OS. We really need to define what the sloppy flag > > means and how it behaves. It's a reasonably safe assumption that > > autofs > > will use it, so hooking that up is probably the best solution. > > > > Personally, I like the idea of just adding a "sloppy" mount option and > > making "-s" add it to the string. When someone adds that option, the > > kernel could just skip over options it doesn't recognize. When it's > > not > > present, then it would fail on any unrecognized options. > > > > This might mean that we need to have the kernel parser do more than > > one > > pass over the string though. Once to look for the sloppy option, and > > again to parse the others. This is not such a bad thing, IMO...there > > are some other options that can get clobbered depending on order. > > The mount.nfs command can easily guarantee that the "sloppy" option > comes first. It might be a nice added flexibility to allow the parser > to switch from strict to sloppy mode in the middle of the option string. > That's fine with me, but we'll definitely need to document that. People usu assume that the order of mount options don't matter. > > For instance, if retrans or timeo is parsed before "tcp" those options > > can get overwritten. We may end up needing a multi-pass parser > > anyway... > > The parser can be made more careful about how those options are handled. > Yep. That's another option (and is probably easier to implement too). -- Jeff Layton <jlayton@redhat.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20080425114240.7a9518c1-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org>]
* Re: The text-based mount interface doesn't support -s (--sloppy) [not found] ` <20080425114240.7a9518c1-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org> @ 2008-04-25 18:07 ` Chuck Lever 0 siblings, 0 replies; 8+ messages in thread From: Chuck Lever @ 2008-04-25 18:07 UTC (permalink / raw) To: Jeff Layton; +Cc: Steinar H. Gunderson, Linux NFS Mailing List On Apr 25, 2008, at 11:42 AM, Jeff Layton wrote: > On Fri, 25 Apr 2008 11:17:39 -0400 > Chuck Lever <chuck.lever@oracle.com> wrote: >> On Apr 25, 2008, at 11:03 AM, Jeff Layton wrote: >>> On Fri, 25 Apr 2008 10:50:09 -0400 >>> Chuck Lever <chuck.lever@oracle.com> wrote: >>>> On Apr 25, 2008, at 10:35 AM, Steinar H. Gunderson wrote: >>>>> On Fri, Apr 25, 2008 at 10:30:35AM -0400, Chuck Lever wrote: >>>>>> It's not exactly clear what the "sloppy" option is supposed to >>>>>> allow. >>>>>> We are trying to figure out right now precisely how this should >>>>>> work. >>>>> >>>>> Well, in general it seems to ignore any new options that come into >>>>> it. The >>>>> problem in question was -o grpid= that was coming in through >>>>> autofs >>>>> mounts and was not too easy to remove for the user. >>>> >>>> The grpid mount option is what triggered our earlier discussion >>>> of -- >>>> sloppy as well. >>>> >>>> An expedient solution may be to tell the kernel mount option parser >>>> specifically to ignore these common automounter options, like >>>> grpid. >>>> Jeff, what do you think of that? >>>> >>> >>> That might reduce the pain for now... >>> >>> I tend to think the big problem is people sharing autofs maps >>> between >>> different OS's. It's hard to predict what options we might see that >>> are >>> valid on another OS. We really need to define what the sloppy flag >>> means and how it behaves. It's a reasonably safe assumption that >>> autofs >>> will use it, so hooking that up is probably the best solution. >>> >>> Personally, I like the idea of just adding a "sloppy" mount option >>> and >>> making "-s" add it to the string. When someone adds that option, the >>> kernel could just skip over options it doesn't recognize. When it's >>> not >>> present, then it would fail on any unrecognized options. >>> >>> This might mean that we need to have the kernel parser do more than >>> one >>> pass over the string though. Once to look for the sloppy option, and >>> again to parse the others. This is not such a bad thing, IMO...there >>> are some other options that can get clobbered depending on order. >> >> The mount.nfs command can easily guarantee that the "sloppy" option >> comes first. It might be a nice added flexibility to allow the >> parser >> to switch from strict to sloppy mode in the middle of the option >> string. >> > > That's fine with me, but we'll definitely need to document that. > People > usu assume that the order of mount options don't matter. > >>> For instance, if retrans or timeo is parsed before "tcp" those >>> options >>> can get overwritten. We may end up needing a multi-pass parser >>> anyway... >> >> The parser can be made more careful about how those options are >> handled. >> > > Yep. That's another option (and is probably easier to implement too). I have some patches now that address both these problems. I'll do some testing and post on Monday. -- Chuck Lever chuck[dot]lever[at]oracle[dot]com ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-04-25 18:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-25 8:11 The text-based mount interface doesn't support -s (--sloppy) Steinar H. Gunderson
[not found] ` <20080425081114.GA5148-6Z/AllhyZU4@public.gmane.org>
2008-04-25 14:30 ` Chuck Lever
2008-04-25 14:35 ` Steinar H. Gunderson
[not found] ` <20080425143543.GA6292-6Z/AllhyZU4@public.gmane.org>
2008-04-25 14:50 ` Chuck Lever
2008-04-25 15:03 ` Jeff Layton
[not found] ` <20080425110319.479a0e80-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2008-04-25 15:17 ` Chuck Lever
2008-04-25 15:42 ` Jeff Layton
[not found] ` <20080425114240.7a9518c1-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2008-04-25 18:07 ` Chuck Lever
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.