X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Create.c;h=b2edc7d6e7bcada0514854cc498fe105865f9ec9;hp=c51b7eb04ddd7e83d0f8a8f4d3590f3b6a85ed3c;hb=103f2410ec581620367d6fde67a3a62f077062a7;hpb=120f767760a7a4a5c6d605eec91d3cec4ebc32a1 diff --git a/Create.c b/Create.c index c51b7eb0..b2edc7d6 100644 --- a/Create.c +++ b/Create.c @@ -448,11 +448,13 @@ int Create(struct supertype *st, char *mddev, int mdfd, ( level <= 0 ) || assume_clean - ) + ) { info.array.state = 1; /* clean, but one+ drive will be missing*/ - else + info.resync_start = ~0ULL; + } else { info.array.state = 0; /* not clean, but no errors */ - + info.resync_start = 0; + } if (level == 10) { /* for raid10, the bitmap size is the capacity of the array, * which is array.size * raid_disks / ncopies;