]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
Make sure resync_start is initialised properly and maintained properly
[thirdparty/mdadm.git] / Create.c
index c51b7eb04ddd7e83d0f8a8f4d3590f3b6a85ed3c..b2edc7d6e7bcada0514854cc498fe105865f9ec9 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -448,11 +448,13 @@ int Create(struct supertype *st, char *mddev, int mdfd,
             ( level <= 0 )
             ||
             assume_clean
-               )
+               ) {
                info.array.state = 1; /* clean, but one+ drive will be missing*/
-       else
+               info.resync_start = ~0ULL;
+       } else {
                info.array.state = 0; /* not clean, but no errors */
-
+               info.resync_start = 0;
+       }
        if (level == 10) {
                /* for raid10, the bitmap size is the capacity of the array,
                 * which is array.size * raid_disks / ncopies;