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>
This commit is contained in:
NeilBrown 2015-08-03 11:53:01 +10:00
parent 2cf42394f0
commit 7d55dca2cc
1 changed files with 2 additions and 1 deletions

3
util.c
View File

@ -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