diff options
author | Blazej Kucman <blazej.kucman@intel.com> | 2019-11-29 15:21:08 +0100 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2019-12-02 22:01:16 +0100 |
commit | b771faef931c798a4553db0a8c1366aff90079c6 (patch) | |
tree | 4e1cf1c34ed49ec4f14f7c5d615b4eea1dce016f /Detail.c | |
parent | Remove unused code (diff) | |
download | mdadm-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 'Detail.c')
-rw-r--r-- | Detail.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -623,7 +623,7 @@ This is pretty boring free_mdstat(ms); if (st && st->sb) - st->ss->detail_super(st, c->homehost); + st->ss->detail_super(st, c->homehost, subarray); if (array.raid_disks == 0 && sra && sra->array.major_version == -1 && @@ -767,7 +767,7 @@ skip_devices_state: if (spares && c->brief && array.raid_disks) printf(" spares=%d", spares); if (c->brief && st && st->sb) - st->ss->brief_detail_super(st); + st->ss->brief_detail_super(st, subarray); if (st) st->ss->free_super(st); |