diff options
author | Hawrylewicz Czarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com> | 2010-12-08 11:30:28 +0000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-12-09 08:42:57 +1100 |
commit | aa8d7dc71400fa7f7d70fed990defe012f49e835 (patch) | |
tree | 3bdddcc5cffe766f3778ed727cb662033829a42a /mdstat.c | |
parent | 6f4cdfd92729ba1309fd7a82f31cee0441f243dd (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |