Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
mdadm.5365
0131-Detail.c-test-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0131-Detail.c-test-fix.patch of Package mdadm.5365
From: Constantine Shulyupin <const@makelinux.com> Date: Thu, 10 Dec 2015 16:19:46 +0200 Subject: [PATCH 186/359] Detail.c --test fix From cd04f56212a1640f02fe4567586e2a02a7888e0c Mon Sep 17 00:00:00 2001 References: bsc#1081910 Signed-off-by: Coly Li <colyli@suse.de> --- Detail.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Detail.c b/Detail.c index 200f65f..7eb6bd5 100644 --- a/Detail.c +++ b/Detail.c @@ -339,7 +339,8 @@ int Detail(char *dev, struct context *c) (disks[d*2+1].state & (1<<MD_DISK_SYNC))) { avail_disks ++; avail[d] = 1; - } + } else + rv |= !! c->test; } if (c->brief) { @@ -672,9 +673,6 @@ This is pretty boring } } if (disk.state == 0) spares++; - if (c->test && d < array.raid_disks - && !(disk.state & (1<<MD_DISK_SYNC))) - rv |= 1; dv=map_dev_preferred(disk.major, disk.minor, 0, c->prefer); if (dv != NULL) { if (c->brief) -- 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