diff options
author | NeilBrown <neilb@suse.com> | 2015-08-03 03:53:01 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-08-03 03:53:01 +0200 |
commit | 7d55dca2cce88de443864b1e843dd0faf9142bd7 (patch) | |
tree | 2a29a21034f3af1f6b020863ceb0ebab998651e1 /util.c | |
parent | md-cluster: use %-64s to print cluster_name (diff) | |
download | mdadm-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |