summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorBlazej Kucman <blazej.kucman@intel.com>2019-11-29 15:21:08 +0100
committerJes Sorensen <jsorensen@fb.com>2019-12-02 16:01:16 -0500
commitb771faef931c798a4553db0a8c1366aff90079c6 (patch)
tree4e1cf1c34ed49ec4f14f7c5d615b4eea1dce016f /mdadm.h
parent4b31846f3f90aa24f883ceed80e91f204c0a9389 (diff)
downloadmdadm-b771faef931c798a4553db0a8c1366aff90079c6.tar.gz
imsm: return correct uuid for volume in detail
Fixes the side effect of the patch b6180160f ("imsm: save current_vol number") - wrong UUID is printed in detail for each volume. New parameter "subarray" is added to determine what info should be extracted from metadata (subarray or container). The parameter affects only IMSM metadata. Signed-off-by: Blazej Kucman <blazej.kucman@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdadm.h b/mdadm.h
index c88ceab..91f1338 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -847,8 +847,9 @@ extern struct superswitch {
/* Used to report details of an active array.
* ->load_super was possibly given a 'component' string.
*/
- void (*detail_super)(struct supertype *st, char *homehost);
- void (*brief_detail_super)(struct supertype *st);
+ void (*detail_super)(struct supertype *st, char *homehost,
+ char *subarray);
+ void (*brief_detail_super)(struct supertype *st, char *subarray);
void (*export_detail_super)(struct supertype *st);
/* Optional: platform hardware / firmware details */