summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-08-03 03:53:01 +0200
committerNeilBrown <neilb@suse.com>2015-08-03 03:53:01 +0200
commit7d55dca2cce88de443864b1e843dd0faf9142bd7 (patch)
tree2a29a21034f3af1f6b020863ceb0ebab998651e1 /util.c
parentmd-cluster: use %-64s to print cluster_name (diff)
downloadmdadm-7d55dca2cce88de443864b1e843dd0faf9142bd7.tar.xz
mdadm-7d55dca2cce88de443864b1e843dd0faf9142bd7.zip
mdassemble: don't try to perform cluster check.
mdassemble is meant to be small an simple, so avoid trying to check for a cluster. Currently it doesn't, but it still includes the code, which doesn't build because the library isn't provided. So just exclude the get_cluster_name code from mdassemble. Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index ea6e6889..4032fa9b 100644
--- 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