]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Incremental: allow recently removed device to be added as a spare.
authorNeilBrown <neilb@suse.de>
Wed, 31 Oct 2012 06:02:42 +0000 (17:02 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 20 Nov 2012 01:08:16 +0000 (12:08 +1100)
commit75a410f6226d1e3ef441bbb8cd4f198d5de5cf5b
tree551d0622cf714e319d75d773afe627691810e11c
parentbde085f411acfc236fc06f074ffb7ccfe4f836b3
Incremental: allow recently removed device to be added as a spare.

Currently, action=force-spare isn't effective at all as I'm not
sure what is really sensible.
This patch allows a device that was part of an array, but has been
removed, to be added as a spare of passed to --incremental while
force-spare is active.

If it is can be re-added, that done first.  If it fails, we add it as
a spare.

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