From 92d3d8b8cb8fc5886d71fe184339fdcbeb5439db Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Thu, 20 Mar 2014 10:46:25 +0530 Subject: cli: Deprecation message added for remove-brick op with default behaviour. Background : From 3.6 version and onwards, remove-brick can be executed with explicit options only. Change-Id: Ibe376e371c5aa7a68621cf4ec2e74c6809614f9b BUG: 1077682 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/7302 Reviewed-by: Kaushal M Tested-by: Gluster Build System --- cli/src/cli-cmd-parser.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/src/cli-cmd-parser.c') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index b086418ff18..a77c57c82ed 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1160,6 +1160,12 @@ cli_cmd_volume_remove_brick_parse (const char **words, int wordcount, if (!w) { /* Should be default 'force' */ command = GF_OP_CMD_COMMIT_FORCE; + cli_out("WARNING: running remove-brick commands without an " + "explicit option is deprecated, and will be removed " + "in the next version of GlusterFS.\n" + "To forcibly remove a brick in the next version of " + "GlusterFS, you will need to use \"remove-brick " + "force\"."); if (question) *question = 1; } else { -- cgit