* [PATCH] imsm: show Subarray and Volume ID in --examine output
@ 2020-03-17 9:21 Artur Paszkiewicz
2020-03-17 21:12 ` Jes Sorensen
0 siblings, 1 reply; 2+ messages in thread
From: Artur Paszkiewicz @ 2020-03-17 9:21 UTC (permalink / raw)
To: jes; +Cc: linux-raid, Artur Paszkiewicz
Show the index of the subarray as 'Subarray' and the value of the
my_vol_raid_dev_num field as 'Volume ID'.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
---
super-intel.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/super-intel.c b/super-intel.c
index 533becb2..c6198dce 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -1579,6 +1579,7 @@ static void print_imsm_dev(struct intel_super *super,
printf("\n");
printf("[%.16s]:\n", dev->volume);
+ printf(" Subarray : %d\n", super->current_vol);
printf(" UUID : %s\n", uuid);
printf(" RAID Level : %d", get_imsm_raid_level(map));
if (map2)
@@ -1683,6 +1684,8 @@ static void print_imsm_dev(struct intel_super *super,
printf("Multiple PPLs on journaling drive\n");
else
printf("<unknown:%d>\n", dev->rwh_policy);
+
+ printf(" Volume ID : %u\n", dev->my_vol_raid_dev_num);
}
static void print_imsm_disk(struct imsm_disk *disk,
--
2.24.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] imsm: show Subarray and Volume ID in --examine output
2020-03-17 9:21 [PATCH] imsm: show Subarray and Volume ID in --examine output Artur Paszkiewicz
@ 2020-03-17 21:12 ` Jes Sorensen
0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2020-03-17 21:12 UTC (permalink / raw)
To: Artur Paszkiewicz; +Cc: linux-raid
On 3/17/20 5:21 AM, Artur Paszkiewicz wrote:
> Show the index of the subarray as 'Subarray' and the value of the
> my_vol_raid_dev_num field as 'Volume ID'.
>
> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
> ---
> super-intel.c | 3 +++
> 1 file changed, 3 insertions(+)
Applied!
Thanks,
Jes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-17 21:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-17 9:21 [PATCH] imsm: show Subarray and Volume ID in --examine output Artur Paszkiewicz
2020-03-17 21:12 ` Jes Sorensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).