For general migration, blocks per unit are required for all disks, not for per-member. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- super-intel.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/super-intel.c b/super-intel.c index 1a7be71..11972f3 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1690,6 +1690,8 @@ static __u64 blocks_per_migr_unit(struct imsm_dev *dev) migr_chunk = migr_strip_blocks_resync(dev); disks = imsm_num_data_members(dev, 0); blocks_per_unit = stripes_per_unit * migr_chunk * disks; + if (migr_type(dev) == MIGR_GEN_MIGR) + return blocks_per_unit; stripe = __le32_to_cpu(map->blocks_per_strip) * disks; segment = blocks_per_unit / stripe; block_rel = blocks_per_unit - segment * stripe; -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html