linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 0/4] Prepare mdadm for migrations (external meta)
Date: Mon, 14 Feb 2011 11:17:18 +1100	[thread overview]
Message-ID: <20110214111718.446fb4ac@notabene.brown> (raw)
In-Reply-To: <20110210134710.9276.91430.stgit@gklab-128-013.igk.intel.com>

On Thu, 10 Feb 2011 14:55:53 +0100 Adam Kwolek <adam.kwolek@intel.com> wrote:

> This few patches prepares mdadm for level and chunk size migration using external metadata.
> 1. FIX: delta_disk can have UnSet value
>   A while ago I've reported problem that delta_disks can have UnSet value, so adding it
>   to raid_disks can produce error in mdadm. Looking my first patch you proposed
>   to address this problem by changing reshape_super() interface rather than
>   set condition on function call. This patch implements your idea.
> 
> 2. FIX: Get spares from external metadata
>    imsm: FIX: Add spare disks information to array description
>   Those 2 patches addresses problem with not initializes spares counter in mdinfo
>   using external metadata.
> 
> 3. FIX: Add raid5 to raid0 case to analyse_change()
>   This patch adds missing of level transition in Grow.c

I've applied all of these though I changed the last one to:


--- a/Grow.c
+++ b/Grow.c
@@ -1056,6 +1056,7 @@ char *analyse_change(struct mdinfo *info, struct reshape *re)
 		info->array.layout = ALGORITHM_PARITY_N;
 	case 5:
 		switch (info->new_level) {
+		case 0:
 		case 4:
 			re->level = info->array.level;
 			re->before.data_disks = info->array.raid_disks - 1;


as I think that is all that is required.

Thanks,

NeilBrown


> 
> This series should be applied on devel-3.2 branch with my yesterday's 4 patches
> 
> BR
> Adam
> 
> ---
> 
> Adam Kwolek (4):
>       FIX: Add raid5 to raid0 case to analyse_change()
>       imsm: FIX: Add spare disks information to array description
>       FIX: Get spares from external metadata
>       FIX: delta_disk can have UnSet value
> 
> 
>  Grow.c        |   36 ++++++++++++++++++++++++++++++------
>  mdadm.h       |    3 ++-
>  super-intel.c |   14 +++++++++++++-
>  3 files changed, 45 insertions(+), 8 deletions(-)
> 


      parent reply	other threads:[~2011-02-14  0:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 13:55 [PATCH 0/4] Prepare mdadm for migrations (external meta) Adam Kwolek
2011-02-10 13:56 ` [PATCH 1/4] FIX: delta_disk can have UnSet value Adam Kwolek
2011-02-10 13:56 ` [PATCH 2/4] FIX: Get spares from external metadata Adam Kwolek
2011-02-10 13:56 ` [PATCH 3/4] imsm: FIX: Add spare disks information to array description Adam Kwolek
2011-02-10 13:56 ` [PATCH 4/4] FIX: Add raid5 to raid0 case to analyse_change() Adam Kwolek
2011-02-14  0:17 ` NeilBrown [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=20110214111718.446fb4ac@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).