diff options
author | Mohamed Ashiq <mliyazud@redhat.com> | 2015-11-07 00:19:48 +0530 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2015-11-06 17:16:30 -0800 |
commit | a88859127fbdebadb2895fb3d28eba3091c17cca (patch) | |
tree | 9b6c91fce76b32aad8d48a8ff17fd0d3c21b8380 /cli | |
parent | bbaf4cdb42dfeee4d342ff4096a4985b68c74e05 (diff) |
tiering:Message shown in gluster vol tier <volname> status output is incorrect
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>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-rpc-ops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 45fbb93867d..ba044efe5d7 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -1854,7 +1854,8 @@ done: 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); @@ -1863,7 +1864,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); |