(md: Online Capacity Expansion for IMSM) If max_disks limit is not set, md doesn't allow for reconfiguration and starting reshape. For external metadata this limit is not set. It is set for native meta during metadata reading. Limit max_disks is not used for external meta, so we can set it to value (MD_SB_DISKS) that will not block reshape. --- drivers/md/md.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index dfbba92..9cec771 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -5380,6 +5380,8 @@ static int update_raid_disks(mddev_t *mddev, int raid_disks) /* change the number of raid disks */ if (mddev->pers->check_reshape == NULL) return -EINVAL; + if (mddev->external) + mddev->max_disks = MD_SB_DISKS; if (raid_disks <= 0 || raid_disks >= mddev->max_disks) return -EINVAL; ��.n��������+%������w��{.n�����{����w��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f