Re: [PATCH 0/4] Add the ability to query mount options in statmount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Jun 2024 at 14:23, Miklos Szeredi <miklos@xxxxxxxxxx> wrote:
>
> On Tue, 25 Jun 2024 at 16:18, Josef Bacik <josef@xxxxxxxxxxxxxx> wrote:
>
> > But that means getting the buffer, and going back through it and replacing every
> > ',' with a '\0', because I'm sure as hell not going and changing all of our
> > ->show_options() callbacks to not put in a ','.
> >
> > Is this the direction we want to go?
>
> IMO yes.  Having a clean interface is much more important than doing
> slightly less processing on the kernel side (which would likely be
> done anyway on the user side).

So I went for an extended leave, and this interface was merged in the
meantime with much to be desired.

The options are presented just the same as in /proc/self/mountinfo
(just the standard options left out).  And that has all the same
problems:

 - options can't contain commas (this causes much headache for
overlayfs which has filenames in its options)

 - to allow the result to be consumed by fsconfig() for example
options need to be unescaped

 - mnt_opts is confusing, since these are *not* mount options, these
are super block options.

This patchset was apparently hurried through without much thought and
review, and what review I did provide was ignored.  So I'm
frustrated, but not sure what if anything can be done at this point,
since the interface went live in the last release and changing it
would probably break things...

Thanks,
Miklos




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux