linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix: mdstat_read() incorrectly translates value of mdstat_ent->reshape for recovering
@ 2010-12-08 11:30 Hawrylewicz Czarnowski, Przemyslaw
  2010-12-08 21:43 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Hawrylewicz Czarnowski, Przemyslaw @ 2010-12-08 11:30 UTC (permalink / raw)
  To: Neil Brown
  Cc: linux-raid@vger.kernel.org, Williams, Dan J, Ciechanowski, Ed,
	Labun, Marcin, Czarnowska, Anna

it results in wrong output of mdadm --detail (shows reshaping instead
of recovering)

Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
---
 mdstat.c |    2 +-
 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;
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-08 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08 11:30 [PATCH] fix: mdstat_read() incorrectly translates value of mdstat_ent->reshape for recovering Hawrylewicz Czarnowski, Przemyslaw
2010-12-08 21:43 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).