summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorMohamed Ashiq <mliyazud@redhat.com>2015-11-07 00:19:48 +0530
committerDan Lambright <dlambrig@redhat.com>2015-11-10 03:53:47 -0800
commita6beaa482538ecdc050029935085777862193af9 (patch)
tree08e39ba0f0af72a1d270dd5f0330dfa48c93febc /cli
parent29151137d3da3ab8c0c65f8502d5874febfeeb14 (diff)
tiering:Message shown in gluster vol tier <volname> status output is incorrect
Backport of http://review.gluster.org/12532 Change-Id: I15a1a637090f1cc2f200d5c3582317e4aa3cf334 BUG: 1279309 Signed-off-by: Mohamed Ashiq <mliyazud@redhat.com> >Change-Id: I15a1a637090f1cc2f200d5c3582317e4aa3cf334 >BUG: 1278927 >Signed-off-by: Mohamed Ashiq <mliyazud@redhat.com> >Reviewed-on: http://review.gluster.org/12532 >Tested-by: NetBSD Build System <jenkins@build.gluster.org> >Tested-by: Gluster Build System <jenkins@build.gluster.com> >Reviewed-by: Dan Lambright <dlambrig@redhat.com> >Tested-by: Dan Lambright <dlambrig@redhat.com> Reviewed-on: http://review.gluster.org/12547 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-rpc-ops.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index cf9e0aaa0f2..bafcfc835aa 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -1837,7 +1837,9 @@ done:
rsp.op_errstr);
else {
if (rsp.op_ret)
- if (cmd == GF_DEFRAG_CMD_START_TIER) {
+
+ if (cmd == GF_DEFRAG_CMD_START_TIER || cmd ==
+ GF_DEFRAG_CMD_STATUS_TIER) {
cli_err ("Tiering Migration Functionality: %s:"
" failed%s%s", volname,
strlen (msg) ? ": " : "", msg);
@@ -1846,7 +1848,8 @@ done:
volname, strlen (msg) ? ": " : "",
msg);
else
- if (cmd == GF_DEFRAG_CMD_START_TIER) {
+ if (cmd == GF_DEFRAG_CMD_START_TIER || cmd ==
+ GF_DEFRAG_CMD_STATUS_TIER) {
cli_out ("Tiering Migration Functionality: %s:"
" success%s%s", volname,
strlen (msg) ? ": " : "", msg);