Skip to content

Commit

Permalink
Detail: Export reshape status
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dancesWithMachines authored and mtkaczyk committed Jan 13, 2025
1 parent cbc1cd5 commit 25267bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Detail.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 25267bc

Please sign in to comment.