Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
mdadm
0193-mdadm-mdstat-correct-the-strncmp-number-4-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0193-mdadm-mdstat-correct-the-strncmp-number-4-as-6.patch of Package mdadm
From 35c34037b55aaa36bdda5b1f01e69a1c84c8f408 Mon Sep 17 00:00:00 2001 From: Zhilong Liu <zlliu@suse.com> Date: Mon, 9 Oct 2017 16:21:14 +0800 Subject: [PATCH] mdadm/mdstat: correct the strncmp number 4 as 6 Git-commit: 35c34037b55aaa36bdda5b1f01e69a1c84c8f408 Patch-mainline: mdadm-4.0+ References: bsc#1069165, bsc#1069167, bsc#1068030 Mdstat: it should be corrected as 6 when strncmp 'resync'. Signed-off-by: Zhilong Liu <zlliu@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com> Signed-off-by: Coly Li <colyli@suse.de> --- mdstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdstat.c b/mdstat.c index 6c906a7..7e600d0 100644 --- a/mdstat.c +++ b/mdstat.c @@ -244,7 +244,7 @@ struct mdstat_ent *mdstat_read(int hold, int start) ent->resync = 0; } else if (ent->percent == RESYNC_NONE && (w[0] == 'r' || w[0] == 'c')) { - if (strncmp(w, "resync", 4) == 0) + if (strncmp(w, "resync", 6) == 0) ent->resync = 1; if (strncmp(w, "reshape", 7) == 0) ent->resync = 2; -- 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