]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.h
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>
Mon, 4 Jun 2012 02:31:40 +0000 (12:31 +1000)
commit9dad51d41853a1bf791dfe418b67fefac21c4670
tree02418b4e58745742430fa3f0c2fec9ce2e712a61
parentb0599bda13ede5b6022ad0c6fdd6641f07a008ed
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