From: Amir Goldstein <amir73il@gmail.com>
To: Chengguang Xu <cgxu519@mykernel.net>
Cc: Eryu Guan <eguan@linux.alibaba.com>, Eryu Guan <guan@eryu.me>,
miklos <miklos@szeredi.hu>, fstests <fstests@vger.kernel.org>,
linux-unionfs <linux-unionfs@vger.kernel.org>
Subject: Re: [PATCH v4] overlay: test for whiteout inode sharing
Date: Wed, 13 May 2020 06:37:52 +0300 [thread overview]
Message-ID: <CAOQ4uxhV4ubSLmwTh9dHg-FWXYHo8uMh8QVNXhmtN=ahBFRoHg@mail.gmail.com> (raw)
In-Reply-To: <1720c092a68.c8052b8d3001.6829163626760635444@mykernel.net>
On Wed, May 13, 2020 at 6:17 AM Chengguang Xu <cgxu519@mykernel.net> wrote:
>
> ---- 在 星期三, 2020-05-13 09:10:19 Eryu Guan <eguan@linux.alibaba.com> 撰写 ----
> > On Tue, May 12, 2020 at 07:56:35PM +0300, Amir Goldstein wrote:
> > > > > > I see no feature detection logic, so test just fails on old kernels
> > > > > > without this feature? I tried with v5.7-r4 kernel, test fails because
> > > > > > each whiteout file has only one hardlink.
> > > > >
> > > > > That's true.
> > > >
> > > > I'd like to see it _notrun on old kernels where the feature is not
> > > > available. But that seems hard to do.. Do you have any better ideas?
> > > >
> > >
> > > I've got a few.
> > > 1. LTP has the concept of require minimum kernel version.
> > > This would mean that functionality will be not be tested if feature
> > > is backported to old kernels.
> > > 2. We could add to overlayfs advertising of supported features, like
> > > /sys/fs/ext4/features/, but it already does "advertise" the configurable
> > > features at /sys/module/overlay/parameters/, and we were already
> > > asking the question during patch review:
> > > /* Is there a reason anyone would want not to share whiteouts? */
> > > ofs->share_whiteout = true;
> > > and we left the answer to "later" time.
> > >
> > > So a simple solution would be to add the module parameter (without adding
> > > a mount option), because:
> > > - It doesn't hurt (?)
> > > - Somebody may end up using it, for some reason we did not think of
> > > - We can use it in test to require the feature
> >
> > Yeah, I think that works. And I see that ext4 and btrfs both have a
> > /sys/fs/<fs>/features directory and list supported features there, is
> > this something overlay could do? Or is this basically the same thing as
> > what you proposed?
> >
>
> IMO, for those features which don't need to change module param, maybe feature list
> is more suitable.
>
I suppose it is more suitable, but since at the moment there is only one(?)
such feature and there is an open question whether it should or should not
be configurable, I myself would have taken the easy path, but Miklos
often has a different perspective on these sort of things...
Thanks,
Amir.
next prev parent reply other threads:[~2020-05-13 3:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 10:15 [PATCH v4] overlay/072: test for whiteout inode sharing Chengguang Xu
2020-05-06 10:19 ` Amir Goldstein
2020-05-10 15:50 ` [PATCH v4] overlay: " Eryu Guan
2020-05-11 1:32 ` Chengguang Xu
2020-05-12 16:25 ` Eryu Guan
2020-05-12 16:56 ` Amir Goldstein
2020-05-13 1:10 ` Eryu Guan
2020-05-13 3:17 ` Chengguang Xu
2020-05-13 3:37 ` Amir Goldstein [this message]
2020-05-13 9:35 ` Miklos Szeredi
2020-05-13 10:54 ` Amir Goldstein
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='CAOQ4uxhV4ubSLmwTh9dHg-FWXYHo8uMh8QVNXhmtN=ahBFRoHg@mail.gmail.com' \
--to=amir73il@gmail.com \
--cc=cgxu519@mykernel.net \
--cc=eguan@linux.alibaba.com \
--cc=fstests@vger.kernel.org \
--cc=guan@eryu.me \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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).