diff options
author | David Sterba <dsterba@suse.com> | 2019-11-25 15:34:48 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-01-20 16:40:49 +0100 |
commit | db26a024497c004fa1bdf26263d90de2bfb0edba (patch) | |
tree | 851b5bac199ca7a48046df39b6cafdd08592c353 /fs | |
parent | e4f6c6be814850249a745ea43d5c49800e7178d4 (diff) | |
download | linux-db26a024497c004fa1bdf26263d90de2bfb0edba.tar.bz2 |
btrfs: fill ncopies for all raid table entries
Make the number of copies explicit even for entries that use the default
0 value for consistency.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 687eacbef9d6..b1bcd245ec66 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -66,6 +66,7 @@ const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { .tolerated_failures = 2, .devs_increment = 3, .ncopies = 3, + .nparity = 0, .raid_name = "raid1c3", .bg_flag = BTRFS_BLOCK_GROUP_RAID1C3, .mindev_error = BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET, @@ -78,6 +79,7 @@ const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { .tolerated_failures = 3, .devs_increment = 4, .ncopies = 4, + .nparity = 0, .raid_name = "raid1c4", .bg_flag = BTRFS_BLOCK_GROUP_RAID1C4, .mindev_error = BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET, |