ent->next = NULL;
ent->percent = -1;
ent->active = -1;
+ ent->resync = 0;
ent->dev = strdup(line);
ent->devnum = devnum;
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' &&