[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160803124031.GC14025@quack2.suse.cz>
Date: Wed, 3 Aug 2016 14:40:31 +0200
From: Jan Kara <jack@...e.cz>
To: Zhang AiHua <zhangaihua1@...wei.com>
Cc: jack@...e.com, tytso@....edu, linux-ext4@...r.kernel.org
Subject: Re: Hi, how to test the patch?
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@...e.com>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists