]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Monitor: handle v.quick removal of devices better.
authorNeilBrown <neilb@suse.de>
Tue, 22 Mar 2011 03:47:55 +0000 (14:47 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 23 Mar 2011 00:09:48 +0000 (11:09 +1100)
commitce7a187b9a2c58783276c9da65088494f4f85124
treec6701a88fa2e7d12818f9346d4958baef0aca11a
parent7c19b781d511211fcee0d9482bbccc7217a5f7f9
Monitor: handle v.quick removal of devices better.

If a device fails and then is removed before Monitor sees
the failure, GET_DISK_INFO returns nothing so Monitor relies
on mdstat info where '_' is incorrectly interpreted as 'a spare'.

We should treat '_' as 'removed' - that is safer.

Without this, a v.quick fail+remove gets reported as 'Failed' then
'SpareActive'.

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