]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
fix: mdstat_read() incorrectly translates value of mdstat_ent->reshape for recovering
authorHawrylewicz Czarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>
Wed, 8 Dec 2010 11:30:28 +0000 (11:30 +0000)
committerNeilBrown <neilb@suse.de>
Wed, 8 Dec 2010 21:42:57 +0000 (08:42 +1100)
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>
mdstat.c

index fdce51655f8643e90ec94ec37bbf4183753353c7..c5a07b5ba9d651f8dec74d9acdf4d2168528541a 100644 (file)
--- 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;