summaryrefslogtreecommitdiffstats
path: root/super1.c
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 22:01:16 +0100
commitb771faef931c798a4553db0a8c1366aff90079c6 (patch)
tree4e1cf1c34ed49ec4f14f7c5d615b4eea1dce016f /super1.c
parentRemove unused code (diff)
downloadmdadm-b771faef931c798a4553db0a8c1366aff90079c6.tar.xz
mdadm-b771faef931c798a4553db0a8c1366aff90079c6.zip
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 'super1.c')
-rw-r--r--super1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/super1.c b/super1.c
index b85dc20c..929466d6 100644
--- a/super1.c
+++ b/super1.c
@@ -833,7 +833,7 @@ err:
return 1;
}
-static void detail_super1(struct supertype *st, char *homehost)
+static void detail_super1(struct supertype *st, char *homehost, char *subarray)
{
struct mdp_superblock_1 *sb = st->sb;
bitmap_super_t *bms = (bitmap_super_t*)(((char*)sb) + MAX_SB_SIZE);
@@ -857,7 +857,7 @@ static void detail_super1(struct supertype *st, char *homehost)
(unsigned long long)__le64_to_cpu(sb->events));
}
-static void brief_detail_super1(struct supertype *st)
+static void brief_detail_super1(struct supertype *st, char *subarray)
{
struct mdp_superblock_1 *sb = st->sb;
int i;