summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-04-14 11:11:14 +1000
committerNeilBrown <neilb@suse.de>2009-04-14 11:11:14 +1000
commitc256924e52249b52bad42963176c42601f1a08f4 (patch)
tree703992c9f376f272232395997a1a74faa58d6f15 /monitor.c
parentfa5090285af9401f950aa5c1a3a82708c69c4906 (diff)
parent7e7fffc4022114c491587755998395ef4766fcc2 (diff)
downloadmdadm-c256924e52249b52bad42963176c42601f1a08f4.tar.gz
Merge branch 'master' of git://github.com/djbw/mdadm into devel-3.0
Conflicts: Grow.c mdadm.h sysfs.c Due to independent fixes for the "mdadm hangs if reshape finishes too quickly" problem.
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 62261d9..3388d31 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;
}