]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - config.c
config: treat "container=" and "member=" and providing the required identity information.
[thirdparty/mdadm.git] / config.c
index 7e09b5ca8c58604e0af91591b8b9feb042ad4250..24fbfcf92ee0524b7c392ce4db400e14e1bab90a 100644 (file)
--- 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));