]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mapfile.c
mdadm: improve the dlm locking mechanism for clustered raid
[thirdparty/mdadm.git] / mapfile.c
index c89d403f4e32b22c9a2e682c85617f354cf86e7c..f3c8191e80b7485760152db11df90bb2548c70f8 100644 (file)
--- a/mapfile.c
+++ b/mapfile.c
@@ -439,8 +439,8 @@ void RebuildMap(void)
                                        if ((homehost == NULL ||
                                             st->ss->match_home(st, homehost) != 1) &&
                                            st->ss->match_home(st, "any") != 1 &&
-                                           (require_homehost
-                                            || ! conf_name_is_free(info->name)))
+                                           (require_homehost ||
+                                            !conf_name_is_free(info->name)))
                                                /* require a numeric suffix */
                                                unum = 0;
                                        else