Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@xxxxxxxxx> --- Grow.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Grow.c b/Grow.c index c06561f..253f289 100644 --- a/Grow.c +++ b/Grow.c @@ -963,7 +963,7 @@ char *analyse_change(struct mdinfo *info, struct reshape *re) return "RAID10 can only be changed to RAID0"; new_disks = (info->array.raid_disks / (info->array.layout & 0xff)); - if (info->delta_disks != UnSet) { + if (info->delta_disks == UnSet) { info->delta_disks = (new_disks - info->array.raid_disks); } -- 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