FIX: start_reshape status should be checked

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>
This commit is contained in:
Adam Kwolek 2011-01-26 16:04:06 +01:00 committed by NeilBrown
parent a9c3e78fdd
commit fab32c9702
1 changed files with 6 additions and 1 deletions

7
Grow.c
View File

@ -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");