diff options
author | NeilBrown <neilb@suse.de> | 2008-09-18 16:21:08 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-09-18 16:21:08 +1000 |
commit | dbb44303d7d3ad8fffb9e25c8ed6fd57afa57b95 (patch) | |
tree | 659ac563f499c3f397aa9947d37ce332fe025784 /config.c | |
parent | 35ddc76dcbcb7ef5f1ca57e557bfa4c3cdf6a6eb (diff) | |
download | mdadm-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |