summaryrefslogtreecommitdiffstats
path: root/raid6check.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-10 06:46:59 +0200
committerNeilBrown <neilb@suse.de>2015-07-10 06:46:59 +0200
commit108bd87457f181f385d2027b98ec88724945beb8 (patch)
tree4a61f86dfe04ddb32be33b73c93563a5d7e31127 /raid6check.c
parenttests: save failure logs to logdir (diff)
downloadmdadm-108bd87457f181f385d2027b98ec88724945beb8.tar.xz
mdadm-108bd87457f181f385d2027b98ec88724945beb8.zip
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>
Diffstat (limited to 'raid6check.c')
-rw-r--r--raid6check.c5
1 files changed, 3 insertions, 2 deletions
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);