From: Neil Brown <neilb@suse.de>
To: "Hawrylewicz Czarnowski,
Przemyslaw" <przemyslaw.hawrylewicz.czarnowski@intel.com>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
"Williams, Dan J" <dan.j.williams@intel.com>,
"Ciechanowski, Ed" <ed.ciechanowski@intel.com>,
"Labun, Marcin" <Marcin.Labun@intel.com>,
"Czarnowska, Anna" <anna.czarnowska@intel.com>
Subject: Re: [PATCH] fix: mdstat_read() incorrectly translates value of mdstat_ent->reshape for recovering
Date: Thu, 9 Dec 2010 08:43:20 +1100 [thread overview]
Message-ID: <20101209084320.0ef8f506@notabene.brown> (raw)
In-Reply-To: <66C59AD0932712458090B447266D638C010C05314A@irsmsx504.ger.corp.intel.com>
On Wed, 8 Dec 2010 11:30:28 +0000 "Hawrylewicz Czarnowski, Przemyslaw"
<przemyslaw.hawrylewicz.czarnowski@intel.com> wrote:
> 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;
>
Thanks.
Applied.
NeilBrown
prev parent reply other threads:[~2010-12-08 21:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101209084320.0ef8f506@notabene.brown \
--to=neilb@suse.de \
--cc=Marcin.Labun@intel.com \
--cc=anna.czarnowska@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=przemyslaw.hawrylewicz.czarnowski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).