From 7c7219fd881dd6485fbad2e80121a3c2dffd6d9b Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 25 Aug 2010 06:16:46 +0000 Subject: Cli volume create validation Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 1185 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1185 --- cli/src/cli3_1-cops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli') 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; -- cgit