From: Ian Kent <raven@themaw.net>
To: Christian Brauner <brauner@kernel.org>
Cc: Karel Zak <kzak@redhat.com>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Steve French <smfrench@gmail.com>,
Tom Moyer <tom.moyer@canonical.com>,
Jeff Layton <jlayton@kernel.org>,
Roberto Bergantinos Corpas <rbergant@redhat.com>,
David Howells <dhowells@redhat.com>, Paulo Alcantara <pc@cjr.nz>,
Leif Sahlberg <lsahlber@redhat.com>,
Al Viro <viro@ZenIV.linux.org.uk>,
Andrew Morton <akpm@linux-foundation.org>,
Trond Myklebust <trond.myklebust@hammerspace.com>,
NeilBrown <neilb@suse.com>, Steve Dickson <steved@redhat.com>
Subject: Re: [RFC PATCH] Legacy mount option "sloppy" support
Date: Tue, 4 Apr 2023 09:52:27 +0800 [thread overview]
Message-ID: <a5581bc7-c522-33a1-4e11-31b71bafd8cc@themaw.net> (raw)
In-Reply-To: <20230403-disarm-awhile-621819599ecb@brauner>
On 3/4/23 21:08, Christian Brauner wrote:
> On Wed, Mar 29, 2023 at 09:03:51AM +0800, Ian Kent wrote:
>> On 29/3/23 02:48, Karel Zak wrote:
>>> On Fri, Mar 24, 2023 at 01:39:09PM +0800, Ian Kent wrote:
>>>> 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?
>>> The question is what we're talking about :-)
>>>
>>> For mount(8) and libmount, there is nothing like the "sloppy" mount option.
>>>
>>> If you use it in your fstab or as "mount -o sloppy" on the command line,
>>> then it's used as any other fs-specific mount option; the library copies
>>> the string to mount(2) or fsconfig(2) syscall. The library has no clue
>>> what the string means (it's the same as "mount -o foobar").
>> Which is what the problem really is.
>>
>>
>> If anyone uses this option with a file system that has previously
>>
>> allowed it then mounts fail if it isn't handled properly. Then the
>>
>> intended purpose of it is irrelevant because it causes a fail.
>>
>>
>> I guess the notion of ignoring it for fsconfig(), assuming it isn't
>>
>> actually needed for the option handling, might not be a viable idea
>>
>> ... although I haven't actually added that to fsconfig(), I probably
>>
>> should add that to this series.
>>
>>
>> But first the question of whether the option is actually needed anymore
>>
>> by those that allow it needs to be answered.
>>
>>
>> In case anyone has forgotten it was introduced because, at one time
>>
>> different OSes supported slightly different options for for the same
>>
>> thing and one could not include multiple options for the same thing
>>
>> in automount map entries without causing the mount to fail.
>>
>>
>> So we also need to answer, is this option conflict still present for
>>
>> any of the file systems that allow it, currently nfs, cifs and ntfs
>>
>> (I'll need to look up the ntfs maintainer but lets answer this for
>>
>> nfs and cifs first).
>>
>>
>> If it isn't actually needed ignoring it in fsconfig() (a deprecation
>>
>> warning would be in order) and eventually getting rid of it would be
>>
>> a good idea, yes?
> Yes, I think this is a good idea.
> The whole reason for this mount option seems a bit hacky tbh so getting
> rid of it would be great.
Thanks for thinking about this Christian.
It is something that has concerned me for a long time now.
I know the impression that people get is that it's hacky and it's
accurate to an extent but there was real need and value for it at
one point (although it was around before my time).
But now we get tripped up because trying to get rid of it causes
the problem of the option itself not working which tends to obscure
the actual use case of users.
I think the change to use the mount API is the best opportunity we've
had to clean this up in forever, particularly since the mount API
makes it particularly hard to continue to use it.
I'm still thinking about it and I'll post an updated patch and
accompanying discussion at some point. At the very least we need a
clear upstream position on it to allow those of us with customers
that think they need it to pass on the deprecation notice and reasoning.
It might end up we have to revisit it but at least if that's the case
we should have more detailed use cases that are current.
Ian
next prev parent reply other threads:[~2023-04-04 1:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2023-04-05 8:55 ` Christian Brauner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5581bc7-c522-33a1-4e11-31b71bafd8cc@themaw.net \
--to=raven@themaw.net \
--cc=akpm@linux-foundation.org \
--cc=brauner@kernel.org \
--cc=dhowells@redhat.com \
--cc=jlayton@kernel.org \
--cc=kzak@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=lsahlber@redhat.com \
--cc=neilb@suse.com \
--cc=pc@cjr.nz \
--cc=rbergant@redhat.com \
--cc=smfrench@gmail.com \
--cc=steved@redhat.com \
--cc=tom.moyer@canonical.com \
--cc=trond.myklebust@hammerspace.com \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).