summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-02-18 03:37:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-22 09:21:53 -0800
commit2a184da3ca83f03dec69fcf0f26ae84c231d2e37 (patch)
treea1ce685373c0283d372108c7f26eaa73f12286b0 /cli/src
parent46279693027230d5454ad98c267d93d5139e19af (diff)
Solaris: disable cli support rebalance and replace brick
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2440 (Fix solaris build issues seen on latest git) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2440
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-cmd-volume.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 9047d6d7d9e..e022cce1149 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);