diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2024-10-09 13:24:13 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mtkaczyk@kernel.org> | 2025-01-13 10:24:49 +0100 |
commit | 25267bcc1eb403b2d837069289990afdc097031f (patch) | |
tree | 12b3e592ebfb65a3180f7fed6a234178737988eb | |
parent | Remove --freeze-reshape logic (diff) | |
download | mdadm-25267bcc1eb403b2d837069289990afdc097031f.tar.xz mdadm-25267bcc1eb403b2d837069289990afdc097031f.zip |
Detail: Export reshape status
Display if there's an ongoing reshape happening in mdadm --detail
--export output.
This change is needed for incoming patches that will change "grow
continue" udev rules, to be based on actual array state.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
-rw-r--r-- | Detail.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -290,6 +290,9 @@ int Detail(char *dev, struct context *c) map_free(map); if (st && st->sb) { + if (info) + printf("MD_RESHAPE_ACTIVE=%s\n", + info->reshape_active ? "True" : "False"); if (st->ss->export_detail_super) st->ss->export_detail_super(st); } |