From 009444d2d7f56fc33260871b43339667c309cb04 Mon Sep 17 00:00:00 2001 From: Nigel Croxon Date: Wed, 23 Oct 2024 08:18:15 -0400 Subject: [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 --- Grow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3