Blame SOURCES/0069-imsm-show-Subarray-and-Volume-ID-in-examine-output.patch

d805ba
From ba1b3bc80ea555c288f1119e69d9273249967081 Mon Sep 17 00:00:00 2001
d805ba
From: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
d805ba
Date: Tue, 17 Mar 2020 10:21:03 +0100
d805ba
Subject: [RHEL7.9 PATCH 69/77] imsm: show Subarray and Volume ID in --examine
d805ba
 output
d805ba
d805ba
Show the index of the subarray as 'Subarray' and the value of the
d805ba
my_vol_raid_dev_num field as 'Volume ID'.
d805ba
d805ba
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
d805ba
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
d805ba
---
d805ba
 super-intel.c | 3 +++
d805ba
 1 file changed, 3 insertions(+)
d805ba
d805ba
diff --git a/super-intel.c b/super-intel.c
d805ba
index 8840fff..562a58c 100644
d805ba
--- a/super-intel.c
d805ba
+++ b/super-intel.c
d805ba
@@ -1579,6 +1579,7 @@ static void print_imsm_dev(struct intel_super *super,
d805ba
 
d805ba
 	printf("\n");
d805ba
 	printf("[%.16s]:\n", dev->volume);
d805ba
+	printf("       Subarray : %d\n", super->current_vol);
d805ba
 	printf("           UUID : %s\n", uuid);
d805ba
 	printf("     RAID Level : %d", get_imsm_raid_level(map));
d805ba
 	if (map2)
d805ba
@@ -1683,6 +1684,8 @@ static void print_imsm_dev(struct intel_super *super,
d805ba
 		printf("Multiple PPLs on journaling drive\n");
d805ba
 	else
d805ba
 		printf("<unknown:%d>\n", dev->rwh_policy);
d805ba
+
d805ba
+	printf("      Volume ID : %u\n", dev->my_vol_raid_dev_num);
d805ba
 }
d805ba
 
d805ba
 static void print_imsm_disk(struct imsm_disk *disk,
d805ba
-- 
d805ba
2.7.5
d805ba