From: Eryu Guan <eguan@redhat.com>
To: Roman Pen <roman.penyaev@profitbricks.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>,
linux-ext4@vger.kernel.org, fstests@vger.kernel.org
Subject: Re: [PATCH v3 1/1] xfstests: generic/403: reproduce ext4 bugs in a shift extents logic
Date: Thu, 12 Jan 2017 12:08:20 +0800 [thread overview]
Message-ID: <20170112040820.GV1859@eguan.usersys.redhat.com> (raw)
In-Reply-To: <20170111095239.18825-1-roman.penyaev@profitbricks.com>
On Wed, Jan 11, 2017 at 10:52:39AM +0100, Roman Pen wrote:
> Regression test which targets two nasty ext4 bugs in a logic which
> shifts extents:
>
> 1) 14d981f468a1 ("ext4: Include forgotten start block on fallocate insert range")
>
> Test tries to insert many blocks at the same offset to reproduce
> the following layout on ext4:
>
> block #0 block #1
> |ext0 ext1|ext2 ext3 ...|
> ^
> insert of a new block
>
> Because of an incorrect range first block is never reached,
> thus ext1 is untouched, resulting to a hole at a wrong offset:
>
> What we got:
>
> block #0 block #1
> |ext0 ext1| ext2 ext3 ...|
> ^
> hole at a wrong offset
>
> What we expect:
>
> block #0 block #1
> |ext0 ext1|ext2 ext3 ...|
> ^
> hole at a correct offset
>
> 2) 2b3864b32403 ("ext4: do not polute the extents cache while shifting extents")
>
> Extents status tree is filled in with outdated offsets while doing
> extent shift, that leads to wrong data blocks. That's why md5sum
> of a result file is being checked after each block insert.
Thanks a lot! I did a minor update and queued it up.
>
> Signed-off-by: Roman Pen <roman.penyaev@profitbricks.com>
> Cc: "Theodore Ts'o <tytso@mit.edu>"
> Cc: Eryu Guan <eguan@redhat.com>
> Cc: linux-ext4@vger.kernel.org
> Cc: fstests@vger.kernel.org
> ---
> +# Modify as appropriate.
> +_supported_fs generic
> +_supported_os Linux
> +_require_test
> +_require_xfs_io_command "finsert"
> +
> +blksize=`get_block_size $TEST_DIR`
I merged a patch earlier from Darrick to rename get_block_size to
_get_block_size. So I did the rename here too.
Thanks,
Eryu
next prev parent reply other threads:[~2017-01-12 4:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-11 9:52 [PATCH v3 1/1] xfstests: generic/403: reproduce ext4 bugs in a shift extents logic Roman Pen
2017-01-12 4:08 ` Eryu Guan [this message]
2017-01-12 8:02 ` Roman Penyaev
2017-01-12 19:18 ` Darrick J. Wong
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=20170112040820.GV1859@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=roman.penyaev@profitbricks.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;
as well as URLs for NNTP newsgroup(s).