From: Theodore Ts'o <tytso@mit.edu>
To: Dave Chinner <david@fromorbit.com>
Cc: Eric Whitney <enwlinux@gmail.com>,
namjae.jeon@samsung.com, a.sangwan@samsung.com,
linux-ext4@vger.kernel.org, fstests@vger.kernel.org
Subject: Re: generic/064 test failures on ext4 (4.2-rc*)
Date: Mon, 27 Jul 2015 23:09:13 -0400 [thread overview]
Message-ID: <20150728030913.GC2851@thunk.org> (raw)
In-Reply-To: <20150727215129.GH3902@dastard>
On Tue, Jul 28, 2015 at 07:51:29AM +1000, Dave Chinner wrote:
> The block layout outside the insert range should not be modified at
> all, so if inserting 100 holes results in more data extents that the
> expected 100, then there's something wrong before we start inserting
> holes. e.g. maybe the source file had two extents rather than 1.
> Can you confirm that this is occurring?
Yes, that's what is going on. If delayed allocation is disabled (as
it is in some configuration scenarios), ext4's block allocator doesn't
do as well, and in some cases it will pick a starting block number for
the file that ends up splitting the initial file across block groups'
meta data blocks.
> Really, the number of extents or holes at the intermediate stage
> doesn't matter. What matters is that after collapsing the holes back
> out of the file, then number of extents is identical to the original
> file (i.e. that fcollapse() undoes finsert() exactly).
Yup.
> So changing this code to use _within_tolerance to say that 100 >=
> num_extents >= 105 is ok would probably be better:
>
> _within_tolerance "Extent count" $nextents 100 0 5%
>
> This will output a standard pass/fail message rather than an exact
> count. This allows some wiggle room for filesystem configurations
> that have unexpected non-contiguous baseline allocation behaviour to
> pass the test.
Works for me.
Thanks,
- Ted
next prev parent reply other threads:[~2015-07-28 3:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-27 19:10 generic/064 test failures on ext4 (4.2-rc*) Eric Whitney
2015-07-27 21:51 ` Dave Chinner
2015-07-28 3:09 ` Theodore Ts'o [this message]
2015-08-03 2:01 ` Namjae Jeon
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=20150728030913.GC2851@thunk.org \
--to=tytso@mit.edu \
--cc=a.sangwan@samsung.com \
--cc=david@fromorbit.com \
--cc=enwlinux@gmail.com \
--cc=fstests@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=namjae.jeon@samsung.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 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).