]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
Add failfast support.
[thirdparty/mdadm.git] / Create.c
index 1594a39191396c315c036c4adaec5de72ac18bf1..bd114eabafc14e5f8864cb9d06ab0285c1c77c19 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -890,6 +890,8 @@ int Create(struct supertype *st, char *mddev,
 
                                if (dv->writemostly == 1)
                                        inf->disk.state |= (1<<MD_DISK_WRITEMOSTLY);
 
                                if (dv->writemostly == 1)
                                        inf->disk.state |= (1<<MD_DISK_WRITEMOSTLY);
+                               if (dv->failfast == 1)
+                                       inf->disk.state |= (1<<MD_DISK_FAILFAST);
 
                                if (have_container)
                                        fd = -1;
 
                                if (have_container)
                                        fd = -1;