]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
FIX: Block reshaped array monitoring
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 9 Mar 2011 22:57:39 +0000 (09:57 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Mar 2011 22:57:39 +0000 (09:57 +1100)
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 <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c

index 20c27eb7e76b2d6e38ff09037035f3812838f117..fe917b27de2cdf928d9d0d820348b94268955101 100644 (file)
@@ -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);