]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdstat.c
Monitor: fix inconsistencies in values for ->percent
authorNeilBrown <neilb@suse.de>
Mon, 4 Jun 2012 02:31:40 +0000 (12:31 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 06:49:54 +0000 (16:49 +1000)
commitfcf2195994b2ee8b0032e8493c64fc15cddfe9f7
treefc9ee070d31160b7614b0cb109f4bce357fdab79
parent42f0ca1e1a455d186a9d5ae6822d42e8def64524
Monitor: fix inconsistencies in values for ->percent

->percent sometimes stores negative values recording states
like 'pending' or 'delayed'.
The value '-2' means both 'delayed' and in Monitor, 'unknown'.
Also, '-1' has a meaning but not #define.

So change the #defines to be prefixed with "RESYNC_", instead
of "PROCESS_", add new "_NONE" and "_UNKNOWN", and use correct
value in each location.

Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c
Monitor.c
mdadm.h
mdstat.c