]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
incremental_container: preserve 'in_sync' flag when adding to existing array.
[thirdparty/mdadm.git] / Assemble.c
index 73d6ee231d9f466a99b2330bad7c8d7b3b393ce5..4cf5405890ea35306d8940691f97e60064bab0a1 100644 (file)
@@ -1228,7 +1228,7 @@ int assemble_container_content(struct supertype *st, int mdfd,
                sysfs_free(sra);
 
        for (dev = content->devs; dev; dev = dev->next)
-               if (sysfs_add_disk(content, dev) == 0)
+               if (sysfs_add_disk(content, dev, 1) == 0)
                        working++;
                else if (errno == EEXIST)
                        preexist++;