]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
FIX: start_reshape status should be checked
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 26 Jan 2011 15:04:06 +0000 (16:04 +0100)
committerNeilBrown <neilb@suse.de>
Fri, 28 Jan 2011 00:40:42 +0000 (10:40 +1000)
mdadm should verify if reshape is started before it goes
in to check-pointing machine.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 958febf40cb34b2eb34e040426a8f2e029fe032d..14a4f275512377d25ed3a597f3b5791e18556914 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1950,7 +1950,12 @@ started:
                }
        }
 
-       start_reshape(sra);
+       err = start_reshape(sra);
+       if (err) {
+               fprintf(stderr, Name ": Cannot start reshape for %s\n",
+                       devname);
+               goto release;
+       }
        if (restart)
                sysfs_set_str(sra, NULL, "array_state", "active");