]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: container_content_ddf: set safe_mode_delay > 0
authormwilck@arcor.de <mwilck@arcor.de>
Fri, 16 Aug 2013 18:21:57 +0000 (20:21 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 28 Aug 2013 04:58:15 +0000 (14:58 +1000)
Set safe_mode_delay to something >0, otherwise all container subarrays
assembled will have safe_mode_delay=0. That will break the assumption that
meta data becomes clean after running mdadm --wait-clean.

Use the same value as in getinfo_super_ddf_bvd. It would be cleaner
to call that directly from container_content_ddf, but I need to check
possible side effects first.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c

index ad8bc0a8033ed0a6ac83cf746f6b37d7454a074d..a5852a7679c2b155cfde8ae8c5a33c35b0193445 100644 (file)
@@ -3668,6 +3668,7 @@ static struct mdinfo *container_content_ddf(struct supertype *st, char *subarray
                this->array.md_minor      = -1;
                this->array.major_version = -1;
                this->array.minor_version = -2;
+               this->safe_mode_delay = 200;
                cptr = (__u32 *)(vc->conf.guid + 16);
                this->array.ctime         = DECADE + __be32_to_cpu(*cptr);
                this->array.utime         = DECADE +