]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
mdassemble: don't try to perform cluster check.
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index ea6e6889869d293eee8986b8324c649ac7fe147c..4032fa9b1778aff6895b95e43b21c7449915c7c7 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1995,7 +1995,7 @@ void reopen_mddev(int mdfd)
        if (fd >= 0 && fd != mdfd)
                dup2(fd, mdfd);
 }
-
+#ifndef MDASSEMBLE
 int get_cluster_name(char **cluster_name)
 {
         void *lib_handle = NULL;
@@ -2043,3 +2043,4 @@ out:
         dlclose(lib_handle);
         return rv;
 }
+#endif