From a7d41a64fb11451e622db19813738c3ee3942c92 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 26 Oct 2010 05:20:34 +0000 Subject: report the error if a volume not in the started state is tried to be stopped Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 2010 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2010 --- cli/src/cli3_1-cops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/src/cli3_1-cops.c') 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: -- cgit