|
@@ -6425,10 +6425,10 @@ static int btrfs_check_chunk_valid(struct btrfs_fs_info *fs_info,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ((type & BTRFS_BLOCK_GROUP_RAID10 && sub_stripes != 2) ||
|
|
if ((type & BTRFS_BLOCK_GROUP_RAID10 && sub_stripes != 2) ||
|
|
|
- (type & BTRFS_BLOCK_GROUP_RAID1 && num_stripes < 1) ||
|
|
|
|
|
|
|
+ (type & BTRFS_BLOCK_GROUP_RAID1 && num_stripes != 2) ||
|
|
|
(type & BTRFS_BLOCK_GROUP_RAID5 && num_stripes < 2) ||
|
|
(type & BTRFS_BLOCK_GROUP_RAID5 && num_stripes < 2) ||
|
|
|
(type & BTRFS_BLOCK_GROUP_RAID6 && num_stripes < 3) ||
|
|
(type & BTRFS_BLOCK_GROUP_RAID6 && num_stripes < 3) ||
|
|
|
- (type & BTRFS_BLOCK_GROUP_DUP && num_stripes > 2) ||
|
|
|
|
|
|
|
+ (type & BTRFS_BLOCK_GROUP_DUP && num_stripes != 2) ||
|
|
|
((type & BTRFS_BLOCK_GROUP_PROFILE_MASK) == 0 &&
|
|
((type & BTRFS_BLOCK_GROUP_PROFILE_MASK) == 0 &&
|
|
|
num_stripes != 1)) {
|
|
num_stripes != 1)) {
|
|
|
btrfs_err(fs_info,
|
|
btrfs_err(fs_info,
|