]> git.ipfire.org Git - thirdparty/mdadm.git/commit - util.c
Incremental - avoid including wayward devices.
authorNeilBrown <neilb@suse.de>
Sun, 28 Nov 2010 22:40:15 +0000 (09:40 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 28 Nov 2010 22:40:15 +0000 (09:40 +1100)
commitde6ae75015c1f277327a78bbf19bbf531659c134
treedacb6882bc82b2f9dbd5962405fc8bed1ab0b50f
parent1c7a808c4d696f6ba30c92941661a7f62eb3ff3a
Incremental - avoid including wayward devices.

If a devices - typically in a mirrored set - is assembled
independently of the other devices, and then attempted to be brought
back into the set, it could contain inconsistent data.  It should not
be included.

So detect this situation by ensuring that the 'most recent' device is
believed to be active by every other device.  If a device is wayward,
it will only consider fellow wayward devices to be active and will
think all others are failed or missing.

This patches fixes --incremental, --assemble was done in an earlier
patch.

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