From: Adam Kwolek Date: Thu, 6 Jan 2011 08:27:25 +0000 (+1100) Subject: Raid0: detect reshape on array start X-Git-Tag: mdadm-3.2~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4867e068;p=thirdparty%2Fmdadm.git Raid0: detect reshape on array start When raid0 array is takeovered to raid4 for reshape it should be possible to detect that array for reshape is monitored now for metadata update. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- diff --git a/monitor.c b/monitor.c index 4efe5da7..1107d477 100644 --- a/monitor.c +++ b/monitor.c @@ -235,6 +235,13 @@ static int read_and_act(struct active_array *a) } } + if (a->curr_state > inactive && + a->prev_state == inactive) { + /* array has been started + * possible that container operation has to be completed + */ + a->container->ss->set_array_state(a, 0); + } if (a->curr_state <= inactive && a->prev_state > inactive) { /* array has been stopped */