From: Hawrylewicz Czarnowski, Przemyslaw Date: Wed, 8 Dec 2010 11:30:28 +0000 (+0000) Subject: fix: mdstat_read() incorrectly translates value of mdstat_ent->reshape for recovering X-Git-Tag: mdadm-3.2~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8d7dc71400fa7f7d70fed990defe012f49e835;p=thirdparty%2Fmdadm.git 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 Signed-off-by: NeilBrown --- diff --git a/mdstat.c b/mdstat.c index fdce5165..c5a07b5b 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;