X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=monitor.c;h=3388d31c5c57aaab6d60fde1ef04e7dd940743eb;hp=62261d963fe89a25593de63c2172cbf6fe13fc85;hb=7e7fffc4022114c491587755998395ef4766fcc2;hpb=48924014b02dd0e8046f58a4c6c9a2903a9b1dbd diff --git a/monitor.c b/monitor.c index 62261d96..3388d31c 100644 --- a/monitor.c +++ b/monitor.c @@ -74,8 +74,10 @@ int get_resync_start(struct active_array *a) n = read_attr(buf, 30, a->resync_start_fd); if (n <= 0) return n; - - a->resync_start = strtoull(buf, NULL, 10); + if (strncmp(buf, "none", 4) == 0) + a->resync_start = ~0ULL; + else + a->resync_start = strtoull(buf, NULL, 10); return 1; }