summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-09-18 16:21:08 +1000
committerNeilBrown <neilb@suse.de>2008-09-18 16:21:08 +1000
commitdbb44303d7d3ad8fffb9e25c8ed6fd57afa57b95 (patch)
tree659ac563f499c3f397aa9947d37ce332fe025784 /config.c
parent35ddc76dcbcb7ef5f1ca57e557bfa4c3cdf6a6eb (diff)
downloadmdadm-dbb44303d7d3ad8fffb9e25c8ed6fd57afa57b95.tar.gz
mdadm-dbb44303d7d3ad8fffb9e25c8ed6fd57afa57b95.tar.xz
mdadm-dbb44303d7d3ad8fffb9e25c8ed6fd57afa57b95.zip
Add support for assembling specific subarrays.
This normally isn't needed as --incremental does all the work. But it is needed to recognise member= and container= in mdadm.conf
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.c b/config.c
index 121b337..f471cf3 100644
--- a/config.c
+++ b/config.c
@@ -516,6 +516,12 @@ void arrayline(char *line)
} else if (strncasecmp(w, "auto=", 5) == 0 ) {
/* whether to create device special files as needed */
mis.autof = parse_auto(w+5, "auto type", 0);
+ } else if (strncasecmp(w, "member=", 7) == 0) {
+ /* subarray within a container */
+ mis.member = strdup(w+7);
+ } else if (strncasecmp(w, "container=", 10) == 0) {
+ /* the container holding this subarray */
+ mis.container = strdup(w+10);
} else {
fprintf(stderr, Name ": unrecognised word on ARRAY line: %s\n",
w);