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 <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2011-02-09 14:47:37 +01:00 committed by NeilBrown
parent 3600f9c168
commit 41bf155e12
1 changed files with 1 additions and 1 deletions

View 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: