From 7d95955cd2b2b8979e66bcf09e792a34a12bd8a3 Mon Sep 17 00:00:00 2001 From: hari gowtham Date: Mon, 23 Nov 2015 11:58:52 +0530 Subject: Tiering: change of error message for "v tier detach status" If the volume was not a tiered volume then empty status was being printed instead of an error message. Change-Id: I13ccb16e1562966976a48d9365ced4c8a124de59 BUG: 1284357 Signed-off-by: hari gowtham Reviewed-on: http://review.gluster.org/12713 Tested-by: NetBSD Build System Tested-by: Gluster Build System Tested-by: Dan Lambright Reviewed-by: Dan Lambright --- cli/src/cli-rpc-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 813006e54f5..e841b25f60d 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2396,10 +2396,10 @@ gf_cli_detach_tier_status_cbk (struct rpc_req *req, struct iovec *iov, ret = rsp.op_ret; if (rsp.op_ret == -1) { if (strcmp (rsp.op_errstr, "")) - snprintf (msg, sizeof (msg), "volume detach-tier %s: " + snprintf (msg, sizeof (msg), "volume tier detach %s: " "failed: %s", cmd_str, rsp.op_errstr); else - snprintf (msg, sizeof (msg), "volume detach-tier %s: " + snprintf (msg, sizeof (msg), "volume tier detach %s: " "failed", cmd_str); if (global_state->mode & GLUSTER_MODE_XML) -- cgit