]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - monitor.c
Add missing 'continue' in Grow_restart.
[thirdparty/mdadm.git] / monitor.c
index 62261d963fe89a25593de63c2172cbf6fe13fc85..0cafc3ac3418c66e191a8eb72eeda4875d4eac5b 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -1,8 +1,8 @@
 /*
  * mdmon - monitor external metadata arrays
  *
- * Copyright (C) 2007-2008 Neil Brown <neilb@suse.de>
- * Copyright (C) 2007-2008 Intel Corporation
+ * Copyright (C) 2007-2009 Neil Brown <neilb@suse.de>
+ * Copyright (C) 2007-2009 Intel Corporation
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -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;
 }
@@ -496,7 +498,7 @@ static int wait_and_act(struct supertype *container, int nowait)
                sigprocmask(SIG_UNBLOCK, NULL, &set);
                sigdelset(&set, SIGUSR1);
                monitor_loop_cnt |= 1;
-               rv = pselect(maxfd+1, &rfds, NULL, NULL, NULL, &set);
+               rv = pselect(maxfd+1, NULL, NULL, &rfds, NULL, &set);
                monitor_loop_cnt += 1;
                if (rv == -1 && errno == EINTR)
                        rv = 0;