Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15
mdadm.7989
0131-Monitor-check_array-Get-array_disks-from-s...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0131-Monitor-check_array-Get-array_disks-from-sysfs.patch of Package mdadm.7989
From 12a9d21f4e9fd4d3a14129407f1e8da6d6444cd6 Mon Sep 17 00:00:00 2001 From: Jes Sorensen <jsorensen@fb.com> Date: Tue, 9 May 2017 16:58:55 -0400 Subject: [PATCH] Monitor/check_array: Get array_disks from sysfs Git-commit: 12a9d21f4e9fd4d3a14129407f1e8da6d6444cd6 Patch-mainline: mdadm-4.0+ References: bsc#1069165, bsc#1069167, bsc#1068030 Signed-off-by: Jes Sorensen <jsorensen@fb.com> Signed-off-by: Coly Li <colyli@suse.de> --- Monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Monitor.c b/Monitor.c index 9456efd..fe6f2b4 100644 --- a/Monitor.c +++ b/Monitor.c @@ -481,7 +481,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat, if (st->devnm[0] == 0) strcpy(st->devnm, fd2devnm(fd)); - sra = sysfs_read(-1, st->devnm, GET_LEVEL | GET_DEGRADED | + sra = sysfs_read(-1, st->devnm, GET_LEVEL | GET_DISKS | GET_DEGRADED | GET_MISMATCH); if (!sra) goto disappeared; @@ -641,7 +641,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat, st->spare = array.spare_disks; st->failed = sra->array.failed_disks; st->utime = array.utime; - st->raid = array.raid_disks; + st->raid = sra->array.raid_disks; st->err = 0; if ((st->active < st->raid) && st->spare == 0) retval = 1; -- 2.13.6
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