]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Be more consistent about keeping the host: prefix on array names.
[thirdparty/mdadm.git] / Assemble.c
index 2c52f074dd540ea0fbdda9f3cdae35769cd322d6..e75c7e5eaf9c7615f062f6d61bcf20dfa9538772 100644 (file)
@@ -515,6 +515,11 @@ int Assemble(struct supertype *st, char *mddev,
            conf_name_is_free(name))
                trustworthy = LOCAL;
 
+       if (trustworthy == LOCAL &&
+           strchr(name, ':'))
+               /* Ignore 'host:' prefix of name */
+               name = strchr(name, ':')+1;
+
        mdfd = create_mddev(mddev, name, ident->autof, trustworthy,
                            chosen_name);
        if (mdfd < 0) {