From: Adam Kwolek Date: Wed, 9 Feb 2011 13:47:37 +0000 (+0100) Subject: imsm: FIX: add raid5 to raid0 case to analyse_change() X-Git-Tag: mdadm-3.2.1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41bf155e122ef69b229538cf3e3a6c5969825104;p=thirdparty%2Fmdadm.git imsm: FIX: add raid5 to raid0 case to analyse_change() 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 Signed-off-by: NeilBrown --- diff --git a/super-intel.c b/super-intel.c index 6a21b26b..2875adea 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: