diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2016-12-08 19:26:20 +0530 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:21:17 +0100 |
commit | 71ffdb50eccf409f3f50389ca6f2057db105e0f2 (patch) | |
tree | 1120413778dcd29154507f5b1058d47ae55c596d /cmds-check.c | |
parent | 8583b613095a46b000e5ee333d6bf58cad0c2248 (diff) |
btrfs-progs: convert: Fix migrate_super_block() to work with 64k sectorsize
migrate_super_block() uses sectorsize to refer to the size of the
superblock. Hence on 64k sectorsize filesystems, it ends up computing
checksum beyond the super block length (i.e.
BTRFS_SUPER_INFO_SIZE). This commit fixes the bug by using
BTRFS_SUPER_INFO_SIZE instead of sectorsize of the underlying
filesystem.
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-check.c')
0 files changed, 0 insertions, 0 deletions