From 0d415f7f8c08edc7b7af88567bb5ec4803defc94 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Thu, 9 May 2013 16:14:33 +0000 Subject: glusterd: remove-brick: prevent removal from a replicate volume. Prevent the removal of brick(s) from a plain replicate volume and display the error message at the CLI. Change-Id: I8e182404564147329d8cd364b7c7931d19f14570 BUG: 961669 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/4975 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- cli/src/cli-rpc-ops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/src') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 08f3bcae5..8f69fa0ef 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2007,6 +2007,8 @@ gf_cli_remove_brick_cbk (struct rpc_req *req, struct iovec *iov, if (ret) { gf_log ("cli", GF_LOG_ERROR, "remove-brick-id is not present in dict"); + cli_err ("volume remove-brick %s: failed: %s", cmd_str, + rsp.op_errstr); goto out; } break; -- cgit