summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Croxon <ncroxon@redhat.com>2024-10-23 14:18:15 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-10-28 08:55:30 +0100
commit009444d2d7f56fc33260871b43339667c309cb04 (patch)
treea3951980aaeb8255aa4d05d1f4c4cf81153c99eb
parentmdadm/Grow: Check new_level interface rather than kernel version (diff)
downloadmdadm-009444d2d7f56fc33260871b43339667c309cb04.tar.xz
mdadm-009444d2d7f56fc33260871b43339667c309cb04.zip
[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 <ncroxon@redhat.com> Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
-rw-r--r--Grow.c3
1 files changed, 2 insertions, 1 deletions
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;
}