]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_copy: fix data corruption of target
authorJunxiao Bi <junxiao.bi@oracle.com>
Thu, 19 Jun 2014 02:11:48 +0000 (12:11 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 19 Jun 2014 02:11:48 +0000 (12:11 +1000)
commitc667d79c2149a5a678cbde7090766b1be155b033
tree3a66f0149e18544779206f863028a9db8f241635
parent3800a2a23d1a9af666421eac5fd4a4e3f5e042ec
xfs_copy: fix data corruption of target

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@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
copy/xfs_copy.c