]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix activate spare to ignore foreign disks
authorDan Williams <dan.j.williams@intel.com>
Tue, 24 Feb 2009 06:06:24 +0000 (23:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Feb 2009 06:06:24 +0000 (23:06 -0700)
commitdf4746577e79650f8549555a1bdd083ffb8415b6
tree38ab9a5bedd51daaaca6c1343fd50f9be9e483ea
parent7a70e8aa8d47376ca37a1fe2c38f1db5c14aa36d
imsm: fix activate spare to ignore foreign disks

A foreign disk is one that all other drives believe is not-in-sync but
does not have the 'failed' status bit set.

This also reverts, because that commit is addressing the wrong problem.
Ideally mdmon would kick "non-fresh" drives like the kernel does at
native-md activation time, but that is too awkward to implement at the
moment because mdadm owns container manipulations.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c