summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-08-26 03:32:21 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-26 07:30:54 -0700
commitfabb7e5e5dab69689bde255225748f8513a09d84 (patch)
tree7f7160fa19c105c5830dc7cadd34034f2b2ba70e /cli
parent33dfb02e92eb64009d353057f567dec02295886c (diff)
Cli volume add-brick validation
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1440 (volume add brick validation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1440
Diffstat (limited to 'cli')
-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 7200800d615..77fb3852ba5 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -662,6 +662,8 @@ gf_cli3_1_add_brick_cbk (struct rpc_req *req, struct iovec *iov,
cli_out ("Add Brick %s", (rsp.op_ret) ? "unsuccessful":
"successful");
+ if (rsp.op_ret && rsp.op_errstr)
+ cli_out ("%s", rsp.op_errstr);
ret = rsp.op_ret;
out: