imsm: Add information about failed disk to '-E' option

During metadata printout in '-E' option failed disk map field
information is missing.  Add this information to mdadm '-E' option
output.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2011-02-14 09:25:57 +11:00 committed by NeilBrown
parent e84f2c006e
commit 7095bccbb0
1 changed files with 6 additions and 0 deletions

View File

@ -897,6 +897,12 @@ static void print_imsm_dev(struct imsm_dev *dev, char *uuid, int disk_idx)
printf("]");
}
printf("\n");
printf(" Failed disk : ");
if (map->failed_disk_num == 0xff)
printf("none");
else
printf("%i", map->failed_disk_num);
printf("\n");
slot = get_imsm_disk_slot(map, disk_idx);
if (slot >= 0) {
ord = get_imsm_ord_tbl_ent(dev, slot, -1);