From 108bd87457f181f385d2027b98ec88724945beb8 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 10 Jul 2015 14:46:59 +1000 Subject: raid6check: report role of suspect device. i.e. -2 for Q, -1 for P, 0-N for data. Signed-off-by: NeilBrown --- raid6check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'raid6check.c') diff --git a/raid6check.c b/raid6check.c index 66c3eea0..86a45b6f 100644 --- a/raid6check.c +++ b/raid6check.c @@ -395,12 +395,13 @@ int check_stripes(struct mdinfo *info, int *source, unsigned long long *offsets, raid6_stats(disk, results, raid_disks, chunk_size); for(j = 0; j < (chunk_size >> CHECK_PAGE_BITS); j++) { + int role = disk[j]; if(disk[j] >= -2) { disk[j] = geo_map(disk[j], start, raid_disks, level, layout); } if(disk[j] >= 0) { - printf("Error detected at stripe %llu, page %d: possible failed disk slot: %d --> %s\n", - start, j, disk[j], name[disk[j]]); + printf("Error detected at stripe %llu, page %d: possible failed disk slot %d: %d --> %s\n", + start, j, role, disk[j], name[disk[j]]); } if(disk[j] == -65535) { printf("Error detected at stripe %llu, page %d: disk slot unknown\n", start, j); -- cgit v1.2.3