]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
[PATCH] mdadm: Grow.c distinguish takeover vs reshape on grow operation
authorNigel Croxon <ncroxon@redhat.com>
Wed, 23 Oct 2024 12:18:15 +0000 (08:18 -0400)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 28 Oct 2024 07:55:30 +0000 (08:55 +0100)
Correcting the terminology on the output when doing a takeover
vs a reshape.

Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Grow.c

diff --git a/Grow.c b/Grow.c
index 9032c3e9c09f5070a6753a79c86b813e83ee9563..31786941ed8ade1ee8da52382efd861a25604a15 100644 (file)
--- 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;
        }