]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: FIX: add raid5 to raid0 case to analyse_change()
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 9 Feb 2011 13:47:37 +0000 (14:47 +0100)
committerNeilBrown <neilb@suse.de>
Sun, 13 Feb 2011 22:18:48 +0000 (09:18 +1100)
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>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 6a21b26b8b4640b957036e15a275775f89195f72..2875adea9a42c0aee968e1a7c032f8de6c2a2cd2 100644 (file)
@@ -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: