From: Eryu Guan <eguan@redhat.com>
To: Tahsin Erdogan <tahsin@google.com>
Cc: Theodore Ts'o <tytso@mit.edu>, Andreas Dilger <adilger@dilger.ca>,
fstests@vger.kernel.org
Subject: Re: [PATCH v2] ext4: add a test for ea_inode feature
Date: Wed, 26 Jul 2017 16:55:00 +0800 [thread overview]
Message-ID: <20170726085500.GX9167@eguan.usersys.redhat.com> (raw)
In-Reply-To: <CAAeU0aMAPWVv00bmU2wy89cF_zpxo9PFL+tjaacoHVtORXj1Tg@mail.gmail.com>
On Tue, Jul 25, 2017 at 11:20:38AM -0700, Tahsin Erdogan wrote:
> Eryu, thanks for the feedback!
Thanks for the new test! :)
>
> >> +# FS QA Test 026
> >> +#
> >> +# Test ea_inode feature.
> >
> > Better to have more information about ea_inode feature and what this
> > case tests here too.
>
> Done.
>
> >> +_scratch_mkfs_ext4 -O ea_inode -I 256 -b 4096 >/dev/null 2>&1
> >
> > Is 4k block size a hard requirement? If not, then we lose test coverage
> > for 1k/2k block size ext4, if so, some comments on it would be better.
> > (and the 256 inode size too).
>
> The actual block size is not that important for the purposes of this
> test. However, knowing the block size helps simplifying the test
> because we can hardcode xattr value sizes in the rest of the script.
> I've set block size to 4k in case ext4 default changes in the future.
In this case, what we generally do is filtering the output and make it
consistent across different block size ext4 filesystems, instead of
hardcoding the block size in test, so we have better test coverage.
But I modified the test a bit to remove the block size specification and
tried with 1k and 2k block size, test still passed. Seems there's no
problem running the test with non-4k block size ext4.
And as you said in v2 comments, 256 inode size is required to store some
xattr in inode body, I think we can check the actual inode size after
_scratch_mkfs and _notrun if it's smaller than 256. So we don't restrict
the test to a certain test config.
But again, I tried with 128B inode size and test passed too, even though
it didn't test what we want exactly in this case. But that doesn't
matter to me, adding some comments to explain the behavior when inode
size is 128 would be OK.
So I think a bare "_scratch_mkfs >/dev/null 2>&1" would be good for this
test, we just need more comments to clarify the behaviors.
Thanks,
Eryu
next prev parent reply other threads:[~2017-07-26 8:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-20 1:36 [PATCH] ext4: add a test for ea_inode feature Tahsin Erdogan
2017-07-25 8:19 ` Eryu Guan
2017-07-25 18:05 ` Tahsin Erdogan
2017-07-25 18:06 ` [PATCH v2] " Tahsin Erdogan
2017-07-25 18:20 ` Tahsin Erdogan
2017-07-26 8:55 ` Eryu Guan [this message]
2017-07-26 18:02 ` [PATCH v3] " Tahsin Erdogan
2017-07-26 18:03 ` Tahsin Erdogan
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=20170726085500.GX9167@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=adilger@dilger.ca \
--cc=fstests@vger.kernel.org \
--cc=tahsin@google.com \
--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