From 2a184da3ca83f03dec69fcf0f26ae84c231d2e37 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 18 Feb 2011 03:37:50 +0000 Subject: Solaris: disable cli support rebalance and replace brick Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 2440 (Fix solaris build issues seen on latest git) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2440 --- cli/src/cli-cmd-volume.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 9047d6d7d..e022cce11 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -463,6 +463,10 @@ cli_cmd_volume_defrag_cbk (struct cli_state *state, struct cli_cmd_word *word, dict_t *dict = NULL; int sent = 0; int parse_error = 0; +#ifdef GF_SOLARIS_HOST_OS + cli_out ("Command not supported on Solaris"); + goto out; +#endif frame = create_frame (THIS, THIS->ctx->pool); if (!frame) @@ -705,6 +709,10 @@ cli_cmd_volume_replace_brick_cbk (struct cli_state *state, int sent = 0; int parse_error = 0; +#ifdef GF_SOLARIS_HOST_OS + cli_out ("Command not supported on Solaris"); + goto out; +#endif proc = &cli_rpc_prog->proctable[GF1_CLI_REPLACE_BRICK]; frame = create_frame (THIS, THIS->ctx->pool); -- cgit