]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Assemble: keep MD_DISK_FAILFAST and MD_DISK_WRITEMOSTLY flag
[thirdparty/mdadm.git] / Assemble.c
index a79466c6cf0c1ba570cf3fc8e0d4d1ea78cc825c..f39c9e1cdf9c37dc5158937e00f329ac86ed79c7 100644 (file)
@@ -1704,6 +1704,9 @@ try_again:
                else
                        desired_state = (1<<MD_DISK_ACTIVE) | (1<<MD_DISK_SYNC);
 
+               desired_state |= devices[j].i.disk.state & ((1<<MD_DISK_FAILFAST) |
+                                                           (1<<MD_DISK_WRITEMOSTLY));
+
                if (!devices[j].uptodate)
                        continue;