On 2020/3/26 上午4:10, Goffredo Baroncelli wrote:
> From: Goffredo Baroncelli <kreijack@xxxxxxxxx>
>
> Signed-off-by: Goffredo Baroncelli <kreijack@xxxxxxxxx>
> ---
> volumes.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/volumes.c b/volumes.c
> index b46bf598..9e37f986 100644
> --- a/volumes.c
> +++ b/volumes.c
> @@ -65,6 +65,8 @@ const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = {
> .tolerated_failures = 2,
> .devs_increment = 3,
> .ncopies = 3,
> + .raid_name = "raid1c3",
> + .bg_flag = BTRFS_BLOCK_GROUP_RAID1C3,
Since you're here, mind to also add .mindev_error?
Thanks,
Qu
> },
> [BTRFS_RAID_RAID1C4] = {
> .sub_stripes = 1,
> @@ -74,6 +76,8 @@ const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = {
> .tolerated_failures = 3,
> .devs_increment = 4,
> .ncopies = 4,
> + .raid_name = "raid1c4",
> + .bg_flag = BTRFS_BLOCK_GROUP_RAID1C4,
> },
> [BTRFS_RAID_DUP] = {
> .sub_stripes = 1,
>