[Ocfs2-devel] [PATCH] Treat writes as new when holes span across page boundaries
Goldwyn Rodrigues
rgoldwyn at gmail.com
Mon Feb 28 18:11:24 PST 2011
On Mon, Feb 28, 2011 at 1:40 PM, Joel Becker <jlbec at evilplan.org> wrote:
> On Mon, Feb 28, 2011 at 01:07:21PM -0600, Goldwyn Rodrigues wrote:
>> On Mon, Feb 28, 2011 at 12:03 PM, Joel Becker <jlbec at evilplan.org> wrote:
>> > On Wed, Feb 23, 2011 at 04:31:25PM -0600, Goldwyn Rodrigues wrote:
>> >> Here is a simple script. I will incorporate later into tailtest later.
>> >>
>>
>> Yes, that will work as well, as long as you can differentiate between
>> the random characters from urandom and the (unexpected) non-zero
>> characters in the (userspace) holes. You can read the data from
>> [12229-12299] in the file you have created and check for zeros.
>
> You're right about the urandom being bad for this. Maybe it
> should be zeros. But still.
>
I used /usr/bin/yes instead. The patch is on the ocfs2-test-devel ML.
--
Goldwyn
More information about the Ocfs2-devel
mailing list