]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Manage.c
Manage: allow --re-add to failed array.
authorNeilBrown <neilb@suse.de>
Wed, 7 Mar 2012 04:25:57 +0000 (15:25 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 7 Mar 2012 04:25:57 +0000 (15:25 +1100)
commitc69ffac0d6a068823a1365c3b155ff72f8c4686f
treef875037176aa676b8140714d01e67272076451a0
parentb720636a5849397dbc6dc1b0f0b671d17034a28b
Manage: allow --re-add to failed array.

If both "legs" of a RAID1 (or equivalent in RAID10) fail, then one
of the becomes available again it maybe appropriate to re-add the
failed device(s).
So remove the restriction that an array must has 'enough' devices
before being re-added, and if there is no-where to read a superblock
from for matching, then assume the kernel will do necessary checks.

Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c