summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-09-14 05:23:35 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-14 04:37:16 -0700
commit8b667fed03a49dc59ef9ae937a081145d38dc5a1 (patch)
tree50ed85e2fa755a23b322658f896b83917fe3fea7 /cli
parentbc4f737210bc0971d031cf9b3ff8fe941482eabc (diff)
check if the export directory is present while starting volume and send the response to cli
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1593 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1593
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 1485e3a2ed9..7e0e2103177 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -512,6 +512,9 @@ gf_cli3_1_start_volume_cbk (struct rpc_req *req, struct iovec *iov,
cli_out ("Starting 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: