From: Jes Sorensen <jes.sorensen@gmail.com>
To: Lidong Zhong <lzhong@suse.com>,
linux-raid@vger.kernel.org, neilb@suse.com
Cc: colyli@suse.com
Subject: Re: [Patch v5] super1: fix sb->max_dev when adding a new disk in linear array
Date: Fri, 26 May 2017 14:35:51 -0400 [thread overview]
Message-ID: <daa37d68-1fa2-1a6d-7a2d-915219d23cbe@gmail.com> (raw)
In-Reply-To: <20170525092811.3868-1-lzhong@suse.com>
On 05/25/2017 05:28 AM, Lidong Zhong wrote:
> The value of sb->max_dev will always be increased by 1 when adding
> a new disk in linear array. It causes an inconsistence between each
> disk in the array and the "Array State" value of "mdadm --examine DISK"
> is wrong. For example, when adding the first new disk into linear array
> it will be:
>
> Array State : RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> ('A' == active, '.' == missing, 'R' == replacing)
>
> Adding the second disk into linear array it will be
>
> Array State : .AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> ('A' == active, '.' == missing, 'R' == replacing)
>
> Signed-off-by: Lidong Zhong <lzhong@suse.com>
> ---
> super1.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Applied!
Thanks,
Jes
prev parent reply other threads:[~2017-05-26 18:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-25 9:28 [Patch v5] super1: fix sb->max_dev when adding a new disk in linear array Lidong Zhong
2017-05-25 21:51 ` NeilBrown
2017-05-26 18:35 ` Jes Sorensen [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=daa37d68-1fa2-1a6d-7a2d-915219d23cbe@gmail.com \
--to=jes.sorensen@gmail.com \
--cc=colyli@suse.com \
--cc=linux-raid@vger.kernel.org \
--cc=lzhong@suse.com \
--cc=neilb@suse.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).