summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-10-26 05:20:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-10-26 23:56:24 -0700
commita7d41a64fb11451e622db19813738c3ee3942c92 (patch)
tree70df39892972fa6929dd2fe9e06713d066c83f1a /cli
parenta53d14d5f5be431279c5e56963b495bf164cf453 (diff)
report the error if a volume not in the started state is tried to be stopped
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2010 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2010
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli3_1-cops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c
index 9e1338cb3eb..b8985f71264 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -730,6 +730,9 @@ gf_cli3_1_stop_volume_cbk (struct rpc_req *req, struct iovec *iov,
cli_out ("Stopping volume %s has been %s", volname,
(rsp.op_ret) ? "unsuccessful": "successful");
+ if (rsp.op_ret && rsp.op_errstr)
+ cli_out ("%s", rsp.op_errstr);
+
ret = rsp.op_ret;
out: