diff options
author | mwilck@arcor.de <mwilck@arcor.de> | 2013-08-16 20:21:57 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-08-28 06:58:15 +0200 |
commit | 1219c77e72e32085c719e78758bec179eedde46c (patch) | |
tree | 44faf0b8f3b989e866c50497809ef076ce2e8b95 /super-ddf.c | |
parent | DDF: export_examine_super_ddf: print MD_DEVICES (diff) | |
download | mdadm-1219c77e72e32085c719e78758bec179eedde46c.tar.xz mdadm-1219c77e72e32085c719e78758bec179eedde46c.zip |
DDF: container_content_ddf: set safe_mode_delay > 0
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>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c index ad8bc0a8..a5852a76 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -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 + |