summaryrefslogtreecommitdiff
path: root/mdstat.c
diff options
context:
space:
mode:
authorHawrylewicz Czarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2010-12-08 11:30:28 +0000
committerNeilBrown <neilb@suse.de>2010-12-09 08:42:57 +1100
commitaa8d7dc71400fa7f7d70fed990defe012f49e835 (patch)
tree3bdddcc5cffe766f3778ed727cb662033829a42a /mdstat.c
parent6f4cdfd92729ba1309fd7a82f31cee0441f243dd (diff)
downloadmdadm-aa8d7dc71400fa7f7d70fed990defe012f49e835.tar.gz
fix: mdstat_read() incorrectly translates value of mdstat_ent->reshape for recovering
it results in wrong output of mdadm --detail (shows reshaping instead of recovering) Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdstat.c')
-rw-r--r--mdstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdstat.c b/mdstat.c
index fdce516..c5a07b5 100644
--- a/mdstat.c
+++ b/mdstat.c
@@ -253,7 +253,7 @@ struct mdstat_ent *mdstat_read(int hold, int start)
if (strncmp(w, "reshape", 7)==0)
ent->resync = 2;
if (strncmp(w, "recovery", 8)==0)
- ent->resync = 2;
+ ent->resync = 0;
if (strncmp(w, "check", 5)==0)
ent->resync = 3;