linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] Legacy mount option "sloppy" support
@ 2023-03-24  5:39 Ian Kent
  2023-03-24  5:39 ` [RFC PATCH] vfs: handle sloppy option in fs context monolithic parser Ian Kent
  2023-03-28 18:48 ` [RFC PATCH] Legacy mount option "sloppy" support Karel Zak
  0 siblings, 2 replies; 7+ messages in thread
From: Ian Kent @ 2023-03-24  5:39 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: Steve French, Tom Moyer, Jeff Layton, Roberto Bergantinos Corpas,
	David Howells, Paulo Alcantara, Karel Zak, Leif Sahlberg, Al Viro,
	Andrew Morton, Trond Myklebust, NeilBrown

There's been some recent discussion about support of the "sloppy"
mount option.

It's an option that people want to get rid of from time to time and
when we do we get complaints and end up having to re-instate it.

I think the (fairly) recent mount API changes are the best way to
eliminate the need for this option over time.

That's because this option doesn't quite make sense for fsconfig() and
the knowledge of how to handle invalid options for some file systems
needs be included in the user space logic when using the mount API.
At the very least there's no way to order the options since that's
determined by the order of fsconfig() calls.

Karel Zak is in the process of adding support for the mount API to
util-linux.

Karel do you find what I'm saying is accurate?
Do you think we will be able to get rid of the sloppy option over
time with the move to use the mount API?

Assuming I am correct, we need only implement handling of the sloppy
option in the monolithic option parser which is what the attached
patch does.

If it's decided we really do need to retain this option for fsconfig()
then we could remove LEGACY from the fs_flags bit field name and add
the handling to the parameter parsing code. In this case user space
code calling fsconfig() would still need to be mindful of option order.

At this stage I've not removed the sloppy option definition from
the file systems that allow it but with the file system type flag
that should be possible too, since this is more about handling the
parse return than an actual file system option.

I'm keen to hear what people think about how we should handle this
so any comments are welcome.
---

Ian Kent (1):
      vfs: handle sloppy option in fs context monolithic parser


 fs/cifs/fs_context.c |  2 +-
 fs/fs_context.c      | 31 ++++++++++++++++++++++++++++++-
 fs/nfs/fs_context.c  |  2 +-
 include/linux/fs.h   |  1 +
 4 files changed, 33 insertions(+), 3 deletions(-)

--
Ian


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-05  8:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-24  5:39 [RFC PATCH] Legacy mount option "sloppy" support Ian Kent
2023-03-24  5:39 ` [RFC PATCH] vfs: handle sloppy option in fs context monolithic parser Ian Kent
2023-03-28 18:48 ` [RFC PATCH] Legacy mount option "sloppy" support Karel Zak
2023-03-29  1:03   ` Ian Kent
2023-04-03 13:08     ` Christian Brauner
2023-04-04  1:52       ` Ian Kent
2023-04-05  8:55         ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).