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>
This commit is contained in:
Hawrylewicz Czarnowski, Przemyslaw 2010-12-08 11:30:28 +00:00 committed by NeilBrown
parent 6f4cdfd927
commit aa8d7dc714
1 changed files with 1 additions and 1 deletions

View File

@ -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;