diff options
author | Neil Brown <neilb@suse.de> | 2004-08-11 04:16:01 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2004-08-11 04:16:01 +0200 |
commit | e5329c3747a4e9eb7addbfaa59b8d5e8688ce2a1 (patch) | |
tree | 889e38efabcc146f7ee4c59f39c79aae7c783d8d /mdstat.c | |
parent | mdadm-1.6.0 (diff) | |
download | mdadm-e5329c3747a4e9eb7addbfaa59b8d5e8688ce2a1.tar.xz mdadm-e5329c3747a4e9eb7addbfaa59b8d5e8688ce2a1.zip |
mdadm-1.7.0mdadm-1.7.0
Diffstat (limited to 'mdstat.c')
-rw-r--r-- | mdstat.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -153,6 +153,7 @@ struct mdstat_ent *mdstat_read(int hold) ent->next = NULL; ent->percent = -1; ent->active = -1; + ent->resync = 0; ent->dev = strdup(line); ent->devnum = devnum; @@ -179,6 +180,11 @@ struct mdstat_ent *mdstat_read(int hold) w[l-1] == '%' && (eq=strchr(w, '=')) != NULL ) { ent->percent = atoi(eq+1); + if (strncmp(w,"resync", 4)==0) + ent->resync = 1; + } else if (ent->percent == -1 && + strncmp(w, "resync", 4)==0) { + ent->resync = 1; } else if (ent->percent == -1 && w[0] >= '0' && w[0] <= '9' && |