From: Eryu Guan <eguan@redhat.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH -v3] common: rework _require_ext4_mkfs_feature
Date: Thu, 16 Nov 2017 12:00:24 +0800 [thread overview]
Message-ID: <20171116040024.GW17339@eguan.usersys.redhat.com> (raw)
In-Reply-To: <20171115003037.wypomnpzxrmwmspd@thunk.org>
On Tue, Nov 14, 2017 at 07:30:37PM -0500, Theodore Ts'o wrote:
> On Tue, Nov 14, 2017 at 06:38:49PM -0500, Theodore Ts'o wrote:
> >
> > Sure. How about simply including _require_scratch into the function?
>
> Nope, that won't work, since we need _require_scratch_nocheck for one
> of the tests.
>
> OK, here's V3 of the patch. WDYT?
>
> - Ted
> commit b9d9da8b901acc5b6cb5da7149b7e8ce986e436e
> Author: Theodore Ts'o <tytso@mit.edu>
> Date: Sat Nov 11 23:28:51 2017 -0500
>
> common: rework _require_ext4_mkfs_feature
>
> In all of the places where we need check to see if mkfs.ext4 can
> support a set of file system features, we also should be checking to
> see if the kernel can support those file system features. So rename
> _require_ext4_mkfs_feature to _require_ext4_feature, and actually
> format the file system in $SCRATCH. To avoid running mkfs twice in
> most tests, we will teach the tests to assume that
> _require_ext4_feature actually leaves $SCRATCH formatted with a file
> system with those features.
I have to say I still don't like the idea of relying on a _require rule
to do the actual mkfs work, I'd rather run mkfs twice. That way we keep
consistent semantics and usages of all _require rules across fstests (we
already have several other rules do so, like _require_scratch_xfs_crc),
and give people least surprise when reading tests calling such rules.
And we can always create a small filesystem by default, say 512m, in
_require_scratch_ext4_feature to reduce the mkfs time and mitigate the
downside of mkfs twice.
>
> Also allow ext4/306 to run on systems where mke2fs doesn't support the
> "64bit" option.
This part looks good to me. Thanks!
Eryu
next prev parent reply other threads:[~2017-11-16 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-12 13:36 [PATCH] common: rework _require_ext4_mkfs_feature Theodore Ts'o
2017-11-14 11:43 ` Eryu Guan
2017-11-14 23:38 ` Theodore Ts'o
2017-11-15 0:30 ` [PATCH -v3] " Theodore Ts'o
2017-11-16 4:00 ` Eryu Guan [this message]
2017-11-15 0:56 ` [PATCH] " Dave Chinner
2017-11-15 2:57 ` Theodore Ts'o
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=20171116040024.GW17339@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=tytso@mit.edu \
/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