summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-02-24 11:16:41 +1100
committerNeilBrown <neilb@suse.de>2010-02-24 11:16:56 +1100
commitb179246f4f519082158279b2f45e5fd51842cc42 (patch)
tree684888e80b21bc89215ba27f29abcc2a97ccc613 /mdadm.h
parentcd9a8b5cb4c2a402dbc2bf0ce314cd87285bcf4d (diff)
downloadmdadm-b179246f4f519082158279b2f45e5fd51842cc42.tar.gz
mdadm-b179246f4f519082158279b2f45e5fd51842cc42.tar.xz
mdadm-b179246f4f519082158279b2f45e5fd51842cc42.zip
Assemble: Handle assembling from config file which is out of order.
Currently "mdadm -As" will process the entries in the config file in order. If any array is a component or member of a preceding array, that array will not be assembled. So if there are any failures during assembly, retry those arrays, and look until everything is assembled, or nothing more can be assembled. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index a7d8b79..df3a056 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -301,6 +301,10 @@ typedef struct mddev_ident_s {
char *member; /* subarray within a container */
struct mddev_ident_s *next;
+ union {
+ /* fields needed by different users of this structure */
+ int assembled; /* set when assembly succeeds */
+ };
} *mddev_ident_t;
/* List of device names - wildcards expanded */