From: Jan Kara <jack@suse.cz>
To: Zhang AiHua <zhangaihua1@huawei.com>
Cc: jack@suse.com, tytso@mit.edu, linux-ext4@vger.kernel.org
Subject: Re: Hi, how to test the patch?
Date: Wed, 3 Aug 2016 14:40:31 +0200 [thread overview]
Message-ID: <20160803124031.GC14025@quack2.suse.cz> (raw)
In-Reply-To: <579EC7B1.1090309@huawei.com>
Hi,
On Mon 01-08-16 11:53:21, Zhang AiHua wrote:
> "ext4: fix races between page faults and hole punching"
>
> can you tell me how to test the patch? Thank you very much.
Well, it is not really easy to test for (which is why I haven't written an
xfstest for that) :). You can prepare a some zeroed file, mmap it, and read
it through mmap while puching holes into the file and also randomly filling
holes back while writing zeroes. When there is some other activity in the
filesystem allocating blocks and writing to them some data, you may see
this data instead of zeros in the mmap if the bug triggers.
If you create a successful reproducer, please let me know and consider
contributing it to xfstests so that we can check the behavior.
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
prev parent reply other threads:[~2016-08-03 12:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 3:53 Hi, how to test the patch? Zhang AiHua
2016-08-03 12:40 ` Jan Kara [this message]
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=20160803124031.GC14025@quack2.suse.cz \
--to=jack@suse.cz \
--cc=jack@suse.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=zhangaihua1@huawei.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).