]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Monitor: fix reporting for Fail vs FailSpare etc.
authorNeilBrown <neilb@suse.de>
Mon, 4 Jun 2012 02:57:52 +0000 (12:57 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 06:49:54 +0000 (16:49 +1000)
commit6f51b1ccacaec2fbc25b3830b126ab5f5d1bf9fb
treead26dc321069c78cfc37a8f76f98573d668d15d2
parent5f862fb9c3a80581eaa79efdbe9bc2ba0755b4f8
Monitor: fix reporting for Fail vs FailSpare etc.

The tests here were specific to 0.90 metadata and didn't
work properly for 1.x metadata, where a device's "number"
doesn't change.

By checking if this is a new array we can avoid some
corner cases.  Then we test mostly based on state and
not based on 'number' at all.

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