* Re: [PATCH] generic/624: add fstests for idmapped mounts
[not found] <20210301151712.1994033-1-christian.brauner@ubuntu.com>
@ 2021-03-01 17:32 ` Christoph Hellwig
2021-03-02 1:43 ` Darrick J. Wong
2021-03-02 8:05 ` Christian Brauner
0 siblings, 2 replies; 4+ messages in thread
From: Christoph Hellwig @ 2021-03-01 17:32 UTC (permalink / raw)
To: Christian Brauner; +Cc: fstests, Christoph Hellwig
> +# Modify as appropriate.
> +_supported_fs ext4 xfs
I think this should be
_supported_fs generic
now that we do the probing for the actual support, and any file system
not supporting it will just do a _notrun from _require_idmapped_mounts.
Also the comment above this line should be dropped.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] generic/624: add fstests for idmapped mounts
2021-03-01 17:32 ` [PATCH] generic/624: add fstests for idmapped mounts Christoph Hellwig
@ 2021-03-02 1:43 ` Darrick J. Wong
2021-03-02 8:04 ` Christian Brauner
2021-03-02 8:05 ` Christian Brauner
1 sibling, 1 reply; 4+ messages in thread
From: Darrick J. Wong @ 2021-03-02 1:43 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Christian Brauner, fstests
On Mon, Mar 01, 2021 at 06:32:51PM +0100, Christoph Hellwig wrote:
> > +# Modify as appropriate.
> > +_supported_fs ext4 xfs
>
> I think this should be
>
> _supported_fs generic
>
> now that we do the probing for the actual support, and any file system
> not supporting it will just do a _notrun from _require_idmapped_mounts.
>
> Also the comment above this line should be dropped.
The rest of this series still hasn't shown up in my inbox...
...but I did wonder, have you all tested file creation with idmapped
mounts and quotas enabled? I noticed after the fact (sorry...) that
the dqalloc call just prior to creating the inode still uses
current_fs[ug]id() and not the fs[ug]id_into_mnt() call that the
conversion series uses.
(The fact that xfs access the ids once for quota and again when actually
creating the inode is screaming for a cleanup, by the way...)
--D
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] generic/624: add fstests for idmapped mounts
2021-03-02 1:43 ` Darrick J. Wong
@ 2021-03-02 8:04 ` Christian Brauner
0 siblings, 0 replies; 4+ messages in thread
From: Christian Brauner @ 2021-03-02 8:04 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, fstests
On Mon, Mar 01, 2021 at 05:43:33PM -0800, Darrick J. Wong wrote:
> On Mon, Mar 01, 2021 at 06:32:51PM +0100, Christoph Hellwig wrote:
> > > +# Modify as appropriate.
> > > +_supported_fs ext4 xfs
> >
> > I think this should be
> >
> > _supported_fs generic
> >
> > now that we do the probing for the actual support, and any file system
> > not supporting it will just do a _notrun from _require_idmapped_mounts.
> >
> > Also the comment above this line should be dropped.
>
> The rest of this series still hasn't shown up in my inbox...
This is probably vger being clogged again due to some gmail crap. I'll
paste the patch below in case it hasn't made it onto the list until you
show up but for fwiw the latest version can always found at:
[1]: https://github.com/brauner/xfstests/tree/idmapped_mounts
[2]: https://gitlab.com/brauner/xfstests/-/tree/idmapped_mounts
[3]: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/xfstests-dev.git/log/?h=idmapped_mounts
with the main test suite being located under
src/idmapped_mounts/idmapped_mounts.c
>
> ...but I did wonder, have you all tested file creation with idmapped
> mounts and quotas enabled? I noticed after the fact (sorry...) that
> the dqalloc call just prior to creating the inode still uses
> current_fs[ug]id() and not the fs[ug]id_into_mnt() call that the
> conversion series uses.
I think I commented on that on the original patch series where that
question was brought up and we concluded that not using the mapping was
the correct thing to do in this codepath.
I'll try to add tests for quotas now and get them back to you by my EOD
hopefully as part of the patch series.
>
> (The fact that xfs access the ids once for quota and again when actually
> creating the inode is screaming for a cleanup, by the way...)
Yeah. :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] generic/624: add fstests for idmapped mounts
2021-03-01 17:32 ` [PATCH] generic/624: add fstests for idmapped mounts Christoph Hellwig
2021-03-02 1:43 ` Darrick J. Wong
@ 2021-03-02 8:05 ` Christian Brauner
1 sibling, 0 replies; 4+ messages in thread
From: Christian Brauner @ 2021-03-02 8:05 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: fstests
On Mon, Mar 01, 2021 at 06:32:51PM +0100, Christoph Hellwig wrote:
> > +# Modify as appropriate.
> > +_supported_fs ext4 xfs
>
> I think this should be
>
> _supported_fs generic
>
> now that we do the probing for the actual support, and any file system
> not supporting it will just do a _notrun from _require_idmapped_mounts.
>
> Also the comment above this line should be dropped.
Will do.
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-03 0:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210301151712.1994033-1-christian.brauner@ubuntu.com>
2021-03-01 17:32 ` [PATCH] generic/624: add fstests for idmapped mounts Christoph Hellwig
2021-03-02 1:43 ` Darrick J. Wong
2021-03-02 8:04 ` Christian Brauner
2021-03-02 8:05 ` Christian Brauner
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.