summaryrefslogtreecommitdiffstats
path: root/Create.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-11 00:50:06 +0200
committerNeil Brown <neilb@suse.de>2008-07-11 00:50:06 +0200
commitd024b0a7eb520d5d7f2238b31c18eabe3775e731 (patch)
treea88e34e44820a0cbea1a7e949ad3138d6c0a2e9a /Create.c
parentMerge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/... (diff)
downloadmdadm-d024b0a7eb520d5d7f2238b31c18eabe3775e731.tar.xz
mdadm-d024b0a7eb520d5d7f2238b31c18eabe3775e731.zip
Always assume_clean for raid0, linear, multipath, faulty
For arrays that don't have redundancy (raid0, linear etc), the clean/dirty distinction doesn't mean anything. So always 'assume clean' for these arrays.
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Create.c b/Create.c
index 68a42301..91937dfb 100644
--- 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*/