(Online Capacity Expansion for IMSM) When reshape is finished mdmon has to finalize reshape in metadata. To do this set_array_state() should be called. This finishes migration and stores metadata on disks Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- monitor.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index b8fab5c..7085496 100644 --- a/monitor.c +++ b/monitor.c @@ -252,6 +252,12 @@ static int read_and_act(struct active_array *a) /* set zero to allow for future rebuilds */ a->reshape_delta_disks = 0; + + /* A reshape has finished. + * Some disks may be in sync now. + */ + a->container->ss->set_array_state(a, a->curr_state <= clean); + check_degraded = 1; } } ��.n��������+%������w��{.n�����{����w��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f