diff options
author | shishir gowda <shishirng@gluster.com> | 2010-08-19 07:21:42 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-19 09:50:19 -0700 |
commit | 074f03afb246eb56ad55355bd775adc16488baa9 (patch) | |
tree | 2e987121d81548a6b583b5659d8f27772b554c8f /cli | |
parent | 84bc269be4d2415e7d39ed33fa9925fd54447814 (diff) |
Probe on localhost not needed
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1216 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1216
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli3_1-cops.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c index f5747261f4b..53f714c2054 100644 --- a/cli/src/cli3_1-cops.c +++ b/cli/src/cli3_1-cops.c @@ -68,9 +68,25 @@ gf_cli3_1_probe_cbk (struct rpc_req *req, struct iovec *iov, } gf_log ("cli", GF_LOG_NORMAL, "Received resp to probe"); - cli_out ("Probe %s", (rsp.op_ret) ? "unsuccessful": "successful"); - - + if (!rsp.op_ret) { + switch (rsp.op_errno) { + case GF_PROBE_SUCCESS: + cli_out ("Probe successful"); + break; + case GF_PROBE_LOCALHOST: + cli_out ("Probe on localhost not needed"); + break; + default: + cli_out ("Probe returned with unknown errno %d", + rsp.op_errno); + break; + } + } + if (rsp.op_ret) { + cli_out ("Probe unsuccessfull"); + gf_log ("glusterd",GF_LOG_ERROR,"Probe failed with op_ret %d" + " and op_errno %d", rsp.op_ret, rsp.op_errno); + } ret = rsp.op_ret; out: |