summaryrefslogtreecommitdiffstats
path: root/xlators/features/bit-rot/src/bitd/bit-rot-scrub-status.c
Commit message (Collapse)AuthorAgeFilesLines
"with existing volumes in the " "cluster", rsp.hostname); break; case GF_PROBE_UNKNOWN_PEER: snprintf (msg, sizeof (msg), "%s responded with 'unknown peer'" " error, this could happen if %s " "doesn't have localhost in its peer" " database", rsp.hostname, rsp.hostname); break; case GF_PROBE_ADD_FAILED: snprintf (msg, sizeof (msg), "Failed to add peer information " "on %s" , rsp.hostname); break; default: snprintf (msg, sizeof (msg), "Probe unsuccessful\nProbe returned " "with unknown errno %d", rsp.op_errno); break; } gf_log ("glusterd",GF_LOG_ERROR,"Probe failed with op_ret %d" " and op_errno %d", rsp.op_ret, rsp.op_errno); } #if (HAVE_LIB_XML) if (global_state->mode & GLUSTER_MODE_XML) { ret = cli_xml_output_str ("peerProbe", msg, rsp.op_ret, rsp.op_errno, NULL); if (ret) gf_log ("cli", GF_LOG_ERROR, "Error outputting to xml"); goto out; } #endif cli_out ("%s", msg); ret = rsp.op_ret; out: cli_cmd_broadcast_response (ret); return ret; } int gf_cli3_1_deprobe_cbk (struct rpc_req *req, struct iovec *iov, int count, void *myframe) { gf1_cli_deprobe_rsp rsp = {0,}; int ret = -1; char msg[1024] = {0,}; if (-1 == req->rpc_status) { goto out; } ret = xdr_to_generic (*iov, &rsp, (xdrproc_t)xdr_gf1_cli_deprobe_rsp); if (ret < 0) { gf_log ("", GF_LOG_ERROR, "error"); //rsp.op_ret = -1; //rsp.op_errno = EINVAL; goto out; } gf_log ("cli", GF_LOG_INFO, "Received resp to deprobe"); if (rsp.op_ret) { switch (rsp.op_errno) { case GF_DEPROBE_LOCALHOST: snprintf (msg, sizeof (msg),