Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
mdadm.5365
0141-Detail-report-correct-raid-disk-for-remove...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0141-Detail-report-correct-raid-disk-for-removed-drives.patch of Package mdadm.5365
From 9e70a453edde9571d84372ea5c13a1fab219caac Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.com> Date: Fri, 18 Dec 2015 13:49:30 +1100 Subject: [PATCH 196/359] Detail: report correct raid-disk for removed drives. References: bsc#1081910 Back in Commit: 8057db46a15d ("Detail: fix handling of 'disks' array.") when we doubled the size of the 'disks' array to handle primary and replacement, we should have halved the setting of the default raid_disk number. Reported-by: Coly Li <colyli@suse.de> Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Coly Li <colyli@suse.de> --- Detail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detail.c b/Detail.c index 200f65f..cbf1f9a 100644 --- a/Detail.c +++ b/Detail.c @@ -299,7 +299,7 @@ int Detail(char *dev, struct context *c) for (d = 0; d < max_disks * 2; d++) { disks[d].state = (1<<MD_DISK_REMOVED); disks[d].major = disks[d].minor = 0; - disks[d].number = disks[d].raid_disk = d; + disks[d].number = disks[d].raid_disk = d/2; } next = array.raid_disks*2; -- 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