From: Adam Kwolek Date: Wed, 9 Mar 2011 22:57:39 +0000 (+1100) Subject: FIX: Block reshaped array monitoring X-Git-Tag: mdadm-3.2.1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8063f0770e2a5d4a6dedc3bdc6ee114d1a7c4b7;p=thirdparty%2Fmdadm.git FIX: Block reshaped array monitoring When array under reshape is assembled it has to be disabled from monitoring as soon as possible. It can occur that this is i.e second array in container and mdmon is loaded already. Lack of blocking monitoring can cause change array state to active, and reshape continuation will be not possible. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- diff --git a/Assemble.c b/Assemble.c index 20c27eb7..fe917b27 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1519,6 +1519,9 @@ int assemble_container_content(struct supertype *st, int mdfd, if (sysfs_set_array(content, md_get_version(mdfd)) != 0) return 1; + if (content->reshape_active) + block_subarray(content); + if (sra) sysfs_free(sra);