linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] imsm: FIX: add raid5 to raid0 case to analyse_change()
@ 2011-02-09 13:47 Adam Kwolek
  2011-02-09 13:47 ` [PATCH 2/4] imsm: Use single migration type for all migrations Adam Kwolek
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Adam Kwolek @ 2011-02-09 13:47 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dan.j.williams, ed.ciechanowski, wojciech.neubauer

Transition raid0 to raid5 is not possible
due to wrong condition in imsm_analyze_change().
Current condition blocks migration possibility instead allow for it.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
---

 super-intel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index 6a21b26..2875ade 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -6934,7 +6934,7 @@ enum imsm_reshape_type imsm_analyze_change(struct supertype *st,
 			}
 			break;
 		case 5:
-			if (geo->level != 0)
+			if (geo->level == 0)
 				change = CH_LEVEL_MIGRATION;
 			break;
 		case 10:


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

end of thread, other threads:[~2011-02-13 22:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09 13:47 [PATCH 1/4] imsm: FIX: add raid5 to raid0 case to analyse_change() Adam Kwolek
2011-02-09 13:47 ` [PATCH 2/4] imsm: Use single migration type for all migrations Adam Kwolek
2011-02-09 13:47 ` [PATCH 3/4] FIX: array after migration should be unfrozen Adam Kwolek
2011-02-09 13:48 ` [PATCH 4/4] imsm: Add information about failed disk to '-E' option Adam Kwolek
2011-02-13 22:26 ` [PATCH 1/4] imsm: FIX: add raid5 to raid0 case to analyse_change() NeilBrown

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).