mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 01:24:33 +00:00
btrfs: tree-checker: add missing stripe checks for raid1c3/4 profiles
The stripe checks for raid1c3/raid1c4 are missing in the sequence in btrfs_check_chunk_valid. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
0ac6e06b6c
commit
6c154ba41b
@ -877,6 +877,10 @@ int btrfs_check_chunk_valid(struct extent_buffer *leaf,
|
||||
sub_stripes != btrfs_raid_array[BTRFS_RAID_RAID10].sub_stripes) ||
|
||||
(type & BTRFS_BLOCK_GROUP_RAID1 &&
|
||||
num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1].devs_min) ||
|
||||
(type & BTRFS_BLOCK_GROUP_RAID1C3 &&
|
||||
num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C3].devs_min) ||
|
||||
(type & BTRFS_BLOCK_GROUP_RAID1C4 &&
|
||||
num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C4].devs_min) ||
|
||||
(type & BTRFS_BLOCK_GROUP_RAID5 &&
|
||||
num_stripes < btrfs_raid_array[BTRFS_RAID_RAID5].devs_min) ||
|
||||
(type & BTRFS_BLOCK_GROUP_RAID6 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user