summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-09-18 16:01:57 +1000
committerNeilBrown <neilb@suse.de>2008-09-18 16:01:57 +1000
commit352452c3648f683d5ee60c62ab243c37af87ada1 (patch)
tree2efef370fef2b2eb51502dae92c63e8c59bf71ec /super-ddf.c
parentf35f25259279573c6274e2783536c0b0a399bdd4 (diff)
downloadmdadm-352452c3648f683d5ee60c62ab243c37af87ada1.tar.gz
mdadm-352452c3648f683d5ee60c62ab243c37af87ada1.tar.xz
mdadm-352452c3648f683d5ee60c62ab243c37af87ada1.zip
Handle incremental assembly of containers.
mdadm -I /dev/part-of-container should add that to a container, creating if it needed, and then try to assemble any arrays in the container. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c
index 70889dc..957a134 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -814,6 +814,7 @@ static int load_super_ddf(struct supertype *st, int fd,
st->minor_version = 0;
st->max_devs = 512;
}
+ st->loaded_container = 0;
return 0;
}
@@ -2562,6 +2563,7 @@ static int load_super_ddf_all(struct supertype *st, int fd,
st->max_devs = 512;
st->container_dev = fd2devnum(fd);
}
+ st->loaded_container = 1;
return 0;
}
#endif /* MDASSEMBLE */