summaryrefslogtreecommitdiffstats
path: root/cli/src/cli3_1-cops.c
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-08-25 06:16:46 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-26 00:09:17 -0700
commit7c7219fd881dd6485fbad2e80121a3c2dffd6d9b (patch)
treea9687f7f7fc57e117d00c7bc93d11969f6d989f0 /cli/src/cli3_1-cops.c
parent194ec62165c89a84ad7d36013dd77e981a374c93 (diff)
Cli volume create validation
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1185 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1185
Diffstat (limited to 'cli/src/cli3_1-cops.c')
-rw-r--r--cli/src/cli3_1-cops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c
index 1bb70689e00..7200800d615 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -393,6 +393,8 @@ gf_cli3_1_create_volume_cbk (struct rpc_req *req, struct iovec *iov,
gf_log ("cli", GF_LOG_NORMAL, "Received resp to create volume");
cli_out ("Creation of 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;