diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 20:51:12 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 20:51:12 +1100 |
commit | 9008ed1c9623b7c11775ea8a7be17eb1bde5fd09 (patch) | |
tree | b0eb548c1b07a77878d0e0020942eddd51902997 /mdadm.c | |
parent | 52437b4f089d397fa84e22be54e1d6cdef60bea4 (diff) | |
download | mdadm-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |