From: Nigel Croxon Date: Wed, 23 Oct 2024 12:18:15 +0000 (-0400) Subject: [PATCH] mdadm: Grow.c distinguish takeover vs reshape on grow operation X-Git-Tag: mdadm-4.4~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=009444d2d7f56fc33260871b43339667c309cb04;p=thirdparty%2Fmdadm.git [PATCH] mdadm: Grow.c distinguish takeover vs reshape on grow operation Correcting the terminology on the output when doing a takeover vs a reshape. Signed-off-by: Nigel Croxon Signed-off-by: Heinz Mauelshagen --- diff --git a/Grow.c b/Grow.c index 9032c3e9..31786941 100644 --- a/Grow.c +++ b/Grow.c @@ -2036,7 +2036,8 @@ int Grow_reshape(char *devname, int fd, sysfs_free(sra); return 1; } else if (frozen < 0) { - pr_err("%s is performing resync/recovery and cannot be reshaped\n", devname); + pr_err("%s is performing resync/recovery and cannot be %s\n", devname, + (s->level != UnSet && s->level != array.level) ? "taken over" : "reshaped"); sysfs_free(sra); return 1; }