summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2014-03-20 10:46:25 +0530
committerVijay Bellur <vbellur@redhat.com>2014-04-03 02:07:05 -0700
commit92d3d8b8cb8fc5886d71fe184339fdcbeb5439db (patch)
tree71c7d1aa463a0f92800c19284b05e191ca4e1922 /cli/src
parent446547559952e3b8af943f87c7475b80dd090153 (diff)
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 <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/7302 Reviewed-by: Kaushal M <kaushal@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-cmd-parser.c6
1 files changed, 6 insertions, 0 deletions
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 {