summaryrefslogtreecommitdiffstats
path: root/mdadm.h
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 /mdadm.h
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 'mdadm.h')
-rw-r--r--mdadm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index a1bd77f..5bc41e8 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -587,6 +587,12 @@ struct metadata_update {
* metadata read in or created is stored in 'sb' and 'info'.
* There are also fields used by mdmon to track containers.
*
+ * A supertype may refer to:
+ * Just an array, possibly in a container
+ * A container, not identifying any particular array
+ * Info read from just one device, not yet fully describing the array/container.
+ *
+ *
* A supertype is created by:
* super_by_fd
* guess_super
@@ -600,6 +606,8 @@ struct supertype {
char subarray[32]; /* name of array inside container */
void *sb;
void *info;
+ int loaded_container; /* Set if load_super found a container,
+ * not just one device */
struct metadata_update *updates;
struct metadata_update **update_tail;