diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2016-06-23 03:31:27 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 13:52:25 +0200 |
commit | 6fb37b756acce6d6e045f79c3764206033f617b4 (patch) | |
tree | 0279142b07c97a236b5dc5eea48db7bc10c80179 /fs/btrfs/ctree.c | |
parent | btrfs: add missing bytes_readonly attribute file in sysfs (diff) | |
download | linux-6fb37b756acce6d6e045f79c3764206033f617b4.tar.xz linux-6fb37b756acce6d6e045f79c3764206033f617b4.zip |
Btrfs: check inconsistence between chunk and block group
With btrfs-corrupt-block, one can drop one chunk item and mounting
will end up with a panic in btrfs_full_stripe_len().
This doesn't not remove the BUG_ON, but instead checks it a bit
earlier when we find the block group item.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
0 files changed, 0 insertions, 0 deletions