Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Commit

Permalink
imsm: show Subarray and Volume ID in --examine output
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jes Sorensen <[email protected]>
  • Loading branch information
apaszkie authored and Jes Sorensen committed Mar 17, 2020
1 parent e48aed3 commit ba1b3bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions super-intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ba1b3bc

Please sign in to comment.