Assemble: write raid-disks should be less fatal.
If the container metadata doesn't know how many device to expect (as is the case with IMSM), don't fail an --assemble which over-specifies the number of devices. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
289c74f8d7
commit
babb8dd427
|
@ -105,6 +105,7 @@ static int ident_matches(struct mddev_ident *ident,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (ident->raid_disks != UnSet &&
|
if (ident->raid_disks != UnSet &&
|
||||||
|
content->array.raid_disks != 0 && /* metadata doesn't know how many to expect */
|
||||||
ident->raid_disks!= content->array.raid_disks) {
|
ident->raid_disks!= content->array.raid_disks) {
|
||||||
if (devname)
|
if (devname)
|
||||||
pr_err("%s requires wrong number of drives.\n",
|
pr_err("%s requires wrong number of drives.\n",
|
||||||
|
|
Loading…
Reference in New Issue