Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
mdadm.5365
0089-raid6check-report-role-of-suspect-device.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0089-raid6check-report-role-of-suspect-device.patch of Package mdadm.5365
From 108bd87457f181f385d2027b98ec88724945beb8 Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.de> Date: Fri, 10 Jul 2015 14:46:59 +1000 Subject: [PATCH 129/359] raid6check: report role of suspect device. References: bsc#1081910 i.e. -2 for Q, -1 for P, 0-N for data. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Coly Li <colyli@suse.de> --- raid6check.c | 5 +++-- 1 file 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); -- 2.16.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor