diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2016-06-22 18:31:27 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-16 22:16:06 +0100 |
commit | a155ec93222648115e6cdf64a1ca6a929c8a66f1 (patch) | |
tree | e97e72e4ff274609b7289be40cb1c8ba214da3ca /fs/btrfs/disk-io.c | |
parent | 41fbc649308c559cb35fec6a2692809ecd52bd62 (diff) |
Btrfs: check inconsistence between chunk and block group
commit 6fb37b756acce6d6e045f79c3764206033f617b4 upstream.
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>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions