From: Neil Brown Date: Thu, 10 Jul 2008 22:50:06 +0000 (+1000) Subject: Always assume_clean for raid0, linear, multipath, faulty X-Git-Tag: mdadm-3.0-devel1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d024b0a7eb520d5d7f2238b31c18eabe3775e731;p=thirdparty%2Fmdadm.git 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. --- 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*/