]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Allow --incremental to add spares to an array.
authorNeilBrown <neilb@suse.de>
Thu, 12 Aug 2010 01:41:41 +0000 (11:41 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 12 Aug 2010 01:41:41 +0000 (11:41 +1000)
commitef83fe7cba7355d3da330325e416747b0696baef
tree471c9eaf51ebc1968411e0d0238b5357a680968c
parent172356c93a787fe9cddfa5bbc6008b9ded6dd6f0
Allow --incremental to add spares to an array.

Commit 3a6ec29ad56 stopped us from adding apparently-working devices
to an active array with --incremental as there is a good chance that they
are actually old/failed devices.

Unfortunately it also stopped spares from being added to an active
array, which is wrong.  This patch refines the test to be more
careful.

Reported-by: <fibreraid@gmail.com>
Analysed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c