xfs
[Top] [All Lists]

Re: [PATCH v2] xfstest: test corruption with multi extent in PAGE.

To: Alain Renaud <arenaud@xxxxxxx>
Subject: Re: [PATCH v2] xfstest: test corruption with multi extent in PAGE.
From: Mark Tinguely <tinguely@xxxxxxx>
Date: Fri, 13 Jul 2012 13:23:28 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <4FFFF528.8060909@xxxxxxx>
References: <20120601185815.883227033@xxxxxxx> <20120601185935.708235862@xxxxxxx> <20120605091352.GL4347@dastard> <4FCDFA16.9050808@xxxxxxx> <4FFFF528.8060909@xxxxxxx>
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120122 Thunderbird/9.0
On 07/13/12 05:15, Alain Renaud wrote:
Since I got no feedback on the updated version let me send it again.

xfstest: test corruption with multi extent in PAGE.

Test using extsize/resvspace to create a file with multiple extent in
one PAGE.
This show an error in the block conversion from unwritten to real.
As a result we tag raw disk block as valid(3-4)
and valid data as unwritten(5-6)

On an x86_64 machine the page should look like this.

buffer content
0 empty b_state = 0
1 DATA b_state = 0x1023
2 DATA b_state = 0x1023
3 empty b_state = 0
4 empty b_state = 0
5 DATA b_state = 0x1023
6 DATA b_state = 0x1023
7 empty b_state = 0

Signed-off-by: Alain Renaud <arenaud@xxxxxxx>

Tested with and without commit 7d0fa3ecba2f12ceef93fffe615e5dd9b50bb794
Looks good.

Reviewed-by: Mark Tinguely <tinguely@xxxxxxx>

<Prev in Thread] Current Thread [Next in Thread>