summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-07-02 10:31:31 +1000
committerNeilBrown <neilb@suse.de>2013-07-02 10:33:35 +1000
commitbabb8dd4274c80b08af3f583a136a9f12e9b5f69 (patch)
tree951945a00826040c061e506bd794ecf5e6dabc74 /Assemble.c
parent289c74f8d7912f8b7e0d98f152c3f5a9a70514f7 (diff)
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>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index cf7e4447..a0041c6f 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -105,6 +105,7 @@ static int ident_matches(struct mddev_ident *ident,
return 0;
}
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) {
if (devname)
pr_err("%s requires wrong number of drives.\n",