From dbb44303d7d3ad8fffb9e25c8ed6fd57afa57b95 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 18 Sep 2008 16:21:08 +1000 Subject: 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 --- config.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.c') 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); -- cgit