From: NeilBrown <neilb@suse.de>
To: Adam Kwolek <adam.kwolek@intel.com>
Cc: linux-raid@vger.kernel.org, dan.j.williams@intel.com,
ed.ciechanowski@intel.com, wojciech.neubauer@intel.com
Subject: Re: [PATCH 3/5] FIX: Allow for takeover
Date: Wed, 9 Mar 2011 18:44:00 +1100 [thread overview]
Message-ID: <20110309184400.6f1fcd1d@notabene.brown> (raw)
In-Reply-To: <20110308132455.9578.23227.stgit@gklab-128-013.igk.intel.com>
On Tue, 08 Mar 2011 14:24:55 +0100 Adam Kwolek <adam.kwolek@intel.com> wrote:
> Takeover has to occur when md reports different raid level.
> Previously it bases on information from metadata.
> Now metadata reports 'working' level as array level.
> This makes us to check it using information from md.
>
> Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
> ---
>
> Grow.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Grow.c b/Grow.c
> index 88c8ad7..5c5a3a3 100644
> --- a/Grow.c
> +++ b/Grow.c
> @@ -1688,7 +1688,7 @@ static int reshape_array(char *container, int fd, char *devname,
> goto release;
> }
>
> - if (reshape.level != info->array.level) {
> + if (reshape.level != array.level) {
> char *c = map_num(pers, reshape.level);
> int err;
> if (c == NULL)
This patch is correct after all. However the description
at the top doesn't really to justice to the subtly of why it is needed.
I have fixed that in the version that I committed.
NeilBrown
> @@ -1708,7 +1708,7 @@ static int reshape_array(char *container, int fd, char *devname,
> if (!quiet)
> fprintf(stderr, Name ": level of %s changed to %s\n",
> devname, c);
> - orig_level = info->array.level;
> + orig_level = array.level;
> sysfs_freeze_array(info);
>
> if (reshape.level > 0 && st->ss->external) {
next prev parent reply other threads:[~2011-03-09 7:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 13:24 [PATCH 0/5] Make OLCE workeable Adam Kwolek
2011-03-08 13:24 ` [PATCH 1/5] fix: array is reassembled inactive if stopped during resync Adam Kwolek
2011-03-08 13:24 ` [PATCH 2/5] FIX: Set new raid disks when delta_disks is valid Adam Kwolek
2011-03-08 13:24 ` [PATCH 3/5] FIX: Allow for takeover Adam Kwolek
2011-03-09 7:44 ` NeilBrown [this message]
2011-03-08 13:25 ` [PATCH 4/5] FIX: Remove delta_parity concept Adam Kwolek
2011-03-08 13:25 ` [PATCH 5/5] FIX: Compute spares_needed basing on metadata info Adam Kwolek
2011-03-09 0:53 ` [PATCH 0/5] Make OLCE workeable NeilBrown
2011-03-09 7:45 ` Kwolek, Adam
2011-03-09 7:56 ` NeilBrown
2011-03-09 8:13 ` Kwolek, Adam
2011-03-09 8:35 ` Kwolek, Adam
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=20110309184400.6f1fcd1d@notabene.brown \
--to=neilb@suse.de \
--cc=adam.kwolek@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=wojciech.neubauer@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).