From b81cec326d4d43519593cb56b7a0e68ea5c3421c Mon Sep 17 00:00:00 2001 From: Susant Palai Date: Tue, 2 Sep 2014 05:29:52 -0400 Subject: CLI: Adding warning message in case remove-brick commit executed Change-Id: Ia2f1b2cd2687ca8e739e7a1e245e668a7424ffac BUG: 1136702 Signed-off-by: Susant Palai Reviewed-on: http://review.gluster.org/8577 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- cli/src/cli-rpc-ops.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index ba8ba6810d6..151ec0d3157 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2088,6 +2088,12 @@ gf_cli_remove_brick_cbk (struct rpc_req *req, struct iovec *iov, cli_out ("volume remove-brick %s: success", cmd_str); if (GF_OP_CMD_START == cmd && task_id_str != NULL) cli_out ("ID: %s", task_id_str); + if (GF_OP_CMD_COMMIT_FORCE == cmd) + cli_out ("Check the removed bricks to ensure all files " + "are migrated.\nIf files with data are " + "found on the brick path, copy them via a " + "gluster mount point before re-purposing the " + "removed brick. "); } ret = rsp.op_ret; -- cgit