[PATCH] xfsprogs: xfs_copy: fix data corruption of target

Junxiao Bi junxiao.bi at oracle.com
Wed May 28 20:46:17 CDT 2014


On 05/28/2014 01:32 PM, Christoph Hellwig wrote:
> On Wed, May 28, 2014 at 11:28:07AM +0800, Junxiao Bi wrote:
>> The unit of XFS_AGFL_DADDR(mp) is "basic block" whose size is "BBSIZE"
>> (512 bytes), so when "source_sectorsize" is not 512, it will cause the
>> target a corrupted filesystem.
>>
>> Signed-off-by: Junxiao Bi <junxiao.bi at oracle.com>
> Looks good.  Any chance you could create a testcase for this as well?
I will try. Thank you for review it.

Thanks,
Junxiao.
>
>
> Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the xfs mailing list