]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
Always assume_clean for raid0, linear, multipath, faulty
[thirdparty/mdadm.git] / Create.c
index 68a423014786e7e74d23b30fb1d8a78744f0b7b1..91937dfbd206f5b070fd65d4b746825b140898a5 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -441,6 +441,8 @@ int Create(struct supertype *st, char *mddev, int mdfd,
             ( level == 6 && (insert_point < raiddisks
                              || second_missing < raiddisks))
             ||
+            ( level <= 0 )
+            ||
             assume_clean
                )
                info.array.state = 1; /* clean, but one+ drive will be missing*/