From 8b667fed03a49dc59ef9ae937a081145d38dc5a1 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 14 Sep 2010 05:23:35 +0000 Subject: check if the export directory is present while starting volume and send the response to cli Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 1593 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1593 --- cli/src/cli3_1-cops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli') 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: -- cgit