]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Detail: Export reshape status
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Wed, 9 Oct 2024 11:24:13 +0000 (11:24 +0000)
committerMariusz Tkaczyk <mtkaczyk@kernel.org>
Mon, 13 Jan 2025 09:24:49 +0000 (10:24 +0100)
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>
Detail.c

index 5819ced9a9fcf2750e90c97592fd6f54f8b1e476..b804a624574cffa08a9325d9bf8ba146f109b044 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -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);
                }