* Hi, how to test the patch?
@ 2016-08-01 3:53 Zhang AiHua
2016-08-03 12:40 ` Jan Kara
0 siblings, 1 reply; 2+ messages in thread
From: Zhang AiHua @ 2016-08-01 3:53 UTC (permalink / raw)
To: jack, tytso, linux-ext4
Hi,
"ext4: fix races between page faults and hole punching"
can you tell me how to test the patch? Thank you very much.
-Ai Hua
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Hi, how to test the patch?
2016-08-01 3:53 Hi, how to test the patch? Zhang AiHua
@ 2016-08-03 12:40 ` Jan Kara
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2016-08-03 12:40 UTC (permalink / raw)
To: Zhang AiHua; +Cc: jack, tytso, linux-ext4
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-03 12:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-01 3:53 Hi, how to test the patch? Zhang AiHua
2016-08-03 12:40 ` Jan Kara
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).