btrfs-progs: Read the whole superblock instead of struct btrfs_super_block
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 13 May 2015 09:15:34 +0000 (17:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Oct 2015 12:27:23 +0000 (14:27 +0200)
commitf409cad534dced3b391b1091d05e005f5fcd0e1f
treeaa7c03f3a90b34dc0d40981b3917bf64928fd2ad
parentf156ceb1b5e27e237d022083890f9d92f723a3b1
btrfs-progs: Read the whole superblock instead of struct btrfs_super_block

Before the patch, btrfs-progs will only read sizeof(struct
btrfs_super_block) and restore it into super_copy.

This makes checksum check for superblock impossible.  Change it to read
the whole superblock.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
disk-io.c