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