diff options
author | Nigel Croxon <ncroxon@redhat.com> | 2024-10-23 14:18:15 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-10-28 08:55:30 +0100 |
commit | 009444d2d7f56fc33260871b43339667c309cb04 (patch) | |
tree | a3951980aaeb8255aa4d05d1f4c4cf81153c99eb | |
parent | mdadm/Grow: Check new_level interface rather than kernel version (diff) | |
download | mdadm-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |