raid1: allow creation with a single base bdev
The minimun number of raid1 base bdevs is set to 1, so a raid1 bdev can be created with only one base bdev. Signed-off-by: Damiano Cipriani <damiano.cipriani@suse.com>
This commit is contained in:
parent
e325fbafec
commit
01e9afd39e
@ -317,7 +317,7 @@ raid1_get_io_channel(struct raid_bdev *raid_bdev)
|
|||||||
|
|
||||||
static struct raid_bdev_module g_raid1_module = {
|
static struct raid_bdev_module g_raid1_module = {
|
||||||
.level = RAID1,
|
.level = RAID1,
|
||||||
.base_bdevs_min = 2,
|
.base_bdevs_min = 1,
|
||||||
.base_bdevs_constraint = {CONSTRAINT_MIN_BASE_BDEVS_OPERATIONAL, 1},
|
.base_bdevs_constraint = {CONSTRAINT_MIN_BASE_BDEVS_OPERATIONAL, 1},
|
||||||
.memory_domains_supported = true,
|
.memory_domains_supported = true,
|
||||||
.start = raid1_start,
|
.start = raid1_start,
|
||||||
|
Loading…
Reference in New Issue
Block a user