From: Neil Brown Date: Mon, 20 Mar 2006 03:26:42 +0000 (+0000) Subject: Fix a few issues with the reshape patches. X-Git-Tag: mdadm-2.4-pre1~2 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=206c5eaedfa3d8d9d645874bb0f5be808ff06843 Fix a few issues with the reshape patches. Signed-off-by: Neil Brown --- diff --git a/Grow.c b/Grow.c index 6d09dc68..736afa57 100644 --- a/Grow.c +++ b/Grow.c @@ -737,9 +737,12 @@ int Grow_reshape(char *devname, int fd, int quiet, for (i=odisks; i= nstripe) break; sleep(1); @@ -774,7 +779,7 @@ int Grow_reshape(char *devname, int fd, int quiet, free(fdlist); free(offsets); - printf("mdadm: ... critical section passed.\n"); + printf(Name ": ... critical section passed.\n"); break; } return 0; @@ -824,7 +829,7 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt * backup_super_block. * If either fail, go on to next device. * If the backup contains no new info, just return - * Else retore data and update all superblocks + * else restore data and update all superblocks */ if (fdlist[i] < 0) continue; @@ -881,7 +886,7 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt fdlist[i], __le64_to_cpu(bsb.devstart)*512, 0, __le64_to_cpu(bsb.length)*512)) { /* didn't succeed, so giveup */ - return 0; + return -1; } /* Ok, so the data is restored. Let's update those superblocks. */