From d6effb1fb232266863eaee5d66c903b0eb623a1a Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Thu, 23 Apr 2015 16:24:43 +0530 Subject: tiering: Do not allow some operations on tiered volume Back port of http://review.gluster.org/10349 Some operations like add-brick,remove-brick,rebalance, replace-brick are not supported on tiered volume. But there is no code level check for this. This patch will allow to do the same >Change-Id: I12689f4e902cf0cceaf6f7f29c71057305024977 >BUG: 1205624 >Signed-off-by: Mohammed Rafi KC >Reviewed-on: http://review.gluster.org/10349 >Tested-by: Gluster Build System >Tested-by: NetBSD Build System >Reviewed-by: Krishnan Parthasarathi >Tested-by: Krishnan Parthasarathi Change-Id: Idaf5469d24f03e79ffb4e4edcbe39e84585aca39 BUG: 1221476 Signed-off-by: Mohammed Rafi KC Reviewed-on: http://review.gluster.org/10774 Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee Reviewed-by: Dan Lambright Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- cli/src/cli-cmd-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 2ca5948d552..d4c846acd0a 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1698,7 +1698,7 @@ cli_cmd_volume_detach_tier_parse (const char **words, int wordcount, } else if (!strcmp(word, "stop")) command = GF_OP_CMD_STOP_DETACH_TIER; else if (!strcmp(word, "status")) - command = GF_DEFRAG_CMD_STATUS; + command = GF_OP_CMD_STATUS; else goto out; -- cgit