All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amir Goldstein <amir73il@gmail.com>
To: Christian Brauner <brauner@kernel.org>
Cc: "Miklos Szeredi" <mszeredi@redhat.com>,
	"Eryu Guan" <guan@eryu.me>, fstests <fstests@vger.kernel.org>,
	"Christoph Hellwig" <hch@lst.de>,
	"Aleksa Sarai" <cyphar@cyphar.com>,
	"Giuseppe Scrivano" <gscrivan@redhat.com>,
	"Rodrigo Campos Catelin" <rodrigo@sdfg.com.ar>,
	"Seth Forshee" <sforshee@digitalocean.com>,
	"Luca Bocassi" <luca.boccassi@microsoft.com>,
	"Lennart Poettering" <mzxreary@0pointer.de>,
	"Stéphane Graber" <stgraber@ubuntu.com>,
	"Eryu Guan" <guaneryu@gmail.com>
Subject: Re: [PATCH v3] common: allow to run all tests on idmapped mounts
Date: Fri, 1 Apr 2022 10:16:39 +0300	[thread overview]
Message-ID: <CAOQ4uxj5uPhXcKk09_ZC2UVq6p3z2Zt0PjTE4AxKg=tqMuQqww@mail.gmail.com> (raw)
In-Reply-To: <20220331114128.6j7lnp2h6f5ip4rf@wittgenstein>

On Thu, Mar 31, 2022 at 2:41 PM Christian Brauner <brauner@kernel.org> wrote:
>
> On Thu, Mar 31, 2022 at 02:35:55PM +0300, Amir Goldstein wrote:
> > On Thu, Mar 31, 2022 at 2:25 PM Christian Brauner <brauner@kernel.org> wrote:
> > >
> > > In addition to the generic and filesystem-specific idmapped mount
> > > testsuites that already exist upstream today add simple infrastructure
> > > so any test can be run on idmapped mounts simply by setting
> > > IDMAPPED_MOUNTS=true in the config file or section. The main user for
> > > now will be overlay to verify it works correctly on idmapped mounts.
> > >
> > > Note that the infrastructure is completely generic so every filesystem that
> > > supports idmapped mounts can simply run all of their tests idmapped. But
> > > note that not all ways to create a mount have been converted yet. That
> > > includes e.g. _dmthin_mount and direct calls to _mount in various tests.
> > >
> > > In addition, there will be corner-cases. For example, xfs doesn't allow
> > > bulkstat on idmapped mounts because it is a filesystem wide operation,
> > > i.e. you can retrieve information for any inode in the filesystem so the
> > > operation cannot be scoped reasonably under a single mount. So xfstests
> > > testing bulkstat will fail as it's blocked. Similar for some btrfs
> > > ioctl()s.
> > >
> > > While we could of course restrict this testmode to -overlay for which we
> > > know things work correctly we should not do this. It would mean that
> > > people won't start using it and so we won't see issues unless someone
> > > sits down and goes through more than 1000 tests and figures out for each
> > > individual one whether it needs to be skipped or not.
> > >
> > > So instead allow this mode but for all filesystems so people can start
> > > running and reporting failures and we can fix them up or block them as
> > > we detect them.
> > >
> > > Cc: Amir Goldstein <amir73il@gmail.com>
> > > Cc: Eryu Guan <guaneryu@gmail.com>
> > > Cc: Christoph Hellwig <hch@lst.de>
> > > Cc: <fstests@vger.kernel.org>
> > > Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
> > > ---
> > > /* v2 */
> > > unchanged
> > >
> > > /* v3 */
> > > - Amir Goldstein <amir73il@gmail.com>:
> > >   - Add more detailed explanation about the current state and
> > >     expectations of the newly added IDMAPPED_MOUNTS support.
> >
> > Please document the new envvar in README with a *short* disclaimer
> > about expectations with and without -overlay and please add an [idmapped]
> > section to the multi section config example in README.overlay.
> >
> > Sorry if I wasn't clear about what better documentation of expectations
> > the text in the commit message is important but is no replacement for
> > documentation.
>
> Will do. Since I'm upstreaming the patch separately I will hold off on
> resending because of this. Instead I'll start upstreaming this in
> parallel.
>

Excellent!

Thanks,
Amir.

  reply	other threads:[~2022-04-01  7:16 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 11:22 [PATCH v3 00/19] overlay: support idmapped layers Christian Brauner
2022-03-31 11:22 ` [PATCH v3 01/19] fs: add two trivial lookup helpers Christian Brauner
2022-03-31 11:23 ` [PATCH v3 02/19] exportfs: support idmapped mounts Christian Brauner
2022-03-31 11:23 ` [PATCH v3 03/19] ovl: use wrappers to all vfs_*xattr() calls Christian Brauner
2022-03-31 11:23 ` [PATCH v3 04/19] ovl: pass ofs to creation operations Christian Brauner
2022-03-31 11:23 ` [PATCH v3 05/19] ovl: add ovl_upper_idmap() wrapper Christian Brauner
2022-03-31 11:23 ` [PATCH v3 06/19] ovl: handle idmappings in creation operations Christian Brauner
2022-03-31 11:23 ` [PATCH v3 07/19] ovl: pass ofs to setattr operations Christian Brauner
2022-03-31 11:23 ` [PATCH v3 08/19] ovl: pass layer mnt to ovl_open_realfile() Christian Brauner
2022-03-31 11:23 ` [PATCH v3 09/19] ovl: use ovl_do_notify_change() wrapper Christian Brauner
2022-04-01 18:49   ` Vivek Goyal
2022-04-02 12:03     ` Christian Brauner
2022-04-06 16:47       ` Vivek Goyal
2022-04-07  9:29         ` Christian Brauner
2022-03-31 11:23 ` [PATCH v3 10/19] ovl: use ovl_lookup_upper() wrapper Christian Brauner
2022-03-31 11:23 ` [PATCH v3 11/19] ovl: use ovl_path_getxattr() wrapper Christian Brauner
2022-03-31 11:23 ` [PATCH v3 12/19] ovl: handle idmappings for layer fileattrs Christian Brauner
2022-03-31 11:23 ` [PATCH v3 13/19] ovl: handle idmappings for layer lookup Christian Brauner
2022-03-31 11:23 ` [PATCH v3 14/19] ovl: store lower path in ovl_inode Christian Brauner
2022-03-31 11:23 ` [PATCH v3 15/19] ovl: use ovl_copy_{real,upper}attr() wrappers Christian Brauner
2022-03-31 11:23 ` [PATCH v3 16/19] ovl: handle idmappings in ovl_permission() Christian Brauner
2022-03-31 11:23 ` [PATCH v3 17/19] ovl: handle idmappings in layer open helpers Christian Brauner
2022-04-01 20:11   ` Vivek Goyal
2022-03-31 11:23 ` [PATCH v3 18/19] ovl: handle idmappings in ovl_xattr_{g,s}et() Christian Brauner
2022-03-31 11:23 ` [PATCH v3 19/19] ovl: support idmapped layers Christian Brauner
2022-04-01 20:17   ` Vivek Goyal
2022-04-02  6:19     ` Christian Brauner
2022-03-31 11:23 ` [PATCH v3] common: allow to run all tests on idmapped mounts Christian Brauner
2022-03-31 11:35   ` Amir Goldstein
2022-03-31 11:41     ` Christian Brauner
2022-04-01  7:16       ` Amir Goldstein [this message]
2022-03-31 19:05 ` [PATCH v3 00/19] overlay: support idmapped layers Vivek Goyal
2022-04-01  6:54   ` 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='CAOQ4uxj5uPhXcKk09_ZC2UVq6p3z2Zt0PjTE4AxKg=tqMuQqww@mail.gmail.com' \
    --to=amir73il@gmail.com \
    --cc=brauner@kernel.org \
    --cc=cyphar@cyphar.com \
    --cc=fstests@vger.kernel.org \
    --cc=gscrivan@redhat.com \
    --cc=guan@eryu.me \
    --cc=guaneryu@gmail.com \
    --cc=hch@lst.de \
    --cc=luca.boccassi@microsoft.com \
    --cc=mszeredi@redhat.com \
    --cc=mzxreary@0pointer.de \
    --cc=rodrigo@sdfg.com.ar \
    --cc=sforshee@digitalocean.com \
    --cc=stgraber@ubuntu.com \
    /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 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.