]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdstat.c
Show DELAYED, PENDING status of resync process in "--detail"
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Thu, 23 Jun 2011 02:06:47 +0000 (12:06 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 23 Jun 2011 02:06:47 +0000 (12:06 +1000)
commit2d3603ba0cb497429d2841d2fb4a5e36879e808b
tree899bc6fc7ab59828207e804c72fbb39a55c3d7a7
parentc281a8041977cdd4bd7eaed4e1fbead50b5640e6
Show DELAYED, PENDING status of resync process in "--detail"

Initially there is no proper translation mdstat's DELAYED/PENDING processes
to "--detail" output.
For example, if we have recover=DELAYED in mdstat, "--detail"
shows "State: recovering" and "Rebuild Status = 0%".
It was incorrect in case of process waiting on checkpoint different
than 0%. In fact rebuild status is differnt than 0% and user is misled.

The patch fix the problem. Current "--detail" command shows
in the exampe: "State: recovering (DELAYED)" and no information
about precentage.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c
mdadm.h
mdstat.c