]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
assemble: support arrays created with --homehost=any
[thirdparty/mdadm.git] / Assemble.c
index 4cf5405890ea35306d8940691f97e60064bab0a1..47b8839e4835df1cf7461df07f6641e9ce577c3c 100644 (file)
@@ -478,7 +478,8 @@ int Assemble(struct supertype *st, char *mddev,
                st->ss->getinfo_super(st, content);
 
        trustworthy = FOREIGN;
-       switch (st->ss->match_home(st, homehost)) {
+       switch (st->ss->match_home(st, homehost)
+               ?: st->ss->match_home(st, "any")) {
        case 0:
                trustworthy = FOREIGN;
                name = content->name;