summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 10:51:12 +0100
committerNeilBrown <neilb@suse.de>2008-11-04 10:51:12 +0100
commit9008ed1c9623b7c11775ea8a7be17eb1bde5fd09 (patch)
treeb0eb548c1b07a77878d0e0020942eddd51902997 /config.c
parentAssemble: simplify test for reporting mismatches. (diff)
downloadmdadm-9008ed1c9623b7c11775ea8a7be17eb1bde5fd09.tar.xz
mdadm-9008ed1c9623b7c11775ea8a7be17eb1bde5fd09.zip
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 'config.c')
-rw-r--r--config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.c b/config.c
index 8b233559..6ab5a346 100644
--- a/config.c
+++ b/config.c
@@ -261,6 +261,7 @@ mddev_dev_t load_partitions(void)
d->devname = strdup(name);
d->next = rv;
d->used = 0;
+ d->content = NULL;
rv = d;
}
fclose(f);
@@ -290,6 +291,7 @@ mddev_dev_t load_containers(void)
}
d->next = rv;
d->used = 0;
+ d->content = NULL;
rv = d;
}
free_mdstat(mdstat);
@@ -803,6 +805,7 @@ mddev_dev_t conf_get_devs()
t->devname = strdup(globbuf.gl_pathv[i]);
t->next = dlist;
t->used = 0;
+ t->content = NULL;
dlist = t;
/* printf("one dev is %s\n", t->devname);*/
}