]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: FIX: Migration Raid0->Raid5 cannot be restarted correctly
authorAdam Kwolek <adam.kwolek@intel.com>
Tue, 14 Jun 2011 02:46:53 +0000 (12:46 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Jun 2011 02:46:53 +0000 (12:46 +1000)
When array raid0 is migrated to raid5, reshape cannot be continued
correctly due to wrong array parameters settings.
Raid disks number is set too big.

There is no need, during raid0->raid5 migration to increase
info->array.raid_disks, it is already set to final value using
designation map information.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 65d1f1bde3aa7434da2706975f954bb8bf59be62..7190f515d82ee4c8be0fd78c307948b8c44196c6 100644 (file)
@@ -2126,7 +2126,6 @@ static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info,
                                /* conversion is happening as RAID5 */
                                info->array.level = 5;
                                info->array.layout = ALGORITHM_PARITY_N;
-                               info->array.raid_disks += 1;
                                info->delta_disks -= 1;
                                break;
                        default: