summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-04-06 16:09:52 +1000
committerNeilBrown <neilb@suse.de>2009-04-06 16:09:52 +1000
commitb1b12d58194e42208e4828ea5818279c00a0ed18 (patch)
treed0d141d87e70095f1f80ed517f645d779e7a54b9 /config.c
parent3590496027119a99b4c36d4e22813d12474041c7 (diff)
downloadmdadm-b1b12d58194e42208e4828ea5818279c00a0ed18.tar.gz
config: treat "container=" and "member=" and providing the required identity information.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.c b/config.c
index 7e09b5c..24fbfcf 100644
--- a/config.c
+++ b/config.c
@@ -563,7 +563,9 @@ void arrayline(char *line)
w);
}
}
- if (mis.uuid_set == 0 && mis.devices == NULL && mis.super_minor == UnSet && mis.name[0] == 0)
+ if (mis.uuid_set == 0 && mis.devices == NULL &&
+ mis.super_minor == UnSet && mis.name[0] == 0 &&
+ (mis.container == NULL && mis.member == NULL))
fprintf(stderr, Name ": ARRAY line %s has no identity information.\n", mis.devname);
else {
mi = malloc(sizeof(*mi));