From: NeilBrown Date: Thu, 3 May 2012 06:18:22 +0000 (+1000) Subject: Grow: failing the set the per-device size is not an error. X-Git-Tag: mdadm-3.2.4~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0a658ffbcd2104594e8a7a185fa0fe05127723e;p=thirdparty%2Fmdadm.git Grow: failing the set the per-device size is not an error. Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index 0b0d7182..330e7195 100644 --- a/Grow.c +++ b/Grow.c @@ -1668,7 +1668,9 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, rv = 0; for (mdi = sra->devs; mdi; mdi = mdi->next) { if (sysfs_set_num(sra, mdi, "size", size) < 0) { - rv = 1; + /* Probably kernel refusing to let us + * reduce the size - not an error. + */ break; } if (array.not_persistent == 0 &&