summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-10 14:46:59 +1000
committerNeilBrown <neilb@suse.de>2015-07-10 14:46:59 +1000
commit108bd87457f181f385d2027b98ec88724945beb8 (patch)
tree4a61f86dfe04ddb32be33b73c93563a5d7e31127
parent5bc29745a059e5ef407e35f55eb5d9e0b28d8ada (diff)
downloadmdadm-108bd87457f181f385d2027b98ec88724945beb8.tar.gz
raid6check: report role of suspect device.
i.e. -2 for Q, -1 for P, 0-N for data. Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--raid6check.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/raid6check.c b/raid6check.c
index 66c3eea..86a45b6 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);