diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-09-14 05:23:35 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-14 04:37:16 -0700 |
commit | 8b667fed03a49dc59ef9ae937a081145d38dc5a1 (patch) | |
tree | 50ed85e2fa755a23b322658f896b83917fe3fea7 /cli | |
parent | bc4f737210bc0971d031cf9b3ff8fe941482eabc (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.c | 3 |
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: |