Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
mdadm.1739
0001-Detail.c-test-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Detail.c-test-fix.patch of Package mdadm.1739
From cd04f56212a1640f02fe4567586e2a02a7888e0c Mon Sep 17 00:00:00 2001 From: Constantine Shulyupin <const@makelinux.com> Date: Thu, 10 Dec 2015 16:19:46 +0200 Subject: [PATCH] Detail.c --test fix --- Detail.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- 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) { @@ -673,9 +674,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)
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