summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 20:51:12 +1100
committerNeilBrown <neilb@suse.de>2008-11-04 20:51:12 +1100
commit9008ed1c9623b7c11775ea8a7be17eb1bde5fd09 (patch)
treeb0eb548c1b07a77878d0e0020942eddd51902997 /mdadm.c
parent52437b4f089d397fa84e22be54e1d6cdef60bea4 (diff)
downloadmdadm-9008ed1c9623b7c11775ea8a7be17eb1bde5fd09.tar.gz
Assemble: allow members of containers to be assembled and auto-assembled.
Try to treat members of containers much like other arrays for assembly. We still look through the list of devices for a match (it will be the container), then find the relevant 'info' and try to assemble the array. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index f830a8dd..2bd963a5 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -256,6 +256,7 @@ int main(int argc, char *argv[])
dv->writemostly = writemostly;
dv->re_add = re_add;
dv->used = 0;
+ dv->content = NULL;
dv->next = NULL;
*devlistend = dv;
devlistend = &dv->next;
@@ -308,6 +309,8 @@ int main(int argc, char *argv[])
dv->disposition = devmode;
dv->writemostly = writemostly;
dv->re_add = re_add;
+ dv->used = 0;
+ dv->content = NULL;
dv->next = NULL;
*devlistend = dv;
devlistend = &dv->next;