rc 82 daemons/attrd/attrd_alerts.c config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 86 daemons/attrd/attrd_alerts.c if (rc == -ENXIO) { rc 89 daemons/attrd/attrd_alerts.c } else if (rc != pcmk_ok) { rc 90 daemons/attrd/attrd_alerts.c crm_notice("Could not query local CIB: %s", pcmk_strerror(rc)); rc 498 daemons/attrd/attrd_commands.c int rc = pcmk__ipc_send_xml(client, id, reply, flags); rc 500 daemons/attrd/attrd_commands.c if (rc != pcmk_rc_ok) { rc 502 daemons/attrd/attrd_commands.c origin, pcmk_rc_str(rc), rc); rc 989 daemons/attrd/attrd_commands.c attrd_cib_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 1005 daemons/attrd/attrd_commands.c if (rc == pcmk_ok && call_id < 0) { rc 1006 daemons/attrd/attrd_commands.c rc = call_id; rc 1009 daemons/attrd/attrd_commands.c switch (rc) { rc 1030 daemons/attrd/attrd_commands.c call_id, a->id, pcmk_strerror(rc), rc); rc 1037 daemons/attrd/attrd_commands.c if (rc != pcmk_ok) { rc 1043 daemons/attrd/attrd_commands.c if (rc == pcmk_ok) { rc 1160 daemons/attrd/attrd_commands.c int rc = 0; rc 1167 daemons/attrd/attrd_commands.c rc = attrd_send_attribute_alert(at->nodename, at->nodeid, rc 1170 daemons/attrd/attrd_commands.c a->id, at->nodename, at->current, at->nodeid, rc); rc 52 daemons/attrd/attrd_elections.c enum election_result rc = 0; rc 58 daemons/attrd/attrd_elections.c rc = election_count_vote(writer, xml, !attrd_shutting_down()); rc 60 daemons/attrd/attrd_elections.c switch(rc) { rc 273 daemons/attrd/attrd_utils.c int rc; rc 287 daemons/attrd/attrd_utils.c rc = regcomp(regex, pattern, REG_EXTENDED|REG_NOSUB); rc 290 daemons/attrd/attrd_utils.c return (rc == 0)? pcmk_ok : -EINVAL; rc 104 daemons/attrd/pacemaker-attrd.c attrd_erase_cb(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 107 daemons/attrd/pacemaker-attrd.c do_crm_log_unlikely((rc? LOG_NOTICE : LOG_DEBUG), rc 110 daemons/attrd/pacemaker-attrd.c pcmk_strerror(rc), (char *) user_data, rc); rc 150 daemons/attrd/pacemaker-attrd.c int rc = -ENOTCONN; rc 164 daemons/attrd/pacemaker-attrd.c rc = the_cib->cmds->signon(the_cib, T_ATTRD, cib_command); rc 166 daemons/attrd/pacemaker-attrd.c } while(rc != pcmk_ok && attempts < max_retry); rc 168 daemons/attrd/pacemaker-attrd.c if (rc != pcmk_ok) { rc 170 daemons/attrd/pacemaker-attrd.c pcmk_strerror(rc), rc); rc 176 daemons/attrd/pacemaker-attrd.c rc = the_cib->cmds->set_connection_dnotify(the_cib, attrd_cib_destroy_cb); rc 177 daemons/attrd/pacemaker-attrd.c if (rc != pcmk_ok) { rc 182 daemons/attrd/pacemaker-attrd.c rc = the_cib->cmds->add_notify_callback(the_cib, T_CIB_REPLACE_NOTIFY, attrd_cib_replaced_cb); rc 183 daemons/attrd/pacemaker-attrd.c if(rc != pcmk_ok) { rc 188 daemons/attrd/pacemaker-attrd.c rc = the_cib->cmds->add_notify_callback(the_cib, T_CIB_DIFF_NOTIFY, attrd_cib_updated_cb); rc 189 daemons/attrd/pacemaker-attrd.c if (rc != pcmk_ok) { rc 403 daemons/based/based_callbacks.c int rc = pcmk__ipc_send_xml(client_obj, rid, notify_src, rc 407 daemons/based/based_callbacks.c if (rc != pcmk_rc_ok) { rc 410 daemons/based/based_callbacks.c client_obj->name, pcmk_rc_str(rc), rc); rc 925 daemons/based/based_callbacks.c int rc = pcmk_ok; rc 959 daemons/based/based_callbacks.c rc = cib_get_operation_id(op, &call_type); rc 960 daemons/based/based_callbacks.c if (rc != pcmk_ok) { rc 962 daemons/based/based_callbacks.c crm_err("Pre-processing of command failed: %s", pcmk_strerror(rc)); rc 1009 daemons/based/based_callbacks.c rc = cib_status; rc 1019 daemons/based/based_callbacks.c crm_xml_add_int(op_reply, F_CIB_RC, rc); rc 1032 daemons/based/based_callbacks.c rc = cib_process_command(request, &op_reply, &result_diff, privileged); rc 1038 daemons/based/based_callbacks.c switch (rc) { rc 1051 daemons/based/based_callbacks.c } else if (rc != pcmk_ok) { rc 1057 daemons/based/based_callbacks.c op, section ? section : "'all'", pcmk_strerror(rc), rc, rc 1087 daemons/based/based_callbacks.c rc == pcmk_ok && result_diff != NULL && !(call_options & cib_inhibit_bcast)) { rc 1119 daemons/based/based_callbacks.c } else if (rc != pcmk_ok) { rc 1120 daemons/based/based_callbacks.c crm_trace("Request not broadcast: call failed: %s", pcmk_strerror(rc)); rc 1165 daemons/based/based_callbacks.c int rc = pcmk_ok; rc 1188 daemons/based/based_callbacks.c rc = cib_get_operation_id(op, &call_type); rc 1190 daemons/based/based_callbacks.c if (rc == pcmk_ok && privileged == FALSE) { rc 1191 daemons/based/based_callbacks.c rc = cib_op_can_run(call_type, call_options, privileged, global_update); rc 1195 daemons/based/based_callbacks.c if (rc == pcmk_ok) { rc 1196 daemons/based/based_callbacks.c rc = rc2; rc 1199 daemons/based/based_callbacks.c if (rc != pcmk_ok) { rc 1200 daemons/based/based_callbacks.c crm_trace("Call setup failed: %s", pcmk_strerror(rc)); rc 1204 daemons/based/based_callbacks.c rc = cib_perform_op(op, call_options, cib_op_func(call_type), TRUE, rc 1224 daemons/based/based_callbacks.c if (rc == pcmk_ok) { rc 1241 daemons/based/based_callbacks.c rc = cib_perform_op(op, call_options, cib_op_func(call_type), FALSE, rc 1267 daemons/based/based_callbacks.c if (rc == pcmk_ok && !pcmk_is_set(call_options, cib_dryrun)) { rc 1274 daemons/based/based_callbacks.c rc = activateCibXml(result_cib, config_changed, op); rc 1276 daemons/based/based_callbacks.c crm_element_value(current_cib, XML_ATTR_NUMUPDATES), rc); rc 1279 daemons/based/based_callbacks.c if (rc == pcmk_ok && cib_internal_config_changed(*cib_diff)) { rc 1307 daemons/based/based_callbacks.c } else if (rc == -pcmk_err_schema_validation) { rc 1318 daemons/based/based_callbacks.c crm_trace("Not activating %d %d %s", rc, rc 1331 daemons/based/based_callbacks.c cib_diff_notify(call_options, client, call_id, op, input, rc, *cib_diff); rc 1337 daemons/based/based_callbacks.c cib_replace_notify(origin, the_cib, rc, *cib_diff); rc 1351 daemons/based/based_callbacks.c crm_xml_add_int(*reply, F_CIB_RC, rc); rc 1373 daemons/based/based_callbacks.c return rc; rc 282 daemons/based/based_common.c if (rc == pcmk_ok rc 103 daemons/based/based_io.c int rc = 0; rc 109 daemons/based/based_io.c rc = errno; rc 110 daemons/based/based_io.c crm_trace("%s - stat failed: %s (%d)", a->d_name, pcmk_strerror(rc), rc); rc 111 daemons/based/based_io.c rc = 0; rc 139 daemons/based/based_io.c rc = 1; rc 143 daemons/based/based_io.c return rc; rc 149 daemons/based/based_io.c int rc = 0; rc 169 daemons/based/based_io.c rc = 1; rc 171 daemons/based/based_io.c rc = -1; rc 176 daemons/based/based_io.c b[0]->d_name, (unsigned long)b_age, rc); rc 177 daemons/based/based_io.c return rc; rc 213 daemons/based/based_messages.c int rc = pcmk_ok; rc 241 daemons/based/based_messages.c rc = update_validation(&scratch, &new_version, 0, TRUE, TRUE); rc 245 daemons/based/based_messages.c rc = pcmk_ok; rc 257 daemons/based/based_messages.c rc = cib_process_upgrade( rc 266 daemons/based/based_messages.c } else if(rc == pcmk_ok) { rc 267 daemons/based/based_messages.c rc = -pcmk_err_schema_unchanged; rc 270 daemons/based/based_messages.c if (rc != pcmk_ok) { rc 275 daemons/based/based_messages.c CRM_XS " rc=%d peer=%s", host, pcmk_strerror(rc), rc, rc 288 daemons/based/based_messages.c crm_xml_add_int(up, F_CIB_UPGRADE_RC, rc); rc 298 daemons/based/based_messages.c return rc; rc 314 daemons/based/based_messages.c int rc = pcmk_ok; rc 344 daemons/based/based_messages.c rc = cib_process_diff(op, options, section, req, input, existing_cib, result_cib, answer); rc 345 daemons/based/based_messages.c crm_trace("result: %s (%d), %s", pcmk_strerror(rc), rc, cib_is_master?"master":"slave"); rc 347 daemons/based/based_messages.c if (rc == -pcmk_err_diff_resync && cib_is_master == FALSE) { rc 352 daemons/based/based_messages.c } else if (rc == -pcmk_err_diff_resync) { rc 353 daemons/based/based_messages.c rc = -pcmk_err_diff_failed; rc 358 daemons/based/based_messages.c } else if ((rc != pcmk_ok) && !cib_is_master && cib_legacy_mode()) { rc 360 daemons/based/based_messages.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 367 daemons/based/based_messages.c return rc; rc 376 daemons/based/based_messages.c int rc = rc 378 daemons/based/based_messages.c if (rc == pcmk_ok && pcmk__str_eq(tag, XML_TAG_CIB, pcmk__str_casei)) { rc 381 daemons/based/based_messages.c return rc; rc 115 daemons/based/based_notify.c int rc = pcmk__ipc_prepare_iov(0, xml, 0, &iov, &bytes); rc 117 daemons/based/based_notify.c if (rc == pcmk_rc_ok) { rc 125 daemons/based/based_notify.c pcmk_rc_str(rc), rc); rc 89 daemons/based/based_remote.c int rc; rc 142 daemons/based/based_remote.c rc = setsockopt(*ssock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); rc 143 daemons/based/based_remote.c if (rc < 0) { rc 285 daemons/based/based_remote.c int rc; rc 307 daemons/based/based_remote.c rc = pcmk__set_nonblocking(csock); rc 308 daemons/based/based_remote.c if (rc != pcmk_rc_ok) { rc 310 daemons/based/based_remote.c pcmk_rc_str(rc), rc); rc 471 daemons/based/based_remote.c int rc; rc 482 daemons/based/based_remote.c int rc = pcmk__read_handshake_data(client); rc 484 daemons/based/based_remote.c if (rc == EAGAIN) { rc 489 daemons/based/based_remote.c } else if (rc != pcmk_rc_ok) { rc 507 daemons/based/based_remote.c rc = pcmk__read_remote_message(client->remote, timeout); rc 552 daemons/based/based_remote.c if (rc == ENOTCONN) { rc 630 daemons/based/based_remote.c int rc = 0; rc 648 daemons/based/based_remote.c rc = pam_start(pam_name, user, &p_conv, &pam_h); rc 649 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 650 daemons/based/based_remote.c crm_err("Could not initialize PAM: %s (%d)", pam_strerror(pam_h, rc), rc); rc 654 daemons/based/based_remote.c rc = pam_authenticate(pam_h, 0); rc 655 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 656 daemons/based/based_remote.c crm_err("Authentication failed for %s: %s (%d)", user, pam_strerror(pam_h, rc), rc); rc 665 daemons/based/based_remote.c rc = pam_get_item(pam_h, PAM_USER, &p_user); rc 666 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 667 daemons/based/based_remote.c crm_err("Internal PAM error: %s (%d)", pam_strerror(pam_h, rc), rc); rc 679 daemons/based/based_remote.c rc = pam_acct_mgmt(pam_h, 0); rc 680 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 681 daemons/based/based_remote.c crm_err("Access denied: %s (%d)", pam_strerror(pam_h, rc), rc); rc 687 daemons/based/based_remote.c pam_end(pam_h, rc); rc 61 daemons/based/cibmon.c int rc = pcmk_ok; rc 132 daemons/based/cibmon.c rc = cib->cmds->signon(cib, crm_system_name, cib_query); rc 134 daemons/based/cibmon.c } while (rc == -ENOTCONN && attempts++ < max_failures); rc 136 daemons/based/cibmon.c if (rc != pcmk_ok) { rc 137 daemons/based/cibmon.c crm_err("Signon to CIB failed: %s", pcmk_strerror(rc)); rc 142 daemons/based/cibmon.c rc = cib->cmds->set_connection_dnotify(cib, cib_connection_destroy); rc 143 daemons/based/cibmon.c if (rc != pcmk_ok) { rc 144 daemons/based/cibmon.c crm_err("Failed to set dnotify callback: %s", pcmk_strerror(rc)); rc 149 daemons/based/cibmon.c rc = cib->cmds->add_notify_callback(cib, T_CIB_DIFF_NOTIFY, cibmon_diff); rc 150 daemons/based/cibmon.c if (rc != pcmk_ok) { rc 151 daemons/based/cibmon.c crm_err("Failed to set diff callback: %s", pcmk_strerror(rc)); rc 192 daemons/based/cibmon.c int rc = -1; rc 205 daemons/based/cibmon.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 209 daemons/based/cibmon.c if (rc < pcmk_ok) { rc 211 daemons/based/cibmon.c do_crm_log(log_level, "[%s] %s ABORTED: %s", event, op, pcmk_strerror(rc)); rc 226 daemons/based/cibmon.c rc = cib_process_diff(op, cib_force_diff, NULL, NULL, diff, cib_last, &cib_copy, NULL); rc 228 daemons/based/cibmon.c if (rc != pcmk_ok) { rc 229 daemons/based/cibmon.c crm_debug("Update didn't apply, requesting full copy: %s", pcmk_strerror(rc)); rc 236 daemons/based/cibmon.c rc = cib->cmds->query(cib, NULL, &cib_copy, cib_scope_local | cib_sync_call); rc 239 daemons/based/cibmon.c if(rc == -EACCES) { rc 91 daemons/based/pacemaker-based.c int rc = 0; rc 126 daemons/based/pacemaker-based.c rc = setgid(pwentry->pw_gid); rc 127 daemons/based/pacemaker-based.c if (rc < 0) { rc 132 daemons/based/pacemaker-based.c rc = initgroups(CRM_DAEMON_USER, pwentry->pw_gid); rc 133 daemons/based/pacemaker-based.c if (rc < 0) { rc 138 daemons/based/pacemaker-based.c rc = setuid(pwentry->pw_uid); rc 139 daemons/based/pacemaker-based.c if (rc < 0) { rc 137 daemons/based/pacemaker-based.h xmlNode *cib_construct_reply(xmlNode *request, xmlNode *output, int rc); rc 33 daemons/controld/controld_attrd.c gboolean is_remote, char command, int rc) rc 43 daemons/controld/controld_attrd.c host, when, pcmk_rc_str(rc), rc); rc 49 daemons/controld/controld_attrd.c node_type, host, when, pcmk_rc_str(rc), rc); rc 60 daemons/controld/controld_attrd.c pcmk_rc_str(rc), rc); rc 83 daemons/controld/controld_attrd.c int rc; rc 95 daemons/controld/controld_attrd.c rc = pcmk_rc_ok; rc 104 daemons/controld/controld_attrd.c rc = errno; rc 107 daemons/controld/controld_attrd.c attempt, pcmk_rc_str(rc), rc); rc 110 daemons/controld/controld_attrd.c if (rc == pcmk_rc_ok) { rc 112 daemons/controld/controld_attrd.c rc = pcmk__node_attr_request(attrd_ipc, command, host, name, rc 119 daemons/controld/controld_attrd.c rc = pcmk__node_attr_request_clear(attrd_ipc, host, name, rc 124 daemons/controld/controld_attrd.c attempt, pcmk_rc_str(rc), rc); rc 127 daemons/controld/controld_attrd.c if (rc == pcmk_rc_ok) { rc 131 daemons/controld/controld_attrd.c } else if ((rc != EAGAIN) && (rc != EALREADY)) { rc 147 daemons/controld/controld_attrd.c if (rc != pcmk_rc_ok) { rc 148 daemons/controld/controld_attrd.c log_attrd_error(host, name, value, is_remote_node, command, rc); rc 81 daemons/controld/controld_based.c int rc = pcmk_ok; rc 88 daemons/controld/controld_based.c rc = fsa_cib_conn->cmds->signon(fsa_cib_conn, CRM_SYSTEM_CRMD, cib_command_nonblocking); rc 90 daemons/controld/controld_based.c if (rc != pcmk_ok) { rc 93 daemons/controld/controld_based.c rc = fsa_cib_conn->cmds->signon(fsa_cib_conn, CRM_SYSTEM_CRMD, cib_command_nonblocking); rc 96 daemons/controld/controld_based.c if (rc != pcmk_ok) { rc 97 daemons/controld/controld_based.c crm_info("Could not connect to the CIB manager: %s", pcmk_strerror(rc)); rc 171 daemons/controld/controld_based.c cib_delete_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 176 daemons/controld/controld_based.c if (rc == 0) { rc 180 daemons/controld/controld_based.c desc, call_id, pcmk_strerror(rc), rc); rc 291 daemons/controld/controld_based.c int rc = pcmk_rc_ok; rc 304 daemons/controld/controld_based.c rc = cib_internal_op(fsa_cib_conn, CIB_OP_DELETE, NULL, xpath, NULL, rc 307 daemons/controld/controld_based.c if (rc < 0) { rc 308 daemons/controld/controld_based.c rc = pcmk_legacy2rc(rc); rc 312 daemons/controld/controld_based.c pcmk_rc_str(rc), rc); rc 315 daemons/controld/controld_based.c return rc; rc 328 daemons/controld/controld_based.c desc, rc, xpath); rc 329 daemons/controld/controld_based.c fsa_register_cib_callback(rc, FALSE, desc, cib_delete_callback); rc 681 daemons/controld/controld_control.c config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 689 daemons/controld/controld_control.c if (rc != pcmk_ok) { rc 692 daemons/controld/controld_control.c crm_err("Local CIB query resulted in an error: %s", pcmk_strerror(rc)); rc 695 daemons/controld/controld_control.c if (rc == -EACCES || rc == -pcmk_err_schema_validation) { rc 137 daemons/controld/controld_election.c enum election_result rc = 0; rc 147 daemons/controld/controld_election.c rc = election_count_vote(fsa_election, vote->msg, cur_state != S_STARTING); rc 148 daemons/controld/controld_election.c switch(rc) { rc 167 daemons/controld/controld_election.c crm_trace("Election message resulted in state %d", rc); rc 172 daemons/controld/controld_election.c feature_update_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 174 daemons/controld/controld_election.c if (rc != pcmk_ok) { rc 178 daemons/controld/controld_election.c pcmk_strerror(rc), rc); rc 190 daemons/controld/controld_election.c int rc = pcmk_ok; rc 206 daemons/controld/controld_election.c fsa_cib_update(XML_TAG_CIB, cib, cib_quorum_override, rc, NULL); rc 207 daemons/controld/controld_election.c fsa_register_cib_callback(rc, FALSE, NULL, feature_update_callback); rc 31 daemons/controld/controld_execd.c int rc; rc 209 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, rc 274 daemons/controld/controld_execd.c op->rc = PCMK_OCF_OK; rc 393 daemons/controld/controld_execd.c gboolean rc = TRUE; rc 444 daemons/controld/controld_execd.c rc = FALSE; rc 446 daemons/controld/controld_execd.c return rc; rc 450 daemons/controld/controld_execd.c return rc; rc 490 daemons/controld/controld_execd.c return rc; rc 712 daemons/controld/controld_execd.c int rc = lrm_state_get_metadata(lrm_state, rsc->standard, rc 716 daemons/controld/controld_execd.c if (rc != pcmk_ok) { rc 754 daemons/controld/controld_execd.c entry->last->interval_ms, entry->last->rc); rc 755 daemons/controld/controld_execd.c if (entry->last->rc == PCMK_OCF_OK && pcmk__str_eq(entry->last->op_type, CRMD_ACTION_STOP, pcmk__str_casei)) { rc 758 daemons/controld/controld_execd.c } else if (entry->last->rc == PCMK_OCF_OK rc 763 daemons/controld/controld_execd.c } else if (entry->last->rc == PCMK_OCF_NOT_RUNNING) { rc 767 daemons/controld/controld_execd.c && (entry->last->rc == PCMK_OCF_NOT_CONFIGURED)) { rc 862 daemons/controld/controld_execd.c controld_rc2event(lrmd_event_data_t *event, int rc) rc 864 daemons/controld/controld_execd.c switch (rc) { rc 866 daemons/controld/controld_execd.c event->rc = PCMK_OCF_OK; rc 870 daemons/controld/controld_execd.c event->rc = PCMK_OCF_INSUFFICIENT_PRIV; rc 874 daemons/controld/controld_execd.c event->rc = PCMK_OCF_UNKNOWN_ERROR; rc 906 daemons/controld/controld_execd.c notify_deleted(lrm_state_t * lrm_state, ha_msg_input_t * input, const char *rsc_id, int rc) rc 914 daemons/controld/controld_execd.c ((rc == pcmk_ok)? "" : " not")); rc 916 daemons/controld/controld_execd.c controld_rc2event(op, pcmk_legacy2rc(rc)); rc 929 daemons/controld/controld_execd.c notify_deleted(event->lrm_state, op->input, event->rsc, event->rc); rc 951 daemons/controld/controld_execd.c GHashTableIter * rsc_gIter, int rc, const char *user_name) rc 957 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 972 daemons/controld/controld_execd.c notify_deleted(lrm_state, input, rsc_id, rc); rc 975 daemons/controld/controld_execd.c event.rc = rc; rc 1140 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 1172 daemons/controld/controld_execd.c rc = lrm_state_cancel(lrm_state, pending->rsc_id, pending->op_type, rc 1174 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 1283 daemons/controld/controld_execd.c int rc; rc 1286 daemons/controld/controld_execd.c rc = lrm_state_register_rsc(lrm_state, id, class, provider, type, rc 1288 daemons/controld/controld_execd.c if (rc != pcmk_ok) { rc 1293 daemons/controld/controld_execd.c id, lrm_state->node_name, pcmk_strerror(rc), rc); rc 1302 daemons/controld/controld_execd.c return rc; rc 1320 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 1326 daemons/controld/controld_execd.c rc = lrm_state_unregister_rsc(lrm_state, id, 0); rc 1329 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 1331 daemons/controld/controld_execd.c } else if (rc == -EINPROGRESS) { rc 1346 daemons/controld/controld_execd.c (user? user : ""), pcmk_strerror(rc), rc); rc 1349 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, request, id, gIter, rc, user); rc 1383 daemons/controld/controld_execd.c op->rc = op_exitcode; rc 1441 daemons/controld/controld_execd.c int op_status, enum ocf_exitcode rc) rc 1451 daemons/controld/controld_execd.c crm_element_value(action, XML_LRM_ATTR_TASK_KEY), rc, rc 1458 daemons/controld/controld_execd.c ID(xml_rsc), rc, target_node); rc 1467 daemons/controld/controld_execd.c fake_op_status(lrm_state, op, op_status, rc); rc 1471 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, target_node); rc 1539 daemons/controld/controld_execd.c op->rc = PCMK_OCF_OK; rc 1555 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 1558 daemons/controld/controld_execd.c fsa_cib_update(XML_CIB_TAG_STATUS, fragment, cib_quorum_override, rc, user_name); rc 1559 daemons/controld/controld_execd.c crm_info("Forced a local resource history refresh: call=%d", rc); rc 1714 daemons/controld/controld_execd.c op->rc = PCMK_OCF_INSUFFICIENT_PRIV; rc 1716 daemons/controld/controld_execd.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 1816 daemons/controld/controld_execd.c int rc; rc 1821 daemons/controld/controld_execd.c rc = get_lrm_resource(lrm_state, xml_rsc, create_rsc, &rsc); rc 1822 daemons/controld/controld_execd.c if (rc == -ENOTCONN) { rc 1828 daemons/controld/controld_execd.c } else if ((rc < 0) && !create_rsc) { rc 1835 daemons/controld/controld_execd.c rc, pcmk_strerror(rc), ID(input->xml)); rc 1840 daemons/controld/controld_execd.c } else if (rc == -EINVAL) { rc 1848 daemons/controld/controld_execd.c } else if (rc < 0) { rc 1852 daemons/controld/controld_execd.c ID(xml_rsc), pcmk_strerror(rc), rc); rc 1954 daemons/controld/controld_execd.c op->rc = -1; rc 2205 daemons/controld/controld_execd.c op->rc = PCMK_OCF_UNKNOWN; rc 2301 daemons/controld/controld_execd.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 2372 daemons/controld/controld_execd.c op->rc = target_rc; rc 2389 daemons/controld/controld_execd.c cib_rsc_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 2391 daemons/controld/controld_execd.c switch (rc) { rc 2395 daemons/controld/controld_execd.c crm_trace("Resource update %d complete: rc=%d", call_id, rc); rc 2398 daemons/controld/controld_execd.c crm_warn("Resource update %d failed: (rc=%d) %s", call_id, rc, pcmk_strerror(rc)); rc 2417 daemons/controld/controld_execd.c if (!strcmp(op->op_type, RSC_STOP) && (op->rc == PCMK_OCF_OK)) { rc 2420 daemons/controld/controld_execd.c if (!strcmp(op->op_type, RSC_STATUS) && (op->rc == PCMK_OCF_NOT_RUNNING)) { rc 2438 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 2460 daemons/controld/controld_execd.c rc = -EINVAL; rc 2527 daemons/controld/controld_execd.c fsa_cib_update(XML_CIB_TAG_STATUS, update, call_opt, rc, NULL); rc 2529 daemons/controld/controld_execd.c if (rc > 0) { rc 2530 daemons/controld/controld_execd.c last_resource_update = rc; rc 2535 daemons/controld/controld_execd.c rc, op->op_type, op->interval_ms, op->rsc_id); rc 2536 daemons/controld/controld_execd.c fsa_register_cib_callback(rc, FALSE, NULL, cib_rsc_callback); rc 2540 daemons/controld/controld_execd.c return rc; rc 2622 daemons/controld/controld_execd.c op->rc = PCMK_OCF_CONNECTION_DIED; rc 2626 daemons/controld/controld_execd.c op->rc = CRM_DIRECT_NACK_RC; rc 2673 daemons/controld/controld_execd.c switch(op->rc) { rc 2818 daemons/controld/controld_execd.c services_ocf_exitcode_str(op->rc), op->rc, rc 2846 daemons/controld/controld_execd.c if (op->rc) { rc 2857 daemons/controld/controld_execd.c } else if (rsc && (op->rc == PCMK_OCF_OK)) { rc 76 daemons/controld/controld_execd_state.c event.rc = PCMK_OCF_UNKNOWN_ERROR; rc 448 daemons/controld/controld_execd_state.c remote_config_check(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 450 daemons/controld/controld_execd_state.c if (rc != pcmk_ok) { rc 451 daemons/controld/controld_execd_state.c crm_err("Query resulted in an error: %s", pcmk_strerror(rc)); rc 453 daemons/controld/controld_execd_state.c if (rc == -EACCES || rc == -pcmk_err_schema_validation) { rc 490 daemons/controld/controld_execd_state.c int rc = fsa_cib_conn->cmds->query(fsa_cib_conn, XML_CIB_TAG_CRMCONFIG, NULL, cib_scope_local); rc 491 daemons/controld/controld_execd_state.c fsa_cib_conn->cmds->register_callback_full(fsa_cib_conn, rc, 10, FALSE, lrmd, rc 158 daemons/controld/controld_fencing.c cib_fencing_updated(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 161 daemons/controld/controld_fencing.c if (rc < pcmk_ok) { rc 163 daemons/controld/controld_fencing.c call_id, (char *)user_data, pcmk_strerror(rc), rc); rc 175 daemons/controld/controld_fencing.c int rc = pcmk_ok; rc 224 daemons/controld/controld_fencing.c rc = fsa_cib_conn->cmds->update(fsa_cib_conn, XML_CIB_TAG_STATUS, node_state, rc 228 daemons/controld/controld_fencing.c crm_debug("Sending fencing update %d for %s", rc, target); rc 229 daemons/controld/controld_fencing.c fsa_register_cib_callback(rc, FALSE, strdup(target), cib_fencing_updated); rc 591 daemons/controld/controld_fencing.c int rc = pcmk_ok; rc 608 daemons/controld/controld_fencing.c rc = stonith_api_connect_retry(stonith_api, crm_system_name, 30); rc 609 daemons/controld/controld_fencing.c if (rc != pcmk_ok) { rc 611 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 615 daemons/controld/controld_fencing.c rc = stonith_api->cmds->connect(stonith_api, crm_system_name, NULL); rc 616 daemons/controld/controld_fencing.c if (rc != pcmk_ok) { rc 619 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 623 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 629 daemons/controld/controld_fencing.c if (rc == pcmk_ok) { rc 718 daemons/controld/controld_fencing.c int rc = data->rc; rc 723 daemons/controld/controld_fencing.c pcmk_strerror(rc), rc); rc 750 daemons/controld/controld_fencing.c if (rc == pcmk_ok) { rc 784 daemons/controld/controld_fencing.c call_id, target, pcmk_strerror(rc)); rc 789 daemons/controld/controld_fencing.c if (rc == -ENODEV) { rc 828 daemons/controld/controld_fencing.c int rc = 0; rc 863 daemons/controld/controld_fencing.c rc = fence_with_delay(target, type, priority_delay); rc 866 daemons/controld/controld_fencing.c stonith_api->cmds->register_callback(stonith_api, rc, rc 153 daemons/controld/controld_fsa.c input->rsc_id, input->call_id, input->rc, rc 20 daemons/controld/controld_join_client.c void join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 152 daemons/controld/controld_join_client.c join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 165 daemons/controld/controld_join_client.c if(rc != pcmk_ok || output == NULL) { rc 167 daemons/controld/controld_join_client.c join_id, pcmk_strerror(rc), rc); rc 25 daemons/controld/controld_join_dc.c void finalize_sync_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 412 daemons/controld/controld_join_dc.c int rc = pcmk_ok; rc 467 daemons/controld/controld_join_dc.c rc = fsa_cib_conn->cmds->sync_from(fsa_cib_conn, sync_from, NULL, cib_quorum_override); rc 468 daemons/controld/controld_join_dc.c fsa_register_cib_callback(rc, FALSE, sync_from, finalize_sync_callback); rc 472 daemons/controld/controld_join_dc.c finalize_sync_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 474 daemons/controld/controld_join_dc.c CRM_LOG_ASSERT(-EPERM != rc); rc 476 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 477 daemons/controld/controld_join_dc.c do_crm_log(((rc == -pcmk_err_old_data)? LOG_WARNING : LOG_ERR), rc 479 daemons/controld/controld_join_dc.c (char *) user_data, current_join_id, pcmk_strerror(rc)); rc 509 daemons/controld/controld_join_dc.c join_update_complete_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 513 daemons/controld/controld_join_dc.c if (rc == pcmk_ok) { rc 521 daemons/controld/controld_join_dc.c current_join_id, call_id, pcmk_strerror(rc)); rc 190 daemons/controld/controld_lrm.h void controld_rc2event(lrmd_event_data_t *event, int rc); rc 94 daemons/controld/controld_membership.c crmd_node_update_complete(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 100 daemons/controld/controld_membership.c if (rc == pcmk_ok) { rc 109 daemons/controld/controld_membership.c crm_err("Node update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 188 daemons/controld/controld_membership.c remove_conflicting_node_callback(xmlNode * msg, int call_id, int rc, rc 193 daemons/controld/controld_membership.c do_crm_log_unlikely(rc == 0 ? LOG_DEBUG : LOG_NOTICE, rc 195 daemons/controld/controld_membership.c node_uuid, pcmk_strerror(rc), rc); rc 199 daemons/controld/controld_membership.c search_conflicting_node_callback(xmlNode * msg, int call_id, int rc, rc 205 daemons/controld/controld_membership.c if (rc != pcmk_ok) { rc 206 daemons/controld/controld_membership.c if (rc != -ENXIO) { rc 208 daemons/controld/controld_membership.c new_node_uuid, pcmk_strerror(rc), rc); rc 279 daemons/controld/controld_membership.c node_list_update_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 288 daemons/controld/controld_membership.c } else if(rc < pcmk_ok) { rc 289 daemons/controld/controld_membership.c crm_err("Node update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 380 daemons/controld/controld_membership.c cib_quorum_update_complete(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 384 daemons/controld/controld_membership.c if (rc == pcmk_ok) { rc 388 daemons/controld/controld_membership.c crm_err("Quorum update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 667 daemons/controld/controld_messages.c int rc = pcmk_rc_ok; rc 682 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rc 685 daemons/controld/controld_messages.c if (rc == pcmk_rc_ok) { rc 686 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rc 707 daemons/controld/controld_messages.c ((rc == pcmk_rc_ok)? "" : " not")); rc 714 daemons/controld/controld_messages.c controld_rc2event(op, rc); rc 52 daemons/controld/controld_remote_ra.c int rc; rc 299 daemons/controld/controld_remote_ra.c if (cmd->rc != PCMK_OCF_OK) { rc 362 daemons/controld/controld_remote_ra.c op.rc = cmd->rc; rc 366 daemons/controld/controld_remote_ra.c if (cmd->reported_success && cmd->rc != PCMK_OCF_OK) { rc 413 daemons/controld/controld_remote_ra.c int rc = -1; rc 425 daemons/controld/controld_remote_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->remaining_timeout); rc 428 daemons/controld/controld_remote_ra.c if (rc != 0) { rc 429 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 475 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 511 daemons/controld/controld_remote_ra.c op.rc = PCMK_OCF_OK; rc 531 daemons/controld/controld_remote_ra.c services_ocf_exitcode_str(op->rc), op->rc, rc 609 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_INVALID_PARAM; rc 621 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 626 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_OK; rc 646 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_OK; rc 665 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 722 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_OK; rc 755 daemons/controld/controld_remote_ra.c int rc = 0; rc 779 daemons/controld/controld_remote_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->timeout); rc 780 daemons/controld/controld_remote_ra.c if (rc == 0) { rc 789 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 797 daemons/controld/controld_remote_ra.c rc = lrm_state_poke_connection(lrm_state); rc 798 daemons/controld/controld_remote_ra.c if (rc < 0) { rc 799 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 803 daemons/controld/controld_remote_ra.c rc = -1; rc 805 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_NOT_RUNNING; rc 808 daemons/controld/controld_remote_ra.c if (rc == 0) { rc 835 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_OK; rc 840 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_OK; rc 949 daemons/controld/controld_remote_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 1092 daemons/controld/controld_remote_ra.c int rc = 0; rc 1098 daemons/controld/controld_remote_ra.c rc = -EINVAL; rc 1104 daemons/controld/controld_remote_ra.c rc = -EINVAL; rc 1113 daemons/controld/controld_remote_ra.c rc = cmd->call_id; rc 1141 daemons/controld/controld_remote_ra.c return rc; rc 54 daemons/controld/controld_schedulerd.c save_cib_contents(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 62 daemons/controld/controld_schedulerd.c if (rc == pcmk_ok) { rc 89 daemons/controld/controld_schedulerd.c int rc = pcmk_ok; rc 105 daemons/controld/controld_schedulerd.c rc = fsa_cib_conn->cmds->query(fsa_cib_conn, NULL, NULL, cib_scope_local); rc 106 daemons/controld/controld_schedulerd.c fsa_register_cib_callback(rc, FALSE, uuid_str, save_cib_contents); rc 191 daemons/controld/controld_schedulerd.c static void do_pe_invoke_callback(xmlNode *msg, int call_id, int rc, rc 408 daemons/controld/controld_schedulerd.c do_pe_invoke_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 413 daemons/controld/controld_schedulerd.c if (rc != pcmk_ok) { rc 415 daemons/controld/controld_schedulerd.c CRM_XS " rc=%d call=%d", pcmk_strerror(rc), rc, call_id); rc 459 daemons/controld/controld_schedulerd.c rc = pe_subsystem_send(cmd); rc 460 daemons/controld/controld_schedulerd.c if (rc < 0) { rc 462 daemons/controld/controld_schedulerd.c pcmk_strerror(rc), rc); rc 100 daemons/controld/controld_te_actions.c gboolean rc = TRUE; rc 155 daemons/controld/controld_te_actions.c rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_crmd, cmd, TRUE); rc 159 daemons/controld/controld_te_actions.c if (rc == FALSE) { rc 187 daemons/controld/controld_te_actions.c int rc = pcmk_ok; rc 256 daemons/controld/controld_te_actions.c rc = fsa_cib_conn->cmds->update(fsa_cib_conn, XML_CIB_TAG_STATUS, state, call_options); rc 257 daemons/controld/controld_te_actions.c fsa_register_cib_callback(rc, FALSE, NULL, cib_action_updated); rc 261 daemons/controld/controld_te_actions.c rc, action->id, task_uuid, target); rc 277 daemons/controld/controld_te_actions.c gboolean rc = TRUE; rc 347 daemons/controld/controld_te_actions.c rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_lrmd, cmd, TRUE); rc 355 daemons/controld/controld_te_actions.c if (rc == FALSE) { rc 554 daemons/controld/controld_te_callbacks.c int rc = -EINVAL; rc 560 daemons/controld/controld_te_callbacks.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 566 daemons/controld/controld_te_callbacks.c } else if (rc < pcmk_ok) { rc 567 daemons/controld/controld_te_callbacks.c crm_trace("Filter rc=%d (%s)", rc, pcmk_strerror(rc)); rc 658 daemons/controld/controld_te_callbacks.c cib_action_updated(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 660 daemons/controld/controld_te_callbacks.c if (rc < pcmk_ok) { rc 661 daemons/controld/controld_te_callbacks.c crm_err("Update %d FAILED: %s", call_id, pcmk_strerror(rc)); rc 111 daemons/controld/controld_te_events.c update_failcount(xmlNode * event, const char *event_node_uuid, int rc, rc 125 daemons/controld/controld_te_events.c if (rc == target_rc) { rc 129 daemons/controld/controld_te_events.c id, rc, on_uname); rc 174 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); rc 334 daemons/controld/controld_te_events.c int rc = -1; // Actual result rc 365 daemons/controld/controld_te_events.c crm_element_value_int(event, XML_LRM_ATTR_RC, &rc); rc 368 daemons/controld/controld_te_events.c rc = pcmk__effective_rc(rc); rc 445 daemons/controld/controld_te_events.c } else if (rc != target_rc) { rc 473 daemons/controld/controld_te_events.c } else if (desc && update_failcount(event, event_node, rc, target_rc, rc 479 daemons/controld/controld_te_events.c services_ocf_exitcode_str(rc), rc 480 daemons/controld/controld_te_events.c target_rc, rc, callid, desc); rc 486 daemons/controld/controld_te_events.c desc, rc, target_rc, callid); rc 488 daemons/controld/controld_te_events.c } else if (rc == target_rc) { rc 492 daemons/controld/controld_te_events.c services_ocf_exitcode_str(rc), rc, callid); rc 495 daemons/controld/controld_te_events.c update_failcount(event, event_node, rc, target_rc, rc 501 daemons/controld/controld_te_events.c services_ocf_exitcode_str(rc), rc 502 daemons/controld/controld_te_events.c target_rc, rc, callid); rc 155 daemons/controld/controld_throttle.c int rc = errno; rc 157 daemons/controld/controld_throttle.c crm_warn("Couldn't read %s: %s (%d)", loadfile, pcmk_strerror(rc), rc); rc 165 daemons/controld/controld_throttle.c int rc = 0, pid = 0, ppid = 0, pgrp = 0, session = 0, tty_nr = 0, tpgid = 0; rc 168 daemons/controld/controld_throttle.c rc = sscanf(buffer, "%d %[^ ] %c %d %d %d %d %d %lu %lu %lu %lu %lu %lu %lu", rc 174 daemons/controld/controld_throttle.c if(rc != 15) { rc 175 daemons/controld/controld_throttle.c crm_err("Only %d of 15 fields found in %s", rc, loadfile); rc 222 daemons/controld/controld_throttle.c int rc = errno; rc 223 daemons/controld/controld_throttle.c crm_warn("Couldn't read %s: %s (%d)", loadfile, pcmk_strerror(rc), rc); rc 21 daemons/controld/controld_transition.c global_cib_callback(const xmlNode * msg, int callid, int rc, xmlNode * output) rc 40 daemons/controld/controld_transition.h void cib_action_updated(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 172 daemons/execd/cts-exec-helper.c services_ocf_exitcode_str(event->rc), \ rc 195 daemons/execd/cts-exec-helper.c if (event->op_status == 0 && event->rc == 0) { rc 199 daemons/execd/cts-exec-helper.c event->rc, services_lrm_status_str(event->op_status))); rc 220 daemons/execd/cts-exec-helper.c int rc = event->connection_rc; rc 227 daemons/execd/cts-exec-helper.c if (!rc) { rc 243 daemons/execd/cts-exec-helper.c int rc = 0; rc 247 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->connect_async(lrmd_conn, "pacemaker-execd", 3000); rc 249 daemons/execd/cts-exec-helper.c if (!rc) { rc 262 daemons/execd/cts-exec-helper.c int rc = 0; rc 282 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->exec(lrmd_conn, rc 290 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 291 daemons/execd/cts-exec-helper.c exec_call_id = rc; rc 296 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->register_rsc(lrmd_conn, rc 310 daemons/execd/cts-exec-helper.c rc = pcmk_ok; rc 312 daemons/execd/cts-exec-helper.c rc = -1; rc 315 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->unregister_rsc(lrmd_conn, options.rsc_id, 0); rc 317 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, rc 322 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, rc 325 daemons/execd/cts-exec-helper.c if (rc == pcmk_ok) { rc 333 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, options.class, options.provider); rc 335 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 336 daemons/execd/cts-exec-helper.c print_result(printf("%d agents found\n", rc)); rc 341 daemons/execd/cts-exec-helper.c rc = 0; rc 344 daemons/execd/cts-exec-helper.c rc = -1; rc 350 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, options.type, &list); rc 352 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 353 daemons/execd/cts-exec-helper.c print_result(printf("%d providers found\n", rc)); rc 358 daemons/execd/cts-exec-helper.c rc = 0; rc 361 daemons/execd/cts-exec-helper.c rc = -1; rc 368 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 370 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 371 daemons/execd/cts-exec-helper.c print_result(printf("%d standards found\n", rc)); rc 376 daemons/execd/cts-exec-helper.c rc = 0; rc 379 daemons/execd/cts-exec-helper.c rc = -1; rc 385 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_recurring_ops(lrmd_conn, options.rsc_id, 0, 0, rc 403 daemons/execd/cts-exec-helper.c if (rc < 0) { rc 404 daemons/execd/cts-exec-helper.c print_result(printf("API-CALL FAILURE for '%s' api_rc:%d\n", options.api_call, rc)); rc 408 daemons/execd/cts-exec-helper.c if (options.api_call && rc == pcmk_ok) { rc 426 daemons/execd/cts-exec-helper.c int rc = 0; rc 446 daemons/execd/cts-exec-helper.c rc = cib_conn->cmds->signon(cib_conn, "cts-exec-helper", cib_query); rc 447 daemons/execd/cts-exec-helper.c if (rc != pcmk_ok) { rc 448 daemons/execd/cts-exec-helper.c crm_err("Could not connect to the CIB manager: %s", pcmk_strerror(rc)); rc 449 daemons/execd/cts-exec-helper.c rc = -1; rc 453 daemons/execd/cts-exec-helper.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 454 daemons/execd/cts-exec-helper.c if (rc != pcmk_ok) { rc 455 daemons/execd/cts-exec-helper.c crm_err("Error retrieving cib copy: %s (%d)", pcmk_strerror(rc), rc); rc 459 daemons/execd/cts-exec-helper.c rc = -ENODATA; rc 460 daemons/execd/cts-exec-helper.c crm_err("Error retrieving cib copy: %s (%d)", pcmk_strerror(rc), rc); rc 466 daemons/execd/cts-exec-helper.c rc = -1; rc 481 daemons/execd/cts-exec-helper.c rc = -1; rc 518 daemons/execd/cts-exec-helper.c return rc; rc 75 daemons/execd/execd_alerts.c action->pid, cb_data->client_id, action->rc); rc 92 daemons/execd/execd_alerts.c int rc = pcmk_ok; rc 114 daemons/execd/execd_alerts.c rc = -ENOMEM; goto err); rc 119 daemons/execd/execd_alerts.c rc = -ENOMEM; goto err); rc 125 daemons/execd/execd_alerts.c rc = services_action_user(action, CRM_DAEMON_USER); rc 126 daemons/execd/execd_alerts.c if (rc < 0) { rc 146 daemons/execd/execd_alerts.c return rc; rc 489 daemons/execd/execd_commands.c create_lrmd_reply(const char *origin, int rc, int call_id) rc 494 daemons/execd/execd_commands.c crm_xml_add_int(reply, F_LRMD_RC, rc); rc 504 daemons/execd/execd_commands.c int rc; rc 523 daemons/execd/execd_commands.c rc = lrmd_server_send_notify(client, update_msg); rc 524 daemons/execd/execd_commands.c if (rc == pcmk_rc_ok) { rc 528 daemons/execd/execd_commands.c switch (rc) { rc 536 daemons/execd/execd_commands.c msg = pcmk_rc_str(rc); rc 541 daemons/execd/execd_commands.c client->name, client->id, msg, rc); rc 632 daemons/execd/execd_commands.c send_generic_notify(int rc, xmlNode * request) rc 645 daemons/execd/execd_commands.c crm_xml_add_int(notify, F_LRMD_RC, rc); rc 710 daemons/execd/execd_commands.c ocf2uniform_rc(int rc) rc 712 daemons/execd/execd_commands.c switch (rc) { rc 717 daemons/execd/execd_commands.c if (rc < 0 || rc > PCMK_OCF_FAILED_MASTER) rc 721 daemons/execd/execd_commands.c return rc; rc 725 daemons/execd/execd_commands.c stonith2uniform_rc(const char *action, int rc) rc 727 daemons/execd/execd_commands.c switch (rc) { rc 729 daemons/execd/execd_commands.c rc = PCMK_OCF_OK; rc 737 daemons/execd/execd_commands.c rc = PCMK_OCF_NOT_RUNNING; rc 739 daemons/execd/execd_commands.c rc = PCMK_OCF_OK; rc 741 daemons/execd/execd_commands.c rc = PCMK_OCF_NOT_INSTALLED; rc 746 daemons/execd/execd_commands.c rc = PCMK_OCF_UNIMPLEMENT_FEATURE; rc 751 daemons/execd/execd_commands.c rc = PCMK_OCF_TIMEOUT; rc 755 daemons/execd/execd_commands.c rc = PCMK_OCF_UNKNOWN_ERROR; rc 758 daemons/execd/execd_commands.c return rc; rc 763 daemons/execd/execd_commands.c nagios2uniform_rc(const char *action, int rc) rc 765 daemons/execd/execd_commands.c if (rc < 0) { rc 769 daemons/execd/execd_commands.c switch (rc) { rc 789 daemons/execd/execd_commands.c get_uniform_rc(const char *standard, const char *action, int rc) rc 792 daemons/execd/execd_commands.c return ocf2uniform_rc(rc); rc 794 daemons/execd/execd_commands.c return stonith2uniform_rc(action, rc); rc 796 daemons/execd/execd_commands.c return rc; rc 798 daemons/execd/execd_commands.c return rc; rc 801 daemons/execd/execd_commands.c return nagios2uniform_rc(action, rc); rc 804 daemons/execd/execd_commands.c return services_get_ocf_exitcode(action, rc); rc 812 daemons/execd/execd_commands.c return get_uniform_rc(action->standard, cmd->action, action->rc); rc 914 daemons/execd/execd_commands.c if (cmd->exec_rc != action->rc) { rc 1067 daemons/execd/execd_commands.c stonith_rc2status(const char *action, guint interval_ms, int rc) rc 1071 daemons/execd/execd_commands.c switch (rc) { rc 1103 daemons/execd/execd_commands.c stonith_action_complete(lrmd_cmd_t * cmd, int rc) rc 1108 daemons/execd/execd_commands.c cmd->exec_rc = stonith2uniform_rc(cmd->action, rc); rc 1116 daemons/execd/execd_commands.c rc); rc 1148 daemons/execd/execd_commands.c stonith_action_complete(data->userdata, data->rc); rc 1219 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1237 daemons/execd/execd_commands.c rc = stonith_api->cmds->register_device(stonith_api, st_opt_sync_call, rc 1242 daemons/execd/execd_commands.c return rc; rc 1280 daemons/execd/execd_commands.c int rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id, rc 1283 daemons/execd/execd_commands.c rc = stonith_api->cmds->register_callback(stonith_api, rc, 0, 0, cmd, rc 1286 daemons/execd/execd_commands.c if (rc == TRUE) { rc 1288 daemons/execd/execd_commands.c rc = pcmk_ok; rc 1290 daemons/execd/execd_commands.c rc = -pcmk_err_generic; rc 1292 daemons/execd/execd_commands.c return rc; rc 1298 daemons/execd/execd_commands.c int rc = 0; rc 1304 daemons/execd/execd_commands.c rc = -ENOTCONN; rc 1307 daemons/execd/execd_commands.c rc = execd_stonith_start(stonith_api, rsc, cmd); rc 1308 daemons/execd/execd_commands.c if (rc == 0) { rc 1313 daemons/execd/execd_commands.c rc = execd_stonith_stop(stonith_api, rsc); rc 1319 daemons/execd/execd_commands.c rc = rsc->st_probe_rc; rc 1324 daemons/execd/execd_commands.c rc = execd_stonith_monitor(stonith_api, rsc, cmd); rc 1325 daemons/execd/execd_commands.c if (rc == pcmk_ok) { rc 1331 daemons/execd/execd_commands.c stonith_action_complete(cmd, rc); rc 1382 daemons/execd/execd_commands.c cmd->exec_rc = action->rc; rc 1518 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1525 daemons/execd/execd_commands.c rc = -EPROTO; rc 1534 daemons/execd/execd_commands.c rc = -EACCES; rc 1537 daemons/execd/execd_commands.c rc = -EPROTONOSUPPORT; rc 1541 daemons/execd/execd_commands.c *reply = create_lrmd_reply(__func__, rc, call_id); rc 1546 daemons/execd/execd_commands.c return rc; rc 1552 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1562 daemons/execd/execd_commands.c return rc; rc 1567 daemons/execd/execd_commands.c return rc; rc 1573 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1580 daemons/execd/execd_commands.c rc = -ENODEV; rc 1585 daemons/execd/execd_commands.c rc = -ENODEV; rc 1589 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1603 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1623 daemons/execd/execd_commands.c rc = -EINPROGRESS; rc 1628 daemons/execd/execd_commands.c return rc; rc 1797 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1818 daemons/execd/execd_commands.c rc = -ENODEV; rc 1822 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1843 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1868 daemons/execd/execd_commands.c rc = -EACCES; rc 1871 daemons/execd/execd_commands.c rc = -EPROTONOSUPPORT; rc 1875 daemons/execd/execd_commands.c rc = process_lrmd_signon(client, request, call_id, &reply); rc 1879 daemons/execd/execd_commands.c rc = process_lrmd_rsc_register(client, id, request); rc 1882 daemons/execd/execd_commands.c rc = -EACCES; rc 1889 daemons/execd/execd_commands.c rc = -EACCES; rc 1894 daemons/execd/execd_commands.c rc = process_lrmd_rsc_unregister(client, id, request); rc 1896 daemons/execd/execd_commands.c if (rc == pcmk_ok || rc == -EINPROGRESS) { rc 1900 daemons/execd/execd_commands.c rc = -EACCES; rc 1905 daemons/execd/execd_commands.c rc = process_lrmd_rsc_exec(client, id, request); rc 1907 daemons/execd/execd_commands.c rc = -EACCES; rc 1912 daemons/execd/execd_commands.c rc = process_lrmd_rsc_cancel(client, id, request); rc 1914 daemons/execd/execd_commands.c rc = -EACCES; rc 1927 daemons/execd/execd_commands.c rc = -EACCES; rc 1931 daemons/execd/execd_commands.c rc = process_lrmd_alert_exec(client, id, request); rc 1933 daemons/execd/execd_commands.c rc = -EACCES; rc 1940 daemons/execd/execd_commands.c rc = -EACCES; rc 1944 daemons/execd/execd_commands.c rc = -EOPNOTSUPP; rc 1949 daemons/execd/execd_commands.c if (rc == -EACCES) { rc 1955 daemons/execd/execd_commands.c op, client->id, rc, do_reply, do_notify); rc 1961 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1972 daemons/execd/execd_commands.c send_generic_notify(rc, request); rc 63 daemons/execd/pacemaker-execd.c int rc = pcmk_ok; rc 70 daemons/execd/pacemaker-execd.c rc = stonith_api_connect_retry(stonith_api, crm_system_name, 10); rc 71 daemons/execd/pacemaker-execd.c if (rc != pcmk_ok) { rc 73 daemons/execd/pacemaker-execd.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 147 daemons/execd/remoted_proxy.c int rc = pcmk_rc_ok; rc 189 daemons/execd/remoted_proxy.c rc = pcmk__ipc_send_xml(ipc_client, 0, msg, crm_ipc_server_event); rc 196 daemons/execd/remoted_proxy.c rc = pcmk__ipc_send_xml(ipc_client, msg_id, msg, FALSE); rc 208 daemons/execd/remoted_proxy.c if (rc != pcmk_rc_ok) { rc 210 daemons/execd/remoted_proxy.c ipc_client->id, pcmk_rc_str(rc), rc); rc 284 daemons/execd/remoted_proxy.c int rc; rc 293 daemons/execd/remoted_proxy.c rc = (lrmd_server_send_notify(ipc_proxy, msg) != pcmk_rc_ok)? -1 : 0; rc 295 daemons/execd/remoted_proxy.c return rc; rc 56 daemons/execd/remoted_tls.c int rc = pcmk__read_handshake_data(client); rc 58 daemons/execd/remoted_tls.c if (rc == EAGAIN) { rc 63 daemons/execd/remoted_tls.c } else if (rc != pcmk_rc_ok) { rc 89 daemons/execd/remoted_tls.c int rc; rc 107 daemons/execd/remoted_tls.c rc = pcmk__read_remote_message(client->remote, -1); rc 137 daemons/execd/remoted_tls.c if (rc == ENOTCONN) { rc 264 daemons/execd/remoted_tls.c int rc; rc 278 daemons/execd/remoted_tls.c rc = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); rc 279 daemons/execd/remoted_tls.c if (rc < 0) { rc 287 daemons/execd/remoted_tls.c rc = setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval, sizeof(optval)); rc 288 daemons/execd/remoted_tls.c if (rc < 0) { rc 312 daemons/execd/remoted_tls.c int rc; rc 323 daemons/execd/remoted_tls.c rc = getaddrinfo(bind_name, port_str, &hints, res); rc 324 daemons/execd/remoted_tls.c if (rc) { rc 326 daemons/execd/remoted_tls.c (bind_name? bind_name : "local node"), gai_strerror(rc)); rc 98 daemons/fenced/cts-fence-helper.c int rc; rc 103 daemons/fenced/cts-fence-helper.c rc = poll(&pollfd, 1, timeout); /* wait 10 minutes, -1 forever */ rc 104 daemons/fenced/cts-fence-helper.c if (rc > 0) { rc 134 daemons/fenced/cts-fence-helper.c crm_notice("Call id %d completed with rc %d", data->call_id, data->rc); rc 140 daemons/fenced/cts-fence-helper.c int rc = 0; rc 142 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 143 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 159 daemons/fenced/cts-fence-helper.c int rc = 0; \ rc 160 daemons/fenced/cts-fence-helper.c rc = cmd; \ rc 166 daemons/fenced/cts-fence-helper.c if (rc != expected_rc) { \ rc 167 daemons/fenced/cts-fence-helper.c crm_err("FAILURE - expected rc %d != %d(%s) for cmd - %s", expected_rc, rc, pcmk_strerror(rc), str); \ rc 175 daemons/fenced/cts-fence-helper.c crm_info("SUCCESS - %s: %d", str, rc); \ rc 177 daemons/fenced/cts-fence-helper.c crm_debug("SUCCESS - %s: %d", str, rc); \ rc 289 daemons/fenced/cts-fence-helper.c int rc = 0; rc 291 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 292 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 313 daemons/fenced/cts-fence-helper.c int rc = 0; rc 317 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 318 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 325 daemons/fenced/cts-fence-helper.c rc = st->cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_xvm", params); rc 326 daemons/fenced/cts-fence-helper.c crm_debug("Register: %d", rc); rc 328 daemons/fenced/cts-fence-helper.c rc = st->cmds->list(st, st_opts, "test-id", &tmp, 10); rc 329 daemons/fenced/cts-fence-helper.c crm_debug("List: %d output: %s", rc, tmp ? tmp : "<none>"); rc 331 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, st_opts, "test-id", 10); rc 332 daemons/fenced/cts-fence-helper.c crm_debug("Monitor: %d", rc); rc 334 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node2", 10); rc 335 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node2: %d", rc); rc 337 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 338 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 340 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "unknown-host", "off", 60, 0); rc 341 daemons/fenced/cts-fence-helper.c crm_debug("Fence unknown-host: %d", rc); rc 343 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 344 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 346 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "off", 60, 0); rc 347 daemons/fenced/cts-fence-helper.c crm_debug("Fence false_1_node1: %d", rc); rc 349 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 350 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 352 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); rc 353 daemons/fenced/cts-fence-helper.c crm_debug("Unfence false_1_node1: %d", rc); rc 355 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 356 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 358 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "some-host", "off", 10, 0); rc 359 daemons/fenced/cts-fence-helper.c crm_debug("Fence alias: %d", rc); rc 361 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "some-host", 10); rc 362 daemons/fenced/cts-fence-helper.c crm_debug("Status alias: %d", rc); rc 364 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); rc 365 daemons/fenced/cts-fence-helper.c crm_debug("Unfence false_1_node1: %d", rc); rc 367 daemons/fenced/cts-fence-helper.c rc = st->cmds->remove_device(st, st_opts, "test-id"); rc 368 daemons/fenced/cts-fence-helper.c crm_debug("Remove test-id: %d", rc); rc 379 daemons/fenced/cts-fence-helper.c callback_rc = data->rc; rc 395 daemons/fenced/cts-fence-helper.c int rc = 0; rc 406 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "true_1_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 407 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 408 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 411 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 419 daemons/fenced/cts-fence-helper.c int rc = 0; rc 439 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "custom_timeout_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 440 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 441 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 444 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 451 daemons/fenced/cts-fence-helper.c int rc = 0; rc 462 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "false_1_node2", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 463 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 464 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 467 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 474 daemons/fenced/cts-fence-helper.c int rc = 0; rc 485 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, 0, "false_1", MAINLOOP_DEFAULT_TIMEOUT); rc 486 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 487 daemons/fenced/cts-fence-helper.c crm_err("monitor failed with rc %d", rc); rc 491 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 528 daemons/fenced/cts-fence-helper.c int rc = stonith_api_connect_retry(st, crm_system_name, 10); rc 530 daemons/fenced/cts-fence-helper.c if (rc == pcmk_ok) { rc 569 daemons/fenced/cts-fence-helper.c int rc = 0; rc 572 daemons/fenced/cts-fence-helper.c rc = st->cmds->disconnect(st); rc 573 daemons/fenced/cts-fence-helper.c crm_info("Disconnect: %d", rc); rc 579 daemons/fenced/cts-fence-helper.c if (rc) { rc 65 daemons/fenced/fenced_commands.c static void st_child_done(GPid pid, int rc, const char *output, gpointer user_data); rc 100 daemons/fenced/fenced_commands.c void (*done_cb) (GPid pid, int rc, const char *output, gpointer user_data); rc 112 daemons/fenced/fenced_commands.c xmlNode * data, int rc); rc 690 daemons/fenced/fenced_commands.c int rc; rc 697 daemons/fenced/fenced_commands.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, 10); rc 699 daemons/fenced/fenced_commands.c if (rc || !buffer) { rc 972 daemons/fenced/fenced_commands.c void (*done_cb) (GPid pid, int rc, const char *output, rc 1014 daemons/fenced/fenced_commands.c status_search_cb(GPid pid, int rc, const char *output, gpointer user_data) rc 1030 daemons/fenced/fenced_commands.c if (rc == 1 /* unknown */ ) { rc 1033 daemons/fenced/fenced_commands.c } else if (rc == 0 /* active */ || rc == 2 /* inactive */ ) { rc 1039 daemons/fenced/fenced_commands.c rc); rc 1045 daemons/fenced/fenced_commands.c dynamic_list_search_cb(GPid pid, int rc, const char *output, gpointer user_data) rc 1067 daemons/fenced/fenced_commands.c if (rc != 0 && !dev->targets) { rc 1068 daemons/fenced/fenced_commands.c crm_notice("Disabling port list queries for %s (%d): %s", dev->id, rc, output); rc 1074 daemons/fenced/fenced_commands.c } else if (!rc) { rc 2023 daemons/fenced/fenced_commands.c log_operation(async_command_t * cmd, int rc, int pid, const char *next, const char *output, gboolean op_merged) rc 2025 daemons/fenced/fenced_commands.c if (rc == 0) { rc 2030 daemons/fenced/fenced_commands.c do_crm_log(rc == 0 ? LOG_NOTICE : LOG_ERR, rc 2034 daemons/fenced/fenced_commands.c rc, pcmk_strerror(rc), rc 2037 daemons/fenced/fenced_commands.c do_crm_log_unlikely(rc == 0 ? LOG_DEBUG : LOG_NOTICE, rc 2041 daemons/fenced/fenced_commands.c rc, pcmk_strerror(rc), rc 2049 daemons/fenced/fenced_commands.c crm_log_output(rc == 0 ? LOG_DEBUG : LOG_WARNING, prefix, output); rc 2055 daemons/fenced/fenced_commands.c stonith_send_async_reply(async_command_t * cmd, const char *output, int rc, GPid pid, int options) rc 2060 daemons/fenced/fenced_commands.c reply = stonith_construct_async_reply(cmd, output, NULL, rc); rc 2076 daemons/fenced/fenced_commands.c log_operation(cmd, rc, pid, NULL, output, (options & st_reply_opt_merged ? TRUE : FALSE)); rc 2101 daemons/fenced/fenced_commands.c crm_xml_add_int(notify_data, F_STONITH_RC, rc); rc 2109 daemons/fenced/fenced_commands.c do_stonith_notify(0, T_STONITH_NOTIFY_FENCE, rc, notify_data); rc 2136 daemons/fenced/fenced_commands.c st_child_done(GPid pid, int rc, const char *output, gpointer user_data) rc 2152 daemons/fenced/fenced_commands.c if (!device->verified && (rc == pcmk_ok) && rc 2162 daemons/fenced/fenced_commands.c cmd->action, cmd->device, rc, g_list_length(cmd->device_next)); rc 2164 daemons/fenced/fenced_commands.c if (rc == 0) { rc 2177 daemons/fenced/fenced_commands.c } else if (rc != 0 && cmd->device_next && (is_action_required(cmd->action, device) == FALSE)) { rc 2186 daemons/fenced/fenced_commands.c log_operation(cmd, rc, pid, next_device->id, output, FALSE); rc 2194 daemons/fenced/fenced_commands.c stonith_send_async_reply(cmd, output, rc, pid, st_reply_opt_none); rc 2196 daemons/fenced/fenced_commands.c if (rc != 0) { rc 2241 daemons/fenced/fenced_commands.c stonith_send_async_reply(cmd_other, output, rc, pid, st_reply_opt_merged); rc 2342 daemons/fenced/fenced_commands.c stonith_construct_reply(xmlNode * request, const char *output, xmlNode * data, int rc) rc 2351 daemons/fenced/fenced_commands.c crm_xml_add_int(reply, F_STONITH_RC, rc); rc 2361 daemons/fenced/fenced_commands.c "operation with result %d (initiated before we came up?)", rc); rc 2377 daemons/fenced/fenced_commands.c (data? "" : "out"), rc); rc 2391 daemons/fenced/fenced_commands.c stonith_construct_async_reply(async_command_t * cmd, const char *output, xmlNode * data, int rc) rc 2412 daemons/fenced/fenced_commands.c crm_xml_add_int(reply, F_STONITH_RC, rc); rc 2541 daemons/fenced/fenced_commands.c int rc = -EOPNOTSUPP; rc 2581 daemons/fenced/fenced_commands.c rc = stonith_device_action(request, &output); rc 2634 daemons/fenced/fenced_commands.c rc = -EINPROGRESS; rc 2640 daemons/fenced/fenced_commands.c rc = stonith_fence(request); rc 2649 daemons/fenced/fenced_commands.c rc = stonith_manual_ack(request, rop); rc 2667 daemons/fenced/fenced_commands.c rc = 0; rc 2699 daemons/fenced/fenced_commands.c rc = -EINPROGRESS; rc 2702 daemons/fenced/fenced_commands.c rc = -EINPROGRESS; rc 2707 daemons/fenced/fenced_commands.c rc = stonith_fence_history(request, &data, remote_peer, call_options); rc 2720 daemons/fenced/fenced_commands.c rc = stonith_device_register(request, &device_id, FALSE); rc 2722 daemons/fenced/fenced_commands.c rc = -EACCES; rc 2724 daemons/fenced/fenced_commands.c do_stonith_notify_device(call_options, op, rc, device_id); rc 2731 daemons/fenced/fenced_commands.c rc = stonith_device_remove(device_id, FALSE); rc 2733 daemons/fenced/fenced_commands.c rc = -EACCES; rc 2735 daemons/fenced/fenced_commands.c do_stonith_notify_device(call_options, op, rc, device_id); rc 2741 daemons/fenced/fenced_commands.c rc = stonith_level_register(request, &device_id); rc 2743 daemons/fenced/fenced_commands.c rc = -EACCES; rc 2745 daemons/fenced/fenced_commands.c do_stonith_notify_level(call_options, op, rc, device_id); rc 2752 daemons/fenced/fenced_commands.c rc = stonith_level_remove(request, &device_id); rc 2754 daemons/fenced/fenced_commands.c rc = -EACCES; rc 2756 daemons/fenced/fenced_commands.c do_stonith_notify_level(call_options, op, rc, device_id); rc 2775 daemons/fenced/fenced_commands.c if (rc == -EACCES) { rc 2783 daemons/fenced/fenced_commands.c if (rc != -EINPROGRESS) { rc 2791 daemons/fenced/fenced_commands.c reply = stonith_construct_reply(request, output, data, rc); rc 2799 daemons/fenced/fenced_commands.c return rc; rc 2825 daemons/fenced/fenced_commands.c int rc = 0; rc 2854 daemons/fenced/fenced_commands.c rc = handle_request(client, id, flags, request, remote_peer); rc 2859 daemons/fenced/fenced_commands.c rc > 0 ? "" : pcmk_strerror(rc), rc); rc 403 daemons/fenced/fenced_history.c int rc = 0; rc 490 daemons/fenced/fenced_history.c return rc; rc 79 daemons/fenced/fenced_remote.c void call_remote_stonith(remote_fencing_op_t * op, st_query_result_t * peer, int rc); rc 80 daemons/fenced/fenced_remote.c static void remote_op_done(remote_fencing_op_t * op, xmlNode * data, int rc, int dup); rc 359 daemons/fenced/fenced_remote.c create_op_done_notify(remote_fencing_op_t * op, int rc) rc 364 daemons/fenced/fenced_remote.c crm_xml_add_int(notify_data, F_STONITH_RC, rc); rc 377 daemons/fenced/fenced_remote.c stonith_bcast_result_to_peers(remote_fencing_op_t * op, int rc, gboolean op_merged) rc 381 daemons/fenced/fenced_remote.c xmlNode *notify_data = create_op_done_notify(op, rc); rc 403 daemons/fenced/fenced_remote.c handle_local_reply_and_notify(remote_fencing_op_t * op, xmlNode * data, int rc) rc 414 daemons/fenced/fenced_remote.c notify_data = create_op_done_notify(op, rc); rc 419 daemons/fenced/fenced_remote.c reply = stonith_construct_reply(op->request, NULL, data, rc); rc 426 daemons/fenced/fenced_remote.c do_stonith_notify(0, T_STONITH_NOTIFY_FENCE, rc, notify_data); rc 436 daemons/fenced/fenced_remote.c handle_duplicates(remote_fencing_op_t * op, xmlNode * data, int rc) rc 447 daemons/fenced/fenced_remote.c pcmk_strerror(rc)); rc 448 daemons/fenced/fenced_remote.c remote_op_done(other, data, rc, TRUE); rc 484 daemons/fenced/fenced_remote.c remote_op_done(remote_fencing_op_t * op, xmlNode * data, int rc, int dup) rc 500 daemons/fenced/fenced_remote.c op->client_name, op->originator, op->id, pcmk_strerror(rc), rc 501 daemons/fenced/fenced_remote.c rc, op->state); rc 505 daemons/fenced/fenced_remote.c if (!op->delegate && data && rc != -ENODEV && rc != -EHOSTUNREACH) { rc 532 daemons/fenced/fenced_remote.c stonith_bcast_result_to_peers(op, rc, (op_merged? TRUE: FALSE)); rc 536 daemons/fenced/fenced_remote.c if (rc == pcmk_ok || dup) { rc 547 daemons/fenced/fenced_remote.c (op_merged? " (merged)" : ""), pcmk_strerror(rc)); rc 549 daemons/fenced/fenced_remote.c handle_local_reply_and_notify(op, data, rc); rc 552 daemons/fenced/fenced_remote.c handle_duplicates(op, data, rc); rc 1451 daemons/fenced/fenced_remote.c xmlNode *msg, int rc) rc 1482 daemons/fenced/fenced_remote.c op->target, op->originator, op->client_name, rc); rc 1495 daemons/fenced/fenced_remote.c remote_op_done(op, msg, rc, FALSE); rc 1500 daemons/fenced/fenced_remote.c call_remote_stonith(remote_fencing_op_t * op, st_query_result_t * peer, int rc) rc 1637 daemons/fenced/fenced_remote.c rc = -ENODEV; rc 1640 daemons/fenced/fenced_remote.c rc = -EHOSTUNREACH; rc 1650 daemons/fenced/fenced_remote.c remote_op_done(op, NULL, rc, FALSE); rc 1990 daemons/fenced/fenced_remote.c int rc = 0; rc 2004 daemons/fenced/fenced_remote.c crm_element_value_int(dev, F_STONITH_RC, &rc); rc 2012 daemons/fenced/fenced_remote.c if (op == NULL && rc == pcmk_ok) { rc 2030 daemons/fenced/fenced_remote.c return rc; rc 2036 daemons/fenced/fenced_remote.c pcmk_strerror(rc), rc); rc 2037 daemons/fenced/fenced_remote.c if (rc == pcmk_ok) { rc 2042 daemons/fenced/fenced_remote.c remote_op_done(op, msg, rc, FALSE); rc 2050 daemons/fenced/fenced_remote.c return rc; rc 2059 daemons/fenced/fenced_remote.c op->originator, pcmk_strerror(rc), rc); rc 2064 daemons/fenced/fenced_remote.c remote_op_done(op, msg, rc, FALSE); rc 2065 daemons/fenced/fenced_remote.c return rc; rc 2068 daemons/fenced/fenced_remote.c if ((op->phase == 2) && (rc != pcmk_ok)) { rc 2073 daemons/fenced/fenced_remote.c "after successful 'off'", device, rc, op->target); rc 2074 daemons/fenced/fenced_remote.c rc = pcmk_ok; rc 2077 daemons/fenced/fenced_remote.c if (rc == pcmk_ok) { rc 2080 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, msg, rc); rc 2081 daemons/fenced/fenced_remote.c return rc; rc 2087 daemons/fenced/fenced_remote.c remote_op_done(op, msg, rc, FALSE); rc 2088 daemons/fenced/fenced_remote.c return rc; rc 2091 daemons/fenced/fenced_remote.c } else if (rc == pcmk_ok && op->devices == NULL) { rc 2095 daemons/fenced/fenced_remote.c remote_op_done(op, msg, rc, FALSE); rc 2096 daemons/fenced/fenced_remote.c return rc; rc 2097 daemons/fenced/fenced_remote.c } else if (rc == -ETIME && op->devices == NULL) { rc 2100 daemons/fenced/fenced_remote.c remote_op_done(op, msg, rc, FALSE); rc 2101 daemons/fenced/fenced_remote.c return rc; rc 2108 daemons/fenced/fenced_remote.c op->client_name, rc); rc 2109 daemons/fenced/fenced_remote.c call_remote_stonith(op, NULL, rc); rc 2110 daemons/fenced/fenced_remote.c return rc; rc 306 daemons/fenced/pacemaker-fenced.c int rc = pcmk__ipc_send_xml(client, 0, update_msg, rc 309 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 312 daemons/fenced/pacemaker-fenced.c pcmk_rc_str(rc), client->id, rc); rc 373 daemons/fenced/pacemaker-fenced.c do_stonith_notify_config(int options, const char *op, int rc, rc 383 daemons/fenced/pacemaker-fenced.c do_stonith_notify(options, op, rc, notify_data); rc 388 daemons/fenced/pacemaker-fenced.c do_stonith_notify_device(int options, const char *op, int rc, const char *desc) rc 390 daemons/fenced/pacemaker-fenced.c do_stonith_notify_config(options, op, rc, desc, g_hash_table_size(device_list)); rc 394 daemons/fenced/pacemaker-fenced.c do_stonith_notify_level(int options, const char *op, int rc, const char *desc) rc 396 daemons/fenced/pacemaker-fenced.c do_stonith_notify_config(options, op, rc, desc, g_hash_table_size(topology)); rc 402 daemons/fenced/pacemaker-fenced.c int rc; rc 410 daemons/fenced/pacemaker-fenced.c rc = stonith_level_remove(data, &desc); rc 411 daemons/fenced/pacemaker-fenced.c do_stonith_notify_level(0, STONITH_OP_LEVEL_DEL, rc, desc); rc 445 daemons/fenced/pacemaker-fenced.c int rc; rc 460 daemons/fenced/pacemaker-fenced.c rc = stonith_level_register(match, &desc); rc 461 daemons/fenced/pacemaker-fenced.c do_stonith_notify_level(0, STONITH_OP_LEVEL_ADD, rc, desc); rc 643 daemons/fenced/pacemaker-fenced.c int rc; rc 671 daemons/fenced/pacemaker-fenced.c rc = stonith_device_register(data, NULL, TRUE); rc 672 daemons/fenced/pacemaker-fenced.c CRM_ASSERT(rc == pcmk_ok); rc 995 daemons/fenced/pacemaker-fenced.c int rc = pcmk_ok; rc 1014 daemons/fenced/pacemaker-fenced.c int rc = pcmk_ok; rc 1017 daemons/fenced/pacemaker-fenced.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 1018 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_ok) { rc 1024 daemons/fenced/pacemaker-fenced.c rc = xml_apply_patchset(local_cib, patchset, TRUE); rc 1025 daemons/fenced/pacemaker-fenced.c switch (rc) { rc 1031 daemons/fenced/pacemaker-fenced.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 1036 daemons/fenced/pacemaker-fenced.c crm_warn("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 1044 daemons/fenced/pacemaker-fenced.c rc = cib_api->cmds->query(cib_api, NULL, &local_cib, cib_scope_local | cib_sync_call); rc 1045 daemons/fenced/pacemaker-fenced.c if(rc != pcmk_ok) { rc 1046 daemons/fenced/pacemaker-fenced.c crm_err("Couldn't retrieve the CIB: %s (%d)", pcmk_strerror(rc), rc); rc 1105 daemons/fenced/pacemaker-fenced.c init_cib_cache_cb(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 1203 daemons/fenced/pacemaker-fenced.c int rc, retries = 0; rc 1213 daemons/fenced/pacemaker-fenced.c rc = cib_api->cmds->signon(cib_api, CRM_SYSTEM_STONITHD, cib_command); rc 1214 daemons/fenced/pacemaker-fenced.c } while (rc == -ENOTCONN && ++retries < 5); rc 1216 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_ok) { rc 1217 daemons/fenced/pacemaker-fenced.c crm_err("Could not connect to the CIB manager: %s (%d)", pcmk_strerror(rc), rc); rc 1224 daemons/fenced/pacemaker-fenced.c rc = cib_api->cmds->query(cib_api, NULL, NULL, cib_scope_local); rc 1225 daemons/fenced/pacemaker-fenced.c cib_api->cmds->register_callback(cib_api, rc, 120, FALSE, NULL, "init_cib_cache_cb", rc 1506 daemons/fenced/pacemaker-fenced.c int rc; rc 1516 daemons/fenced/pacemaker-fenced.c rc = stonith_device_register(xml, NULL, FALSE); rc 1518 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_ok) { rc 164 daemons/fenced/pacemaker-fenced.h void stonith_bcast_result_to_peers(remote_fencing_op_t * op, int rc, gboolean op_merged); rc 233 daemons/fenced/pacemaker-fenced.h int rc); rc 239 daemons/fenced/pacemaker-fenced.h void do_stonith_notify_device(int options, const char *op, int rc, const char *desc); rc 240 daemons/fenced/pacemaker-fenced.h void do_stonith_notify_level(int options, const char *op, int rc, const char *desc); rc 703 daemons/pacemakerd/pacemakerd.c int rc = chown(path, uid, gid); rc 705 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 738 daemons/pacemakerd/pacemakerd.c int rc = pcmk_rc_ipc_unresponsive; rc 745 daemons/pacemakerd/pacemakerd.c rc = EINVAL; // Misuse of function when child is not trackable rc 760 daemons/pacemakerd/pacemakerd.c rc = pcmk_legacy2rc(legacy_rc); rc 762 daemons/pacemakerd/pacemakerd.c CRM_XS " rc=%d", CRM_DAEMON_USER, pcmk_rc_str(rc), rc); rc 764 daemons/pacemakerd/pacemakerd.c rc = pcmk__ipc_is_authentic_process_active(child->endpoint, rc 767 daemons/pacemakerd/pacemakerd.c if ((rc == pcmk_rc_ok) || (rc == pcmk_rc_ipc_unresponsive)) { rc 779 daemons/pacemakerd/pacemakerd.c rc = pcmk_rc_ipc_unresponsive; rc 785 daemons/pacemakerd/pacemakerd.c if (rc == pcmk_rc_ipc_unresponsive) { rc 814 daemons/pacemakerd/pacemakerd.c rc = pcmk_rc_ok; rc 818 daemons/pacemakerd/pacemakerd.c rc = pcmk_rc_ipc_pid_only; rc 821 daemons/pacemakerd/pacemakerd.c rc = pcmk_rc_ipc_unresponsive; rc 825 daemons/pacemakerd/pacemakerd.c rc = pcmk_rc_ipc_unauthorized; rc 828 daemons/pacemakerd/pacemakerd.c rc = pcmk_rc_ipc_unresponsive; rc 831 daemons/pacemakerd/pacemakerd.c rc = ret; rc 836 daemons/pacemakerd/pacemakerd.c return rc; rc 854 daemons/pacemakerd/pacemakerd.c int rc = child_liveness(&pcmk_children[lpc]); rc 856 daemons/pacemakerd/pacemakerd.c switch (rc) { rc 864 daemons/pacemakerd/pacemakerd.c (rc == pcmk_rc_ipc_pid_only)? " as IPC server" : ""); rc 869 daemons/pacemakerd/pacemakerd.c (rc == pcmk_rc_ipc_pid_only)? " as IPC server" : ""); rc 921 daemons/pacemakerd/pacemakerd.c int rc; rc 933 daemons/pacemakerd/pacemakerd.c rc = child_liveness(&pcmk_children[i]); rc 934 daemons/pacemakerd/pacemakerd.c if (rc == pcmk_rc_ipc_unresponsive) { rc 943 daemons/pacemakerd/pacemakerd.c switch (rc) { rc 996 daemons/pacemakerd/pacemakerd.c return rc; rc 1009 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, pcmk_rc_str(rc), rc); rc 1010 daemons/pacemakerd/pacemakerd.c return rc; rc 1064 daemons/pacemakerd/pacemakerd.c int rc = getrlimit(RLIMIT_CORE, &cores); rc 1066 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 1080 daemons/pacemakerd/pacemakerd.c rc = setrlimit(RLIMIT_CORE, &cores); rc 1081 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 1092 daemons/pacemakerd/pacemakerd.c int rc = 0; rc 1104 daemons/pacemakerd/pacemakerd.c rc = crm_ipc_send(ipc, request, crm_ipc_client_response, 0, &reply); rc 1105 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 1107 daemons/pacemakerd/pacemakerd.c status = crm_errno2exit(rc); rc 1111 daemons/pacemakerd/pacemakerd.c if ((rc == 0) || (reply == NULL)) { rc 1117 daemons/pacemakerd/pacemakerd.c if ((crm_element_value_int(reply, "status", &rc) == 0) rc 1118 daemons/pacemakerd/pacemakerd.c && (rc != CRM_EX_OK)) { rc 1119 daemons/pacemakerd/pacemakerd.c crm_err("Shutdown request failed: %s", crm_exit_str(rc)); rc 1120 daemons/pacemakerd/pacemakerd.c status = rc; rc 54 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc = corosync_cfg_dispatch(*handle, CS_DISPATCH_ALL); rc 56 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 85 daemons/pacemakerd/pcmkd_corosync.c if(rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { \ rc 97 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc; rc 109 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_initialize(&cfg_handle, &cfg_callbacks)); rc 111 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 113 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 117 daemons/pacemakerd/pcmkd_corosync.c rc = corosync_cfg_fd_get(cfg_handle, &fd); rc 118 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 120 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 139 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_local_get(cfg_handle, &nodeid)); rc 140 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 142 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), rc); rc 158 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc; rc 165 daemons/pacemakerd/pcmkd_corosync.c rc = corosync_cfg_try_shutdown(cfg_handle, rc 167 daemons/pacemakerd/pcmkd_corosync.c if (rc == CS_OK) { rc 172 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 182 daemons/pacemakerd/pcmkd_corosync.c int rc = 0, retries = 0; rc 184 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 5, rc = cmap_get_string(object_handle, key, value)); rc 185 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 186 daemons/pacemakerd/pcmkd_corosync.c crm_trace("Search for %s failed %d, defaulting to %s", key, rc, fallback); rc 194 daemons/pacemakerd/pcmkd_corosync.c return rc; rc 200 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc = CS_OK; rc 213 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_initialize(&local_handle); rc 214 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 217 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), retries, rc); rc 226 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 228 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), rc); rc 232 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_fd_get(local_handle, &fd); rc 233 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 235 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 296 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_set_uint8(local_handle, key, 1); rc 297 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 299 daemons/pacemakerd/pcmkd_corosync.c " group=%u rc=%d", ais_error2text(rc), gid, rc); rc 79 include/crm/cib/cib_types.h int callid, int rc, rc 145 include/crm/cib/cib_types.h void (*op_callback) (const xmlNode *msg, int call_id, int rc, rc 128 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); rc 396 include/crm/common/internal.h int pcmk__effective_rc(int rc); rc 23 include/crm/common/remote_internal.h void (*callback) (void *userdata, int rc, int sock)); rc 255 include/crm/common/results.h const char *pcmk_rc_name(int rc); rc 256 include/crm/common/results.h const char *pcmk_rc_str(int rc); rc 257 include/crm/common/results.h crm_exit_t pcmk_rc2exitc(int rc); rc 258 include/crm/common/results.h int pcmk_rc2legacy(int rc); rc 260 include/crm/common/results.h const char *pcmk_strerror(int rc); rc 261 include/crm/common/results.h const char *pcmk_errorname(int rc); rc 262 include/crm/common/results.h const char *bz2_strerror(int rc); rc 263 include/crm/common/results.h crm_exit_t crm_errno2exit(int rc); rc 266 include/crm/common/results.h _Noreturn crm_exit_t crm_exit(crm_exit_t rc); rc 61 include/crm/fencing/internal.h void stonith__action_result(stonith_action_t *action, int *rc, char **output, rc 67 include/crm/fencing/internal.h void (*done) (GPid pid, int rc, const char *output, rc 221 include/crm/lrmd.h enum ocf_exitcode rc; rc 516 include/crm/pengine/internal.h enum rsc_digest_cmp_val rc; rc 138 include/crm/services.h int rc; rc 133 include/crm/stonith-ng.h int rc; rc 137 include/pcmki/pcmki_transition.h int rc); rc 54 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 131 lib/cib/cib_attrs.c rc = cib_internal_op(the_cib, CIB_OP_QUERY, NULL, xpath_string, NULL, &xml_search, rc 134 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 137 lib/cib/cib_attrs.c pcmk_strerror(rc)); rc 145 lib/cib/cib_attrs.c rc = -ENOTUNIQ; rc 165 lib/cib/cib_attrs.c return rc; rc 176 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 187 lib/cib/cib_attrs.c rc = find_nvpair_attr_delegate(the_cib, XML_ATTR_ID, section, node_uuid, set_type, set_name, rc 189 lib/cib/cib_attrs.c if (rc == pcmk_ok) { rc 193 lib/cib/cib_attrs.c } else if (rc != -ENXIO) { rc 194 lib/cib/cib_attrs.c return rc; rc 309 lib/cib/cib_attrs.c rc = cib_internal_op(the_cib, CIB_OP_MODIFY, NULL, section, xml_top, NULL, rc 312 lib/cib/cib_attrs.c if (rc < pcmk_ok) { rc 314 lib/cib/cib_attrs.c attr_name, attr_value, section, crm_str(set_name), pcmk_strerror(rc)); rc 322 lib/cib/cib_attrs.c return rc; rc 331 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 339 lib/cib/cib_attrs.c rc = find_nvpair_attr_delegate(the_cib, XML_NVPAIR_ATTR_VALUE, section, node_uuid, set_type, rc 341 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 343 lib/cib/cib_attrs.c attr_name, section, crm_str(set_name), crm_str(node_uuid), pcmk_strerror(rc)); rc 345 lib/cib/cib_attrs.c return rc; rc 354 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 362 lib/cib/cib_attrs.c rc = find_nvpair_attr_delegate(the_cib, XML_ATTR_ID, section, node_uuid, set_type, rc 365 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 366 lib/cib/cib_attrs.c return rc; rc 373 lib/cib/cib_attrs.c rc = cib_internal_op(the_cib, CIB_OP_DELETE, NULL, section, xml_obj, NULL, rc 376 lib/cib/cib_attrs.c if (rc == pcmk_ok) { rc 385 lib/cib/cib_attrs.c return rc; rc 401 lib/cib/cib_attrs.c int rc = -ENXIO; rc 407 lib/cib/cib_attrs.c return rc; rc 414 lib/cib/cib_attrs.c CRM_CHECK(result != NULL, return rc); rc 457 lib/cib/cib_attrs.c rc = pcmk_ok; rc 460 lib/cib/cib_attrs.c return rc; rc 486 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 504 lib/cib/cib_attrs.c rc = get_uuid_from_result(xml_search, uuid, is_remote_node); rc 506 lib/cib/cib_attrs.c rc = -ENXIO; rc 512 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 514 lib/cib/cib_attrs.c uname, pcmk_strerror(rc)); rc 518 lib/cib/cib_attrs.c return rc; rc 524 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 533 lib/cib/cib_attrs.c rc = the_cib->cmds->query(the_cib, XML_CIB_TAG_NODES, &fragment, rc 535 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 536 lib/cib/cib_attrs.c return rc; rc 545 lib/cib/cib_attrs.c rc = -ENXIO; rc 558 lib/cib/cib_attrs.c rc = pcmk_ok; rc 566 lib/cib/cib_attrs.c return rc; rc 572 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 587 lib/cib/cib_attrs.c rc = update_attr_delegate(the_cib, cib_sync_call, scope, uuid, NULL, NULL, rc 591 lib/cib/cib_attrs.c return rc; rc 31 lib/cib/cib_client.c int rc, xmlNode * output)); rc 245 lib/cib/cib_client.c int rc = 0; rc 249 lib/cib/cib_client.c rc = mkdir(cib_home, 0700); rc 250 lib/cib/cib_client.c if (rc < 0 && errno != EEXIST) { rc 438 lib/cib/cib_client.c int rc, xmlNode * output)) rc 549 lib/cib/cib_client.c int rc = 0; rc 554 lib/cib/cib_client.c rc = strcmp(a_client->event, b_client->event); rc 555 lib/cib/cib_client.c if (rc == 0) { rc 567 lib/cib/cib_client.c return rc; rc 101 lib/cib/cib_file.c int rc = pcmk__file_contents(sigfile, &expected); rc 103 lib/cib/cib_file.c switch (rc) { rc 115 lib/cib/cib_file.c sigfile, pcmk_rc_str(rc)); rc 248 lib/cib/cib_file.c int rc = 0; rc 273 lib/cib/cib_file.c rc = -1; rc 279 lib/cib/cib_file.c rc = -1; rc 291 lib/cib/cib_file.c rc = -1; rc 296 lib/cib/cib_file.c rc = -1; rc 303 lib/cib/cib_file.c rc = -1; rc 314 lib/cib/cib_file.c return rc; rc 364 lib/cib/cib_file.c int rc, fd; rc 385 lib/cib/cib_file.c rc = cib_file_read_and_verify(cib_path, NULL, NULL); rc 386 lib/cib/cib_file.c if ((rc != pcmk_ok) && (rc != -ENOENT)) { rc 453 lib/cib/cib_file.c rc = pcmk__write_sync(fd, digest); rc 454 lib/cib/cib_file.c if (rc != pcmk_rc_ok) { rc 456 lib/cib/cib_file.c tmp_digest, pcmk_rc_str(rc)); rc 467 lib/cib/cib_file.c rc = cib_file_read_and_verify(tmp_cib, tmp_digest, NULL); rc 468 lib/cib/cib_file.c CRM_ASSERT(rc == 0); rc 582 lib/cib/cib_file.c int rc = pcmk_ok; rc 586 lib/cib/cib_file.c rc = -EINVAL; rc 588 lib/cib/cib_file.c rc = load_file_cib(private->filename); rc 591 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 599 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); rc 601 lib/cib/cib_file.c return rc; rc 619 lib/cib/cib_file.c int rc = 0; rc 665 lib/cib/cib_file.c rc = -1; rc 678 lib/cib/cib_file.c return rc; rc 697 lib/cib/cib_file.c int rc = pcmk_ok; rc 710 lib/cib/cib_file.c rc = pcmk_err_generic; rc 718 lib/cib/cib_file.c rc = pcmk_err_generic; rc 722 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 733 lib/cib/cib_file.c return rc; rc 739 lib/cib/cib_file.c int rc = pcmk_ok; rc 742 lib/cib/cib_file.c rc = cib_file_signoff(cib); rc 745 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 754 lib/cib/cib_file.c fprintf(stderr, "Couldn't sign off: %d\n", rc); rc 757 lib/cib/cib_file.c return rc; rc 793 lib/cib/cib_file.c int rc = pcmk_ok; rc 855 lib/cib/cib_file.c rc = cib_perform_op(op, call_options, fn, query, rc 860 lib/cib/cib_file.c if (rc == -pcmk_err_schema_validation) { rc 864 lib/cib/cib_file.c if (rc != pcmk_ok) { rc 877 lib/cib/cib_file.c cib->op_callback(NULL, cib->call_id, rc, output); rc 892 lib/cib/cib_file.c return rc; rc 149 lib/cib/cib_native.c int rc = pcmk_ok; rc 185 lib/cib/cib_native.c rc = -ENOTCONN; rc 195 lib/cib/cib_native.c if (rc != pcmk_ok || native->ipc == NULL || crm_ipc_connected(native->ipc) == FALSE) { rc 197 lib/cib/cib_native.c rc = -ENOTCONN; rc 200 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 212 lib/cib/cib_native.c rc = pcmk_ok; rc 218 lib/cib/cib_native.c rc = -EPROTO; rc 223 lib/cib/cib_native.c rc = -EPROTO; rc 229 lib/cib/cib_native.c rc = -ECOMM; rc 235 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 241 lib/cib/cib_native.c name, pcmk_strerror(rc)); rc 243 lib/cib/cib_native.c return rc; rc 277 lib/cib/cib_native.c int rc = pcmk_ok; rc 280 lib/cib/cib_native.c rc = cib_native_signoff(cib); rc 292 lib/cib/cib_native.c return rc; rc 308 lib/cib/cib_native.c int rc = pcmk_ok; rc 349 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, cib->call_timeout * 1000, &op_reply); rc 352 lib/cib/cib_native.c if (rc < 0) { rc 354 lib/cib/cib_native.c cib->call_timeout, pcmk_strerror(rc), rc); rc 355 lib/cib/cib_native.c rc = -ECOMM; rc 368 lib/cib/cib_native.c rc = pcmk_ok; rc 374 lib/cib/cib_native.c if (crm_element_value_int(op_reply, F_CIB_RC, &rc) != 0) { rc 375 lib/cib/cib_native.c rc = -EPROTO; rc 388 lib/cib/cib_native.c rc = -ENOMSG; rc 394 lib/cib/cib_native.c rc = -ENOMSG; rc 399 lib/cib/cib_native.c rc = -ENOTCONN; rc 401 lib/cib/cib_native.c } else if (rc == pcmk_ok && op_reply == NULL) { rc 402 lib/cib/cib_native.c rc = -ETIME; rc 405 lib/cib/cib_native.c switch (rc) { rc 412 lib/cib/cib_native.c rc = pcmk_ok; rc 418 lib/cib/cib_native.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 426 lib/cib/cib_native.c crm_warn("Call failed: %s", pcmk_strerror(rc)); rc 437 lib/cib/cib_native.c return rc; rc 459 lib/cib/cib_native.c int rc = pcmk_ok; rc 467 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, rc 469 lib/cib/cib_native.c if (rc <= 0) { rc 470 lib/cib/cib_native.c crm_trace("Notification not registered: %d", rc); rc 471 lib/cib/cib_native.c rc = -ECOMM; rc 476 lib/cib/cib_native.c return rc; rc 96 lib/cib/cib_ops.c int rc = 0; rc 114 lib/cib/cib_ops.c rc = update_validation(result_cib, &new_version, max_version, TRUE, rc 123 lib/cib/cib_ops.c return rc; rc 680 lib/cib/cib_ops.c int rc = pcmk_ok; rc 700 lib/cib/cib_ops.c rc = -ENXIO; rc 728 lib/cib/cib_ops.c rc = -EINVAL; rc 739 lib/cib/cib_ops.c rc = -ENXIO; rc 811 lib/cib/cib_ops.c return rc; rc 207 lib/cib/cib_remote.c int rc; rc 222 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, rc 224 lib/cib/cib_remote.c if (rc != pcmk_rc_ok) { rc 226 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); rc 273 lib/cib/cib_remote.c rc = pcmk_ok; rc 275 lib/cib/cib_remote.c rc = -ENOTCONN; rc 282 lib/cib/cib_remote.c rc = -EPROTO; rc 291 lib/cib/cib_remote.c rc = -EPROTO; rc 294 lib/cib/cib_remote.c rc = -EPROTO; rc 303 lib/cib/cib_remote.c if (rc != 0) { rc 305 lib/cib/cib_remote.c return rc; rc 312 lib/cib/cib_remote.c return rc; rc 328 lib/cib/cib_remote.c int rc; rc 332 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); rc 338 lib/cib/cib_remote.c if (rc == ENOTCONN) { rc 347 lib/cib/cib_remote.c int rc; rc 355 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); rc 377 lib/cib/cib_remote.c if (rc == ENOTCONN) { rc 387 lib/cib/cib_remote.c int rc = pcmk_ok; rc 393 lib/cib/cib_remote.c rc = tcgetattr(0, &settings); rc 394 lib/cib/cib_remote.c if(rc == 0) { rc 396 lib/cib/cib_remote.c rc = tcsetattr(0, TCSANOW, &settings); rc 399 lib/cib/cib_remote.c if(rc == 0) { rc 402 lib/cib/cib_remote.c rc = scanf("%1023s", private->passwd); rc 406 lib/cib/cib_remote.c if (rc < 1) { rc 411 lib/cib/cib_remote.c rc = tcsetattr(0, TCSANOW, &settings); rc 415 lib/cib/cib_remote.c rc = -EINVAL; rc 418 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 419 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); rc 422 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 423 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); rc 426 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 434 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 442 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); rc 445 lib/cib/cib_remote.c return rc; rc 451 lib/cib/cib_remote.c int rc = pcmk_ok; rc 463 lib/cib/cib_remote.c return rc; rc 469 lib/cib/cib_remote.c int rc = pcmk_ok; rc 473 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); rc 474 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 486 lib/cib/cib_remote.c return rc; rc 493 lib/cib/cib_remote.c int rc; rc 548 lib/cib/cib_remote.c rc = pcmk_rc_ok; rc 549 lib/cib/cib_remote.c while (remaining_time > 0 && (rc != ENOTCONN)) { rc 553 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, rc 591 lib/cib/cib_remote.c if (rc == ENOTCONN) { rc 602 lib/cib/cib_remote.c if (crm_element_value_int(op_reply, F_CIB_RC, &rc) != 0) { rc 603 lib/cib/cib_remote.c rc = -EPROTO; rc 606 lib/cib/cib_remote.c if (rc == -pcmk_err_diff_resync) { rc 608 lib/cib/cib_remote.c rc = pcmk_ok; rc 611 lib/cib/cib_remote.c if (rc == pcmk_ok || rc == -EPERM) { rc 616 lib/cib/cib_remote.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 635 lib/cib/cib_remote.c return rc; rc 188 lib/cib/cib_utils.c bool rc = FALSE; rc 197 lib/cib/cib_utils.c rc = crm_is_true(value); rc 201 lib/cib/cib_utils.c crm_trace("CIB ACL is %s", rc ? "enabled" : "disabled"); rc 203 lib/cib/cib_utils.c return rc; rc 212 lib/cib/cib_utils.c int rc = pcmk_ok; rc 257 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, cib_ro, result_cib, output); rc 278 lib/cib/cib_utils.c return rc; rc 293 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, scratch, &scratch, output); rc 298 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, current_cib, &scratch, output); rc 310 lib/cib/cib_utils.c if (rc == pcmk_ok && scratch == NULL) { rc 311 lib/cib/cib_utils.c rc = -EINVAL; rc 314 lib/cib/cib_utils.c } else if(rc == pcmk_ok && xml_acl_denied(scratch)) { rc 316 lib/cib/cib_utils.c rc = -EACCES; rc 319 lib/cib/cib_utils.c } else if (rc != pcmk_ok) { rc 329 lib/cib/cib_utils.c rc = -EPROTONOSUPPORT; rc 346 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 356 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 468 lib/cib/cib_utils.c if ((rc == pcmk_ok) && check_schema && !validate_xml(scratch, NULL, TRUE)) { rc 474 lib/cib/cib_utils.c rc = -pcmk_err_schema_validation; rc 481 lib/cib/cib_utils.c if(rc != pcmk_ok && cib_acl_enabled(current_cib, user)) { rc 499 lib/cib/cib_utils.c return rc; rc 538 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) rc 544 lib/cib/cib_utils.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 558 lib/cib/cib_utils.c if (rc == -pcmk_err_diff_resync) { rc 560 lib/cib/cib_utils.c rc = pcmk_ok; rc 563 lib/cib/cib_utils.c if (blob && blob->callback && (rc == pcmk_ok || blob->only_success == FALSE)) { rc 565 lib/cib/cib_utils.c blob->callback(msg, call_id, rc, output, blob->user_data); rc 567 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { rc 568 lib/cib/cib_utils.c crm_warn("CIB command failed: %s", pcmk_strerror(rc)); rc 579 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); rc 738 lib/cib/cib_utils.c int rc = pcmk_err_generic; rc 746 lib/cib/cib_utils.c crm_element_value_int(event, F_CIB_RC, &rc); rc 749 lib/cib/cib_utils.c if (rc < pcmk_ok || diff == NULL) { rc 750 lib/cib/cib_utils.c return rc; rc 758 lib/cib/cib_utils.c rc = cib_process_diff(NULL, cib_none, NULL, event, diff, input, output, rc 761 lib/cib/cib_utils.c if (rc != pcmk_ok) { rc 763 lib/cib/cib_utils.c pcmk_strerror(rc), rc, *output); rc 765 lib/cib/cib_utils.c if (rc == -pcmk_err_old_data) { rc 771 lib/cib/cib_utils.c return rc; rc 774 lib/cib/cib_utils.c return rc; rc 64 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 82 lib/cluster/corosync.c rc = cmap_initialize(&local_handle); rc 83 lib/cluster/corosync.c if (rc != CS_OK) { rc 85 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 90 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 92 lib/cluster/corosync.c if (rc != CS_OK) { rc 94 lib/cluster/corosync.c cs_strerror(rc)); rc 102 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); rc 103 lib/cluster/corosync.c if (rc != CS_OK) { rc 105 lib/cluster/corosync.c cs_strerror(rc), rc); rc 129 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &id); rc 133 lib/cluster/corosync.c if (rc != CS_OK) { rc 187 lib/cluster/corosync.c int rc = 0; rc 189 lib/cluster/corosync.c rc = quorum_dispatch(pcmk_quorum_handle, CS_DISPATCH_ALL); rc 190 lib/cluster/corosync.c if (rc < 0) { rc 191 lib/cluster/corosync.c crm_err("Connection to the Quorum API failed: %d", rc); rc 275 lib/cluster/corosync.c cs_error_t rc; rc 290 lib/cluster/corosync.c rc = quorum_initialize(&pcmk_quorum_handle, &quorum_callbacks, &quorum_type); rc 291 lib/cluster/corosync.c if (rc != CS_OK) { rc 293 lib/cluster/corosync.c cs_strerror(rc), rc); rc 301 lib/cluster/corosync.c rc = quorum_fd_get(pcmk_quorum_handle, &fd); rc 302 lib/cluster/corosync.c if (rc != CS_OK) { rc 304 lib/cluster/corosync.c strerror(rc), rc); rc 315 lib/cluster/corosync.c rc = CS_ERR_ACCESS; rc 320 lib/cluster/corosync.c rc = CS_ERR_ACCESS; rc 324 lib/cluster/corosync.c rc = quorum_getquorate(pcmk_quorum_handle, &quorate); rc 325 lib/cluster/corosync.c if (rc != CS_OK) { rc 326 lib/cluster/corosync.c crm_err("Could not obtain the current Quorum API state: %d", rc); rc 338 lib/cluster/corosync.c rc = quorum_trackstart(pcmk_quorum_handle, CS_TRACK_CHANGES | CS_TRACK_CURRENT); rc 339 lib/cluster/corosync.c if (rc != CS_OK) { rc 340 lib/cluster/corosync.c crm_err("Could not setup Quorum API notifications: %d", rc); rc 349 lib/cluster/corosync.c if (rc != CS_OK) { rc 362 lib/cluster/corosync.c int rc = init_cs_connection_once(cluster); rc 366 lib/cluster/corosync.c switch (rc) { rc 486 lib/cluster/corosync.c int rc = CS_OK; rc 489 lib/cluster/corosync.c rc = cmap_initialize(&handle); rc 491 lib/cluster/corosync.c switch(rc) { rc 495 lib/cluster/corosync.c crm_debug("Failed to initialize the cmap API: Permission denied (%d)", rc); rc 503 lib/cluster/corosync.c ais_error2text(rc), rc); rc 533 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 544 lib/cluster/corosync.c rc = cmap_initialize(&cmap_handle); rc 545 lib/cluster/corosync.c if (rc != CS_OK) { rc 547 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 552 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 554 lib/cluster/corosync.c if (rc != CS_OK) { rc 555 lib/cluster/corosync.c crm_warn("Could not connect to Cluster Configuration Database API, error %d", rc); rc 559 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); rc 560 lib/cluster/corosync.c if (rc != CS_OK) { rc 562 lib/cluster/corosync.c cs_strerror(rc), rc); rc 588 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &nodeid); rc 591 lib/cluster/corosync.c if (rc != CS_OK) { rc 643 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 650 lib/cluster/corosync.c rc = cmap_initialize(&handle); rc 651 lib/cluster/corosync.c if (rc != CS_OK) { rc 653 lib/cluster/corosync.c cs_strerror(rc), rc); rc 657 lib/cluster/corosync.c rc = cmap_fd_get(handle, &fd); rc 658 lib/cluster/corosync.c if (rc != CS_OK) { rc 660 lib/cluster/corosync.c cs_strerror(rc), rc); rc 678 lib/cluster/corosync.c rc = cmap_get_string(handle, "totem.cluster_name", &cluster_name); rc 679 lib/cluster/corosync.c if (rc != CS_OK) { rc 680 lib/cluster/corosync.c crm_info("Cannot get totem.cluster_name: %s (%d)", cs_strerror(rc), rc); rc 706 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 723 lib/cluster/corosync.c rc = cmap_initialize(&cmap_handle); rc 724 lib/cluster/corosync.c if (rc != CS_OK) { rc 726 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 731 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 733 lib/cluster/corosync.c if (rc != CS_OK) { rc 735 lib/cluster/corosync.c cs_strerror(rc), rc); rc 739 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); rc 740 lib/cluster/corosync.c if (rc != CS_OK) { rc 742 lib/cluster/corosync.c cs_strerror(rc), rc); rc 760 lib/cluster/corosync.c rc = cmap_iter_init(cmap_handle, prefix, &iter_handle); rc 761 lib/cluster/corosync.c if (rc != CS_OK) { rc 763 lib/cluster/corosync.c prefix, cs_strerror(rc), rc); rc 41 lib/cluster/cpg.c if(rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { \ rc 67 lib/cluster/cpg.c cs_error_t rc = CS_OK; rc 84 lib/cluster/cpg.c cs_repeat(retries, 5, rc = cpg_initialize(&local_handle, &cb)); rc 85 lib/cluster/cpg.c if (rc != CS_OK) { rc 87 lib/cluster/cpg.c cs_strerror(rc), rc); rc 91 lib/cluster/cpg.c rc = cpg_fd_get(local_handle, &fd); rc 92 lib/cluster/cpg.c if (rc != CS_OK) { rc 94 lib/cluster/cpg.c cs_strerror(rc), rc); rc 113 lib/cluster/cpg.c if (rc == CS_OK) { rc 116 lib/cluster/cpg.c cs_repeat(retries, 5, rc = cpg_local_get(local_handle, &local_nodeid)); rc 119 lib/cluster/cpg.c if (rc != CS_OK) { rc 120 lib/cluster/cpg.c crm_err("Could not get local node id from the CPG API: %s (%d)", ais_error2text(rc), rc); rc 151 lib/cluster/cpg.c ssize_t rc = 0; rc 179 lib/cluster/cpg.c rc = cpg_mcast_joined(*handle, CPG_TYPE_AGREED, iov, 1); rc 181 lib/cluster/cpg.c if (rc != CS_OK) { rc 198 lib/cluster/cpg.c sent, queue_len, last_sent, ais_error2text(rc), rc 199 lib/cluster/cpg.c (long long) rc); rc 202 lib/cluster/cpg.c sent, queue_len, last_sent, ais_error2text(rc), rc 203 lib/cluster/cpg.c (long long) rc); rc 208 lib/cluster/cpg.c if(rc != CS_OK) { rc 215 lib/cluster/cpg.c return rc; rc 234 lib/cluster/cpg.c int rc = 0; rc 237 lib/cluster/cpg.c rc = cpg_dispatch(cluster->cpg_handle, CS_DISPATCH_ONE); rc 238 lib/cluster/cpg.c if (rc != CS_OK) { rc 239 lib/cluster/cpg.c crm_err("Connection to the CPG API failed: %s (%d)", ais_error2text(rc), rc); rc 308 lib/cluster/cpg.c int rc = BZ_OK; rc 318 lib/cluster/cpg.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &new_size, msg->data, msg->compressed_size, 1, 0); rc 320 lib/cluster/cpg.c if (rc != BZ_OK) { rc 322 lib/cluster/cpg.c bz2_strerror(rc), rc); rc 327 lib/cluster/cpg.c CRM_ASSERT(rc == BZ_OK); rc 541 lib/cluster/cpg.c cs_error_t rc; rc 574 lib/cluster/cpg.c cs_repeat(retries, 30, rc = cpg_initialize(&handle, &cpg_callbacks)); rc 575 lib/cluster/cpg.c if (rc != CS_OK) { rc 577 lib/cluster/cpg.c cs_strerror(rc), rc); rc 581 lib/cluster/cpg.c rc = cpg_fd_get(handle, &fd); rc 582 lib/cluster/cpg.c if (rc != CS_OK) { rc 584 lib/cluster/cpg.c cs_strerror(rc), rc); rc 595 lib/cluster/cpg.c rc = CS_ERR_ACCESS; rc 600 lib/cluster/cpg.c rc = CS_ERR_ACCESS; rc 613 lib/cluster/cpg.c cs_repeat(retries, 30, rc = cpg_join(handle, &cluster->group)); rc 614 lib/cluster/cpg.c if (rc != CS_OK) { rc 615 lib/cluster/cpg.c crm_err("Could not join the CPG group '%s': %d", message_name, rc); rc 624 lib/cluster/cpg.c if (rc != CS_OK) { rc 637 lib/cluster/cpg.c gboolean rc = TRUE; rc 641 lib/cluster/cpg.c rc = send_cluster_text(crm_class_cluster, data, local, node, dest); rc 643 lib/cluster/cpg.c return rc; rc 217 lib/cluster/election.c int rc = 0; rc 221 lib/cluster/election.c rc = getrusage(RUSAGE_SELF, &info); rc 226 lib/cluster/election.c if (rc < 0) { rc 71 lib/common/agents.c pcmk__effective_rc(int rc) rc 73 lib/common/agents.c int remapped_rc = rc; rc 75 lib/common/agents.c switch (rc) { rc 201 lib/common/alerts.c int rc = -1; rc 209 lib/common/alerts.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 210 lib/common/alerts.c if (rc < pcmk_ok) { rc 211 lib/common/alerts.c crm_trace("Ignore failed CIB update: %s (%d)", pcmk_strerror(rc), rc); rc 56 lib/common/attrd_client.c int rc = -ENOTCONN; // initially handled as legacy return code rc 80 lib/common/attrd_client.c rc = crm_ipc_send(ipc, attrd_op, flags, 0, NULL); rc 88 lib/common/attrd_client.c } else if (rc > 0) { rc 91 lib/common/attrd_client.c } else if (rc == -EAGAIN || rc == -EALREADY) { rc 103 lib/common/attrd_client.c if (rc > 0) { rc 104 lib/common/attrd_client.c rc = pcmk_ok; rc 106 lib/common/attrd_client.c return pcmk_legacy2rc(rc); rc 140 lib/common/attrd_client.c int rc = pcmk_rc_ok; rc 194 lib/common/attrd_client.c rc = EINVAL; rc 211 lib/common/attrd_client.c rc = send_attrd_op(ipc, update); rc 218 lib/common/attrd_client.c display_command, display_host, pcmk_rc_str(rc), rc); rc 221 lib/common/attrd_client.c name, value, display_host, pcmk_rc_str(rc), rc); rc 223 lib/common/attrd_client.c return rc; rc 246 lib/common/attrd_client.c int rc = pcmk_rc_ok; rc 259 lib/common/attrd_client.c rc = send_attrd_op(ipc, clear_op); rc 271 lib/common/attrd_client.c (host? host : "all nodes"), pcmk_rc_str(rc), rc); rc 272 lib/common/attrd_client.c return rc; rc 43 lib/common/cib_secrets.c bool rc = false; rc 49 lib/common/cib_secrets.c rc = true; rc 52 lib/common/cib_secrets.c return rc; rc 102 lib/common/cib_secrets.c int rc = pcmk_rc_ok; rc 137 lib/common/cib_secrets.c rc = ENAMETOOLONG; rc 146 lib/common/cib_secrets.c rc = ENOENT; rc 155 lib/common/cib_secrets.c rc = ENAMETOOLONG; rc 165 lib/common/cib_secrets.c rc = ENOENT; rc 173 lib/common/cib_secrets.c rc = pcmk_rc_cib_corrupt; rc 181 lib/common/cib_secrets.c return rc; rc 48 lib/common/io.c int rc = pcmk_rc_ok; rc 58 lib/common/io.c rc = errno; rc 65 lib/common/io.c rc = errno; rc 69 lib/common/io.c return rc; rc 83 lib/common/io.c int rc = pcmk__build_path(path_c, mode); rc 85 lib/common/io.c if (rc != pcmk_rc_ok) { rc 87 lib/common/io.c path_c, pcmk_rc_str(rc)); rc 162 lib/common/io.c int rc; rc 173 lib/common/io.c rc = errno; rc 175 lib/common/io.c series_file, strerror(rc)); rc 177 lib/common/io.c return rc; rc 181 lib/common/io.c rc = (errno == 0)? pcmk_rc_unknown_format : errno; rc 183 lib/common/io.c series_file, pcmk_rc_str(rc)); rc 185 lib/common/io.c return rc; rc 209 lib/common/io.c int rc = 0; rc 226 lib/common/io.c rc = fprintf(file_strm, "%u", sequence); rc 227 lib/common/io.c if (rc < 0) { rc 260 lib/common/io.c int rc = pcmk_rc_ok; rc 267 lib/common/io.c rc = errno; rc 270 lib/common/io.c return rc; rc 454 lib/common/io.c int rc = pcmk_rc_ok; rc 462 lib/common/io.c rc = errno; rc 468 lib/common/io.c rc = errno; rc 477 lib/common/io.c rc = errno; rc 485 lib/common/io.c rc = EIO; rc 493 lib/common/io.c return rc; rc 508 lib/common/io.c int rc = 0; rc 515 lib/common/io.c rc = EIO; rc 518 lib/common/io.c rc = errno; rc 521 lib/common/io.c rc = errno; rc 524 lib/common/io.c return rc; rc 363 lib/common/ipc_client.c int rc; rc 371 lib/common/ipc_client.c rc = poll(&pollfd, 1, timeout_ms); rc 372 lib/common/ipc_client.c if (rc < 0) { rc 374 lib/common/ipc_client.c } else if (rc == 0) { rc 407 lib/common/ipc_client.c int rc; rc 414 lib/common/ipc_client.c rc = pcmk__add_mainloop_ipc(api->ipc, G_PRIORITY_DEFAULT, api, rc 416 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 417 lib/common/ipc_client.c return rc; rc 431 lib/common/ipc_client.c int rc; rc 434 lib/common/ipc_client.c rc = errno; rc 436 lib/common/ipc_client.c return rc; rc 454 lib/common/ipc_client.c int rc = pcmk_rc_ok; rc 478 lib/common/ipc_client.c rc = connect_with_main_loop(api); rc 483 lib/common/ipc_client.c rc = connect_without_main_loop(api); rc 486 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 487 lib/common/ipc_client.c return rc; rc 491 lib/common/ipc_client.c rc = api->cmds->post_connect(api); rc 492 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 496 lib/common/ipc_client.c return rc; rc 586 lib/common/ipc_client.c int rc; rc 604 lib/common/ipc_client.c rc = crm_ipc_send(api->ipc, request, flags, 0, &reply); rc 606 lib/common/ipc_client.c if (rc < 0) { rc 607 lib/common/ipc_client.c return pcmk_legacy2rc(rc); rc 608 lib/common/ipc_client.c } else if (rc == 0) { rc 694 lib/common/ipc_client.c int rc = 0; rc 708 lib/common/ipc_client.c rc = pcmk__send_ipc_request(api, request); rc 712 lib/common/ipc_client.c pcmk_ipc_name(api, true), node_name, (unsigned long) nodeid, rc); rc 713 lib/common/ipc_client.c return rc; rc 909 lib/common/ipc_client.c bool rc = FALSE; rc 924 lib/common/ipc_client.c rc = qb_ipcc_is_connected(client->ipc); rc 925 lib/common/ipc_client.c if (rc == FALSE) { rc 928 lib/common/ipc_client.c return rc; rc 941 lib/common/ipc_client.c int rc; rc 950 lib/common/ipc_client.c rc = poll(&(client->pfd), 1, 0); rc 951 lib/common/ipc_client.c return (rc < 0)? -errno : rc; rc 961 lib/common/ipc_client.c int rc = 0; rc 970 lib/common/ipc_client.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + sizeof(pcmk__ipc_header_t), &size_u, rc 973 lib/common/ipc_client.c if (rc != BZ_OK) { rc 975 lib/common/ipc_client.c bz2_strerror(rc), rc); rc 1015 lib/common/ipc_client.c int rc = crm_ipc_decompress(client); rc 1017 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1018 lib/common/ipc_client.c return pcmk_rc2legacy(rc); rc 1079 lib/common/ipc_client.c int rc = pcmk_rc_ok; rc 1089 lib/common/ipc_client.c rc = crm_ipc_decompress(client); rc 1090 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1091 lib/common/ipc_client.c return rc; rc 1120 lib/common/ipc_client.c rc = (int) -*bytes; // System errno rc 1122 lib/common/ipc_client.c return rc; rc 1142 lib/common/ipc_client.c int rc = 0; rc 1182 lib/common/ipc_client.c rc = pcmk__ipc_prepare_iov(id, message, client->max_buf_size, &iov, &bytes); rc 1183 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1185 lib/common/ipc_client.c client->name, pcmk_rc_str(rc), rc); rc 1186 lib/common/ipc_client.c return pcmk_rc2legacy(rc); rc 1225 lib/common/ipc_client.c rc = (int) qb_rc; // Negative of system errno, or bytes sent rc 1235 lib/common/ipc_client.c rc = internal_ipc_get_reply(client, header->qb.id, ms_timeout, &bytes); rc 1236 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1245 lib/common/ipc_client.c rc = (int) bytes; // Negative system errno, or size of reply received rc 1253 lib/common/ipc_client.c rc = (int) qb_rc; // Negative system errno, or size of reply received rc 1256 lib/common/ipc_client.c if (rc > 0) { rc 1260 lib/common/ipc_client.c rc, hdr->qb.id, client->name, header->qb.id, rc 1269 lib/common/ipc_client.c client->name, header->qb.id, rc); rc 1275 lib/common/ipc_client.c CRM_XS " rc=%d", client->name, header->qb.id, rc); rc 1277 lib/common/ipc_client.c } else if (rc == -ETIMEDOUT) { rc 1279 lib/common/ipc_client.c client->name, header->qb.id, pcmk_strerror(rc), ms_timeout, rc 1280 lib/common/ipc_client.c rc); rc 1283 lib/common/ipc_client.c } else if (rc <= 0) { rc 1286 lib/common/ipc_client.c ((rc == 0)? "No bytes sent" : pcmk_strerror(rc)), rc); rc 1290 lib/common/ipc_client.c return rc; rc 1361 lib/common/ipc_client.c int rc = pcmk_rc_ipc_unresponsive; rc 1370 lib/common/ipc_client.c rc = pcmk_rc_ipc_unresponsive; rc 1376 lib/common/ipc_client.c rc = (int) -qb_rc; // System errno rc 1378 lib/common/ipc_client.c name, pcmk_rc_str(rc), rc); rc 1385 lib/common/ipc_client.c rc = pcmk_legacy2rc(auth_rc); rc 1387 lib/common/ipc_client.c CRM_XS " rc=%d", name, pcmk_rc_str(rc), rc); rc 1400 lib/common/ipc_client.c rc = pcmk_rc_ipc_unauthorized; rc 1404 lib/common/ipc_client.c rc = pcmk_rc_ok; rc 1426 lib/common/ipc_client.c return rc; rc 76 lib/common/ipc_controld.c int rc; rc 81 lib/common/ipc_controld.c rc = pcmk__send_ipc_request(api, hello); rc 83 lib/common/ipc_controld.c if (rc != pcmk_rc_ok) { rc 85 lib/common/ipc_controld.c pcmk_ipc_name(api, true), pcmk_rc_str(rc), rc); rc 89 lib/common/ipc_controld.c return rc; rc 295 lib/common/ipc_controld.c int rc; rc 300 lib/common/ipc_controld.c rc = pcmk__send_ipc_request(api, request); rc 301 lib/common/ipc_controld.c if ((rc == pcmk_rc_ok) && reply_is_expected) { rc 306 lib/common/ipc_controld.c return rc; rc 338 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 352 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 355 lib/common/ipc_controld.c return rc; rc 371 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 381 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 383 lib/common/ipc_controld.c return rc; rc 399 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 405 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 407 lib/common/ipc_controld.c return rc; rc 422 lib/common/ipc_controld.c int rc = EINVAL; rc 427 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 430 lib/common/ipc_controld.c return rc; rc 450 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 456 lib/common/ipc_controld.c rc = send_controller_request(api, request, false); rc 458 lib/common/ipc_controld.c return rc; rc 477 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 483 lib/common/ipc_controld.c rc = send_controller_request(api, request, false); rc 485 lib/common/ipc_controld.c return rc; rc 496 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 544 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 547 lib/common/ipc_controld.c return rc; rc 209 lib/common/ipc_pacemakerd.c int rc; rc 220 lib/common/ipc_pacemakerd.c rc = pcmk__send_ipc_request(api, cmd); rc 221 lib/common/ipc_pacemakerd.c if (rc != pcmk_rc_ok) { rc 223 lib/common/ipc_pacemakerd.c pcmk_rc_str(rc), rc); rc 224 lib/common/ipc_pacemakerd.c rc = ECOMM; rc 228 lib/common/ipc_pacemakerd.c rc = ENOMSG; rc 231 lib/common/ipc_pacemakerd.c return rc; rc 411 lib/common/ipc_server.c int rc = 0; rc 418 lib/common/ipc_server.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &size_u, text, header->size_compressed, 1, 0); rc 421 lib/common/ipc_server.c if (rc != BZ_OK) { rc 423 lib/common/ipc_server.c bz2_strerror(rc), rc); rc 477 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 483 lib/common/ipc_server.c return rc; rc 488 lib/common/ipc_server.c return rc; rc 508 lib/common/ipc_server.c rc = (int) -qb_rc; rc 530 lib/common/ipc_server.c pcmk_rc_str(rc), (long long) qb_rc); rc 549 lib/common/ipc_server.c return rc; rc 561 lib/common/ipc_server.c return rc; rc 664 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 711 lib/common/ipc_server.c rc = (int) -qb_rc; rc 715 lib/common/ipc_server.c header->qb.id, c->pid, pcmk_rc_str(rc), rc 729 lib/common/ipc_server.c rc = crm_ipcs_flush_events(c); rc 734 lib/common/ipc_server.c if ((rc == EPIPE) || (rc == ENOTCONN)) { rc 737 lib/common/ipc_server.c return rc; rc 745 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 750 lib/common/ipc_server.c rc = pcmk__ipc_prepare_iov(request, message, crm_ipc_default_buffer_size(), rc 752 lib/common/ipc_server.c if (rc == pcmk_rc_ok) { rc 754 lib/common/ipc_server.c rc = pcmk__ipc_send_iov(c, iov, flags); rc 758 lib/common/ipc_server.c c->pid, pcmk_rc_str(rc), rc); rc 760 lib/common/ipc_server.c return rc; rc 783 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 794 lib/common/ipc_server.c rc = pcmk__ipc_send_xml(c, request, ack, flags); rc 797 lib/common/ipc_server.c return rc; rc 611 lib/common/iso8601.c int rc; rc 619 lib/common/iso8601.c rc = sscanf(time_str, "%d:%d:%d", &hour, &minute, &second); rc 620 lib/common/iso8601.c if (rc == 1) { rc 621 lib/common/iso8601.c rc = sscanf(time_str, "%2d%2d%2d", &hour, &minute, &second); rc 623 lib/common/iso8601.c if (rc == 0) { rc 769 lib/common/iso8601.c int rc = 0; rc 798 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d-%d", &year, &month, &day); rc 799 lib/common/iso8601.c if (rc == 1) { rc 801 lib/common/iso8601.c rc = sscanf(date_str, "%4d%2d%2d", &year, &month, &day); rc 803 lib/common/iso8601.c if (rc == 3) { rc 823 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d", &year, &day); rc 824 lib/common/iso8601.c if (rc == 2) { rc 839 lib/common/iso8601.c rc = sscanf(date_str, "%d-W%d-%d", &year, &week, &day); rc 840 lib/common/iso8601.c if (rc == 3) { rc 1010 lib/common/iso8601.c int an_int = 0, rc; rc 1022 lib/common/iso8601.c rc = parse_int(current, 10, 0, &an_int); rc 1023 lib/common/iso8601.c if (rc == 0) { rc 1028 lib/common/iso8601.c current += rc; rc 1374 lib/common/iso8601.c if(rc == 0) { \ rc 1378 lib/common/iso8601.c rc = 1; \ rc 1382 lib/common/iso8601.c rc = -1; \ rc 1389 lib/common/iso8601.c int rc = 0; rc 1394 lib/common/iso8601.c rc = 0; rc 1396 lib/common/iso8601.c rc = -1; rc 1398 lib/common/iso8601.c rc = 1; rc 1407 lib/common/iso8601.c return rc; rc 179 lib/common/logging.c int fd = 0, rc = 0; rc 204 lib/common/logging.c rc = stat(parent_dir, &parent); rc 206 lib/common/logging.c if (rc != 0) { rc 231 lib/common/logging.c rc = fstat(logfd, &st); rc 232 lib/common/logging.c if (rc < 0) { rc 257 lib/common/logging.c rc = fchown(logfd, pcmk_uid, pcmk_gid); rc 258 lib/common/logging.c if (rc < 0) { rc 265 lib/common/logging.c rc = fchmod(logfd, filemode); rc 266 lib/common/logging.c if (rc < 0) { rc 90 lib/common/mainloop.c int rc = TRUE; rc 100 lib/common/mainloop.c rc = callback(trig->user_data); rc 101 lib/common/mainloop.c if (rc < 0) { rc 104 lib/common/mainloop.c rc = TRUE; rc 107 lib/common/mainloop.c return rc; rc 654 lib/common/mainloop.c int rc = 0; rc 664 lib/common/mainloop.c crm_err("Could not create %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); rc 679 lib/common/mainloop.c rc = qb_ipcs_run(server); rc 680 lib/common/mainloop.c if (rc < 0) { rc 681 lib/common/mainloop.c crm_err("Could not start %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); rc 721 lib/common/mainloop.c long rc = 0; rc 725 lib/common/mainloop.c rc = crm_ipc_read(client->ipc); rc 726 lib/common/mainloop.c if (rc <= 0) { rc 728 lib/common/mainloop.c client->name, client, pcmk_strerror(rc), rc); rc 733 lib/common/mainloop.c crm_trace("New message from %s[%p] = %ld (I/O condition=%d)", client->name, client, rc, condition); rc 734 lib/common/mainloop.c if (client->dispatch_fn_ipc(buffer, rc, client->userdata) < 0) { rc 740 lib/common/mainloop.c } while (keep && rc > 0 && --max > 0); rc 868 lib/common/mainloop.c int rc = errno; rc 871 lib/common/mainloop.c return rc; rc 885 lib/common/mainloop.c int rc = pcmk__add_mainloop_ipc(ipc, priority, userdata, callbacks, rc 888 lib/common/mainloop.c if (rc != pcmk_rc_ok) { rc 891 lib/common/mainloop.c name, pcmk_rc_str(rc)); rc 1021 lib/common/mainloop.c int rc; rc 1024 lib/common/mainloop.c rc = kill(child->pid, SIGKILL); rc 1027 lib/common/mainloop.c rc = kill(-child->pid, SIGKILL); rc 1030 lib/common/mainloop.c if (rc < 0) { rc 1043 lib/common/mainloop.c int rc = 0; rc 1051 lib/common/mainloop.c rc = child_kill_helper(child); rc 1052 lib/common/mainloop.c if (rc == -ESRCH) { rc 1067 lib/common/mainloop.c int rc = 0; rc 1074 lib/common/mainloop.c rc = waitpid(child->pid, &status, flags); rc 1075 lib/common/mainloop.c if (rc == 0) { // WNOHANG in flags, and child status is not available rc 1080 lib/common/mainloop.c } else if (rc != child->pid) { rc 1162 lib/common/mainloop.c int waitflags = 0, rc = 0; rc 1175 lib/common/mainloop.c rc = child_kill_helper(match); rc 1176 lib/common/mainloop.c if(rc == -ESRCH) { rc 1186 lib/common/mainloop.c } else if(rc != 0) { rc 120 lib/common/nvpair.c int rc = 0; rc 130 lib/common/nvpair.c rc = strcmp(pair_a->name, pair_b->name); rc 131 lib/common/nvpair.c if (rc < 0) { rc 133 lib/common/nvpair.c } else if (rc > 0) { rc 139 lib/common/operations.c int rc = 0; rc 146 lib/common/operations.c rc = regcomp(notify_migrate_re, "^(.*)_(migrate_(from|to)|(pre|post)_notify_([a-z]+|migrate_(from|to)))_([0-9]+)$", rc 148 lib/common/operations.c CRM_ASSERT(rc == 0); rc 151 lib/common/operations.c rc = regexec(notify_migrate_re, key, nmatch, pmatch, 0); rc 152 lib/common/operations.c if (rc == REG_NOMATCH) { rc 430 lib/common/operations.c int rc = 0; rc 433 lib/common/operations.c decode_transition_key(op->user_data, NULL, NULL, NULL, &rc); rc 435 lib/common/operations.c return rc; rc 454 lib/common/operations.c if (target_rc != op->rc) { rc 123 lib/common/output.c int rc = pcmk_rc_ok; rc 132 lib/common/output.c rc = fn(out, args); rc 135 lib/common/output.c return rc; rc 936 lib/common/patchset.c int rc = pcmk_rc_ok; rc 947 lib/common/patchset.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 957 lib/common/patchset.c rc = ENOTUNIQ; rc 962 lib/common/patchset.c if (rc == pcmk_rc_ok) { rc 967 lib/common/patchset.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 978 lib/common/patchset.c rc = ENOTUNIQ; rc 984 lib/common/patchset.c return rc; rc 1041 lib/common/patchset.c int rc; rc 1065 lib/common/patchset.c rc = sscanf(current, "/%[^/]%s", section, remainder); rc 1066 lib/common/patchset.c if (rc > 0) { rc 1074 lib/common/patchset.c if ((rc == 1) && (target_position >= 0)) { rc 1096 lib/common/patchset.c } while ((rc == 2) && target); rc 1151 lib/common/patchset.c int rc = pcmk_rc_ok; rc 1182 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1213 lib/common/patchset.c rc = ENOMSG; rc 1233 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1328 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1334 lib/common/patchset.c return rc; rc 1341 lib/common/patchset.c int rc = pcmk_ok; rc 1346 lib/common/patchset.c return rc; rc 1353 lib/common/patchset.c rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset, format)); rc 1354 lib/common/patchset.c if (rc != pcmk_ok) { rc 1355 lib/common/patchset.c return rc; rc 1364 lib/common/patchset.c if (rc == pcmk_ok) { rc 1367 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset)); rc 1370 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset)); rc 1374 lib/common/patchset.c rc = -EINVAL; rc 1378 lib/common/patchset.c if ((rc == pcmk_ok) && (digest != NULL)) { rc 1394 lib/common/patchset.c rc = -pcmk_err_diff_failed; rc 1414 lib/common/patchset.c return rc; rc 31 lib/common/pid.c int rc = 0; rc 49 lib/common/pid.c rc = kill(pid, 0); rc 50 lib/common/pid.c if ((rc < 0) && (errno == ESRCH)) { rc 53 lib/common/pid.c } else if ((rc < 0) && no_name_check) { rc 54 lib/common/pid.c rc = errno; rc 60 lib/common/pid.c return rc; /* errno != ESRCH */ rc 62 lib/common/pid.c } else if ((rc == 0) && no_name_check) { rc 68 lib/common/pid.c bool checked_through_kill = (rc == 0); rc 73 lib/common/pid.c rc = readlink(proc_path, exe_path, sizeof(exe_path) - 1); rc 74 lib/common/pid.c if (rc < 0) { rc 89 lib/common/pid.c exe_path[rc] = '\0'; rc 92 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), CRM_DAEMON_DIR"/%s", rc 95 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), "%s", daemon); rc 98 lib/common/pid.c if (rc > 0 && rc < sizeof(myexe_path) && !strcmp(exe_path, myexe_path)) { rc 122 lib/common/pid.c int rc = pcmk_rc_unknown_format; rc 140 lib/common/pid.c rc = errno; rc 146 lib/common/pid.c rc = ESRCH; rc 148 lib/common/pid.c rc = pcmk_rc_ok; rc 156 lib/common/pid.c return rc; rc 176 lib/common/pid.c int rc = pcmk__read_pidfile(filename, &pidfile_pid); rc 182 lib/common/pid.c if (rc != pcmk_rc_ok) { rc 185 lib/common/pid.c rc = ENOENT; rc 189 lib/common/pid.c rc = pcmk_rc_ok; rc 194 lib/common/pid.c rc = ENOENT; rc 198 lib/common/pid.c rc = EEXIST; rc 201 lib/common/pid.c return rc; rc 218 lib/common/pid.c int rc = 0; rc 221 lib/common/pid.c rc = pcmk__pidfile_matches(filename, 0, name, NULL); rc 222 lib/common/pid.c if ((rc != pcmk_rc_ok) && (rc != ENOENT)) { rc 224 lib/common/pid.c return rc; rc 233 lib/common/pid.c rc = write(fd, buf, LOCKSTRLEN); rc 236 lib/common/pid.c if (rc != LOCKSTRLEN) { rc 241 lib/common/pid.c rc = pcmk__pidfile_matches(filename, mypid, name, NULL); rc 242 lib/common/pid.c if (rc != pcmk_rc_ok) { rc 246 lib/common/pid.c return rc; rc 134 lib/common/remote.c int rc = 0; rc 139 lib/common/remote.c rc = gnutls_handshake(*remote->tls_session); rc 140 lib/common/remote.c if ((rc == GNUTLS_E_INTERRUPTED) || (rc == GNUTLS_E_AGAIN)) { rc 148 lib/common/remote.c } else if (rc < 0) { rc 150 lib/common/remote.c gnutls_strerror(rc), rc); rc 228 lib/common/remote.c int rc = GNUTLS_E_SUCCESS; rc 249 lib/common/remote.c rc = GNUTLS_E_MEMORY_ERROR; rc 253 lib/common/remote.c rc = gnutls_init(session, conn_type); rc 254 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 262 lib/common/remote.c rc = gnutls_priority_set_direct(*session, prio, NULL); rc 263 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 273 lib/common/remote.c rc = gnutls_credentials_set(*session, cred_type, credentials); rc 274 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 285 lib/common/remote.c gnutls_strerror(rc), rc, prio); rc 311 lib/common/remote.c int rc = GNUTLS_E_SUCCESS; rc 314 lib/common/remote.c rc = gnutls_dh_params_init(dh_params); rc 315 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 323 lib/common/remote.c rc = GNUTLS_E_DH_PRIME_UNACCEPTABLE; rc 333 lib/common/remote.c rc = gnutls_dh_params_generate2(*dh_params, dh_bits); rc 334 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 342 lib/common/remote.c CRM_XS " rc=%d", gnutls_strerror(rc), rc); rc 360 lib/common/remote.c int rc = 0; rc 365 lib/common/remote.c rc = gnutls_handshake(*client->remote->tls_session); rc 366 lib/common/remote.c } while (rc == GNUTLS_E_INTERRUPTED); rc 368 lib/common/remote.c if (rc == GNUTLS_E_AGAIN) { rc 373 lib/common/remote.c } else if (rc != GNUTLS_E_SUCCESS) { rc 375 lib/common/remote.c CRM_XS " rc=%d", gnutls_strerror(rc), rc); rc 440 lib/common/remote.c int rc = errno; rc 450 lib/common/remote.c pcmk_rc_str(rc), rc, sock); rc 451 lib/common/remote.c return rc; rc 473 lib/common/remote.c int rc = pcmk_rc_ok; rc 475 lib/common/remote.c for (int lpc = 0; (lpc < iovs) && (rc == pcmk_rc_ok); lpc++) { rc 478 lib/common/remote.c rc = send_tls(remote->tls_session, &(iov[lpc])); rc 483 lib/common/remote.c rc = send_plaintext(remote->tcp_socket, &(iov[lpc])); rc 485 lib/common/remote.c rc = ESOCKTNOSUPPORT; rc 488 lib/common/remote.c return rc; rc 503 lib/common/remote.c int rc = pcmk_rc_ok; rc 532 lib/common/remote.c rc = remote_send_iovs(remote, iov, 2); rc 533 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 535 lib/common/remote.c pcmk_rc_str(rc), rc); rc 540 lib/common/remote.c return rc; rc 564 lib/common/remote.c int rc = 0; rc 571 lib/common/remote.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + header->payload_offset, &size_u, rc 575 lib/common/remote.c if (rc != BZ_OK && header->version > REMOTE_MSG_VERSION) { rc 581 lib/common/remote.c } else if (rc != BZ_OK) { rc 583 lib/common/remote.c bz2_strerror(rc), rc); rc 650 lib/common/remote.c int rc = 0; rc 676 lib/common/remote.c rc = poll(&fds, 1, timeout); rc 677 lib/common/remote.c } while (rc < 0 && errno == EINTR); rc 679 lib/common/remote.c if (rc < 0) { rc 682 lib/common/remote.c return (rc == 0)? ETIME : pcmk_rc_ok; rc 700 lib/common/remote.c int rc = pcmk_rc_ok; rc 725 lib/common/remote.c rc = EINTR; rc 727 lib/common/remote.c rc = EAGAIN; rc 731 lib/common/remote.c rc = EIO; rc 742 lib/common/remote.c rc = errno; rc 761 lib/common/remote.c } else if ((rc == EINTR) || (rc == EAGAIN)) { rc 763 lib/common/remote.c pcmk_rc_str(rc), rc); rc 773 lib/common/remote.c pcmk_rc_str(rc), rc); rc 806 lib/common/remote.c int rc = pcmk_rc_ok; rc 821 lib/common/remote.c rc = pcmk__remote_ready(remote, remaining_timeout); rc 823 lib/common/remote.c if (rc == ETIME) { rc 826 lib/common/remote.c return rc; rc 828 lib/common/remote.c } else if (rc != pcmk_rc_ok) { rc 830 lib/common/remote.c CRM_XS " rc=%d", pcmk_rc_str(rc), rc); rc 833 lib/common/remote.c rc = read_available_remote_data(remote); rc 834 lib/common/remote.c if (rc == pcmk_rc_ok) { rc 835 lib/common/remote.c return rc; rc 836 lib/common/remote.c } else if (rc == EAGAIN) { rc 840 lib/common/remote.c pcmk_rc_str(rc), rc); rc 845 lib/common/remote.c if ((rc == ENOTCONN) || (rc == ESOCKTNOSUPPORT)) { rc 846 lib/common/remote.c return rc; rc 859 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock); rc 867 lib/common/remote.c int rc; rc 874 lib/common/remote.c rc = pcmk_rc_ok; rc 882 lib/common/remote.c rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts); rc 884 lib/common/remote.c if (rc < 0) { // select() error rc 885 lib/common/remote.c rc = errno; rc 886 lib/common/remote.c if ((rc == EINPROGRESS) || (rc == EAGAIN)) { rc 890 lib/common/remote.c rc = ETIMEDOUT; rc 894 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 896 lib/common/remote.c } else if (rc == 0) { // select() timeout rc 902 lib/common/remote.c rc = ETIMEDOUT; rc 914 lib/common/remote.c rc = errno; rc 916 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 918 lib/common/remote.c rc = error; rc 920 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 922 lib/common/remote.c rc = pcmk_rc_ok; rc 928 lib/common/remote.c rc = EAGAIN; rc 932 lib/common/remote.c if (rc == pcmk_rc_ok) { rc 940 lib/common/remote.c cb_data->callback(cb_data->userdata, rc, cb_data->sock); rc 967 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) rc 969 lib/common/remote.c int rc = 0; rc 974 lib/common/remote.c rc = pcmk__set_nonblocking(sock); rc 975 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 977 lib/common/remote.c pcmk_rc_str(rc), rc); rc 978 lib/common/remote.c return rc; rc 981 lib/common/remote.c rc = connect(sock, addr, addrlen); rc 982 lib/common/remote.c if (rc < 0 && (errno != EINPROGRESS) && (errno != EAGAIN)) { rc 983 lib/common/remote.c rc = errno; rc 985 lib/common/remote.c pcmk_rc_str(rc), rc); rc 986 lib/common/remote.c return rc; rc 995 lib/common/remote.c if (rc == 0) { rc 1040 lib/common/remote.c int rc = connect(sock, addr, addrlen); rc 1042 lib/common/remote.c if (rc < 0) { rc 1043 lib/common/remote.c rc = errno; rc 1045 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1046 lib/common/remote.c return rc; rc 1049 lib/common/remote.c rc = pcmk__set_nonblocking(sock); rc 1050 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 1052 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1053 lib/common/remote.c return rc; rc 1078 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) rc 1085 lib/common/remote.c int rc; rc 1095 lib/common/remote.c rc = getaddrinfo(server, NULL, &hints, &res); rc 1096 lib/common/remote.c if (rc != 0) { rc 1098 lib/common/remote.c server, gai_strerror(rc)); rc 1099 lib/common/remote.c rc = ENOTCONN; rc 1104 lib/common/remote.c rc = ENOTCONN; rc 1123 lib/common/remote.c rc = errno; rc 1125 lib/common/remote.c "%s " CRM_XS " rc=%d", server, port, pcmk_rc_str(rc), rc); rc 1155 lib/common/remote.c rc = ENOTCONN; rc 1164 lib/common/remote.c return rc; rc 1209 lib/common/remote.c int rc; rc 1218 lib/common/remote.c rc = errno; rc 1220 lib/common/remote.c CRM_XS " rc=%d", pcmk_rc_str(rc), rc); rc 1221 lib/common/remote.c return rc; rc 1226 lib/common/remote.c rc = pcmk__set_nonblocking(*csock); rc 1227 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 1229 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1232 lib/common/remote.c return rc; rc 1240 lib/common/remote.c rc = setsockopt(*csock, SOL_TCP, TCP_USER_TIMEOUT, rc 1242 lib/common/remote.c if (rc < 0) { rc 1243 lib/common/remote.c rc = errno; rc 1245 lib/common/remote.c "%s " CRM_XS " rc=%d", optval, pcmk_rc_str(rc), rc); rc 1248 lib/common/remote.c return rc; rc 1253 lib/common/remote.c return rc; rc 25 lib/common/results.c G_DEFINE_QUARK(pcmk-rc-error-quark, pcmk__rc_error) rc 32 lib/common/results.c pcmk_errorname(int rc) rc 34 lib/common/results.c rc = abs(rc); rc 35 lib/common/results.c switch (rc) { rc 52 lib/common/results.c default: return pcmk_rc_name(rc); // system errno rc 58 lib/common/results.c pcmk_strerror(int rc) rc 60 lib/common/results.c if (rc == 0) { rc 64 lib/common/results.c rc = abs(rc); rc 67 lib/common/results.c if ((rc > 0) && (rc < PCMK_ERROR_OFFSET)) { rc 68 lib/common/results.c return strerror(rc); rc 71 lib/common/results.c switch (rc) { rc 127 lib/common/results.c crm_err("Unknown error code: %d", rc); rc 266 lib/common/results.c pcmk_rc_name(int rc) rc 268 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < PCMK__N_RC)) { rc 269 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].name; rc 271 lib/common/results.c switch (rc) { rc 420 lib/common/results.c pcmk_rc_str(int rc) rc 422 lib/common/results.c if (rc == pcmk_rc_ok) { rc 425 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < PCMK__N_RC)) { rc 426 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].desc; rc 428 lib/common/results.c if (rc < 0) { rc 431 lib/common/results.c return strerror(rc); rc 437 lib/common/results.c pcmk_rc2legacy(int rc) rc 439 lib/common/results.c if (rc >= 0) { rc 440 lib/common/results.c return -rc; // OK or system errno rc 442 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < PCMK__N_RC)) { rc 443 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].legacy_rc; rc 577 lib/common/results.c crm_errno2exit(int rc) rc 579 lib/common/results.c rc = abs(rc); // Convenience for functions that return -errno rc 580 lib/common/results.c switch (rc) { rc 608 lib/common/results.c return pcmk_rc2exitc(rc); // system errno rc 620 lib/common/results.c pcmk_rc2exitc(int rc) rc 622 lib/common/results.c switch (rc) { rc 726 lib/common/results.c bz2_strerror(int rc) rc 729 lib/common/results.c switch (rc) { rc 759 lib/common/results.c crm_exit(crm_exit_t rc) rc 764 lib/common/results.c if ((((int) rc) < 0) || (((int) rc) > CRM_EX_MAX)) { rc 765 lib/common/results.c rc = CRM_EX_ERROR; rc 774 lib/common/results.c crm_info("Exiting %s " CRM_XS " with status %d", crm_system_name, rc); rc 777 lib/common/results.c crm_trace("Exiting with status %d", rc); rc 781 lib/common/results.c exit(rc); rc 123 lib/common/schemas.c int rc = schema_scanf(filename, "pacemaker-", *version, ".rng"); rc 125 lib/common/schemas.c return (rc == 2); rc 131 lib/common/schemas.c int rc = 0; rc 145 lib/common/schemas.c rc = 1; rc 148 lib/common/schemas.c return rc; rc 273 lib/common/schemas.c int rc = pcmk_rc_ok; rc 327 lib/common/schemas.c rc = ENOENT; rc 336 lib/common/schemas.c return rc; rc 465 lib/common/schemas.c int rc = 0; rc 520 lib/common/schemas.c rc = xmlRelaxNGValidateDoc(ctx->valid, doc); rc 521 lib/common/schemas.c if (rc > 0) { rc 524 lib/common/schemas.c } else if (rc < 0) { rc 633 lib/common/schemas.c bool rc, sl_backup = silent_logging; rc 635 lib/common/schemas.c rc = validate_with(xml, method, TRUE); rc 637 lib/common/schemas.c return rc; rc 677 lib/common/schemas.c gboolean rc = FALSE; rc 690 lib/common/schemas.c rc = validate_xml(xml, NULL, FALSE); rc 696 lib/common/schemas.c return rc; rc 1053 lib/common/schemas.c int lpc = 0, match = -1, rc = pcmk_ok; rc 1103 lib/common/schemas.c rc = -pcmk_err_schema_validation; rc 1111 lib/common/schemas.c rc = pcmk_ok; rc 1114 lib/common/schemas.c if (rc == pcmk_ok) { rc 1118 lib/common/schemas.c if (rc == pcmk_ok && transform) { rc 1155 lib/common/schemas.c rc = -pcmk_err_transform_failed; rc 1164 lib/common/schemas.c rc = pcmk_ok; rc 1171 lib/common/schemas.c rc = -pcmk_err_schema_validation; rc 1177 lib/common/schemas.c if (transform == FALSE || rc != pcmk_ok) { rc 1192 lib/common/schemas.c return rc; rc 1198 lib/common/schemas.c gboolean rc = TRUE; rc 1259 lib/common/schemas.c rc = FALSE; rc 1301 lib/common/schemas.c return rc; rc 55 lib/common/strings.c int rc = pcmk_rc_ok; rc 65 lib/common/strings.c rc = EOVERFLOW; rc 70 lib/common/strings.c rc = errno; rc 73 lib/common/strings.c text, PCMK__PARSE_INT_DEFAULT, pcmk_rc_str(rc)); rc 76 lib/common/strings.c rc = EINVAL; rc 86 lib/common/strings.c errno = rc; rc 94 lib/common/strings.c return rc; rc 181 lib/common/strings.c int rc = pcmk_rc_ok; rc 190 lib/common/strings.c rc = EINVAL; rc 210 lib/common/strings.c rc = EOVERFLOW; rc 213 lib/common/strings.c rc = pcmk_rc_underflow; rc 221 lib/common/strings.c rc = errno; rc 227 lib/common/strings.c pcmk_rc_str(rc)); rc 231 lib/common/strings.c rc = EINVAL; rc 253 lib/common/strings.c rc = pcmk_rc_underflow; rc 275 lib/common/strings.c return rc; rc 666 lib/common/strings.c int rc; rc 686 lib/common/strings.c rc = BZ2_bzBuffToBuffCompress(compressed, result_len, uncompressed, length, rc 689 lib/common/strings.c if (rc != BZ_OK) { rc 691 lib/common/strings.c length, bz2_strerror(rc), rc); rc 745 lib/common/strings.c int rc = scan_ll(srcstring+1, end, &remainder); rc 747 lib/common/strings.c if (rc != pcmk_rc_ok || *remainder != '\0') { rc 761 lib/common/strings.c int rc = scan_ll(remainder+1, end, &more_remainder); rc 763 lib/common/strings.c if (rc != pcmk_rc_ok || *more_remainder != '\0') { rc 810 lib/common/strings.c bool rc = false; rc 820 lib/common/strings.c rc = true; rc 825 lib/common/strings.c return rc; rc 845 lib/common/strings.c bool rc; rc 848 lib/common/strings.c rc = str_any_of(true, s, ap); rc 850 lib/common/strings.c return rc; rc 869 lib/common/strings.c bool rc; rc 872 lib/common/strings.c rc = str_any_of(false, s, ap); rc 874 lib/common/strings.c return rc; rc 891 lib/common/strings.c bool rc = false; rc 906 lib/common/strings.c rc = true; rc 912 lib/common/strings.c return rc; rc 1016 lib/common/strings.c int rc = 0; rc 1028 lib/common/strings.c rc = 1; rc 1031 lib/common/strings.c rc = regexec(r_patt, s1, 0, NULL, 0); rc 1033 lib/common/strings.c if (rc != 0) { rc 1034 lib/common/strings.c rc = 1; rc 1040 lib/common/strings.c return rc; rc 124 lib/common/utils.c int rc = pcmk_ok; rc 134 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PW_BUFFER_LEN, &pwentry); rc 145 lib/common/utils.c rc = rc? -rc : -EINVAL; rc 146 lib/common/utils.c crm_info("User %s lookup: %s", name, pcmk_strerror(rc)); rc 150 lib/common/utils.c return rc; rc 167 lib/common/utils.c int rc = pcmk_err_generic; rc 170 lib/common/utils.c rc = crm_user_lookup(CRM_DAEMON_USER, &daemon_uid, &daemon_gid); rc 171 lib/common/utils.c if (rc == pcmk_ok) { rc 183 lib/common/utils.c return rc; rc 227 lib/common/utils.c int rc = 0; rc 261 lib/common/utils.c rc = -1; rc 265 lib/common/utils.c rc = 1; rc 284 lib/common/utils.c if (rc == 0) { rc 286 lib/common/utils.c } else if (rc < 0) { rc 288 lib/common/utils.c } else if (rc > 0) { rc 292 lib/common/utils.c return rc; rc 340 lib/common/utils.c int rc = 0; rc 383 lib/common/utils.c rc = waitpid(pid, &status, 0); rc 384 lib/common/utils.c if(rc == pid) { rc 412 lib/common/utils.c int rc; rc 416 lib/common/utils.c rc = pcmk__pidfile_matches(pidfile, 1, name, &pid); rc 417 lib/common/utils.c if ((rc != pcmk_rc_ok) && (rc != ENOENT)) { rc 435 lib/common/utils.c rc = pcmk__lock_pidfile(pidfile, name); rc 436 lib/common/utils.c if (rc != pcmk_rc_ok) { rc 438 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); rc 440 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); rc 56 lib/common/watchdog.c int rc = pcmk_ok; rc 103 lib/common/watchdog.c rc = errno; rc 106 lib/common/watchdog.c (long long) ppid, pcmk_rc_str(rc), rc); rc 197 lib/common/watchdog.c int rc; rc 208 lib/common/watchdog.c rc = pcmk__pidfile_matches(pidfile, 0, sbd_path, &sbd_pid); rc 209 lib/common/watchdog.c if (rc == pcmk_rc_ok) { rc 67 lib/common/xml.c int rc = (max); \ rc 69 lib/common/xml.c rc = snprintf((buffer) + (offset), (max) - (offset), fmt, ##args); \ rc 71 lib/common/xml.c if(buffer && rc < 0) { \ rc 75 lib/common/xml.c } else if(rc >= ((max) - (offset))) { \ rc 82 lib/common/xml.c offset += rc; \ rc 931 lib/common/xml.c int rc = 0; rc 942 lib/common/xml.c bz_file = BZ2_bzReadOpen(&rc, input, 0, 0, NULL, 0); rc 943 lib/common/xml.c if (rc != BZ_OK) { rc 945 lib/common/xml.c CRM_XS " bzerror=%d", filename, bz2_strerror(rc), rc); rc 946 lib/common/xml.c BZ2_bzReadClose(&rc, bz_file); rc 950 lib/common/xml.c rc = BZ_OK; rc 953 lib/common/xml.c while (rc == BZ_OK) { rc 955 lib/common/xml.c read_len = BZ2_bzRead(&rc, bz_file, buffer + length, PCMK__BUFFER_SIZE); rc 957 lib/common/xml.c crm_trace("Read %ld bytes from file: %d", (long)read_len, rc); rc 959 lib/common/xml.c if (rc == BZ_OK || rc == BZ_STREAM_END) { rc 966 lib/common/xml.c if (rc != BZ_STREAM_END) { rc 968 lib/common/xml.c CRM_XS " bzerror=%d", filename, bz2_strerror(rc), rc); rc 973 lib/common/xml.c BZ2_bzReadClose(&rc, bz_file); rc 1157 lib/common/xml.c int rc = pcmk_rc_ok; rc 1166 lib/common/xml.c rc = pcmk_rc_error; rc 1174 lib/common/xml.c rc = BZ_OK; rc 1175 lib/common/xml.c bz_file = BZ2_bzWriteOpen(&rc, stream, 5, 0, 30); rc 1176 lib/common/xml.c if (rc != BZ_OK) { rc 1178 lib/common/xml.c CRM_XS " bzerror=%d", filename, bz2_strerror(rc), rc); rc 1180 lib/common/xml.c BZ2_bzWrite(&rc, bz_file, buffer, strlen(buffer)); rc 1181 lib/common/xml.c if (rc != BZ_OK) { rc 1184 lib/common/xml.c filename, bz2_strerror(rc), rc, errno); rc 1188 lib/common/xml.c if (rc == BZ_OK) { rc 1189 lib/common/xml.c BZ2_bzWriteClose(&rc, bz_file, 0, &in, nbytes); rc 1190 lib/common/xml.c if (rc != BZ_OK) { rc 1193 lib/common/xml.c filename, bz2_strerror(rc), rc, errno); rc 1200 lib/common/xml.c rc = pcmk_rc_ok; // Either true, or we'll retry without compression rc 1207 lib/common/xml.c rc = fprintf(stream, "%s", buffer); rc 1208 lib/common/xml.c if (rc < 0) { rc 1209 lib/common/xml.c rc = errno; rc 1212 lib/common/xml.c *nbytes = (unsigned int) rc; rc 1213 lib/common/xml.c rc = pcmk_rc_ok; rc 1220 lib/common/xml.c rc = errno; rc 1226 lib/common/xml.c rc = errno; rc 1235 lib/common/xml.c return rc; rc 1253 lib/common/xml.c int rc = pcmk_rc_ok; rc 1260 lib/common/xml.c rc = write_xml_stream(xml_node, filename, stream, compress, &nbytes); rc 1261 lib/common/xml.c if (rc != pcmk_rc_ok) { rc 1262 lib/common/xml.c return pcmk_rc2legacy(rc); rc 1281 lib/common/xml.c int rc = pcmk_rc_ok; rc 1288 lib/common/xml.c rc = write_xml_stream(xml_node, filename, stream, compress, &nbytes); rc 1289 lib/common/xml.c if (rc != pcmk_rc_ok) { rc 1290 lib/common/xml.c return pcmk_rc2legacy(rc); rc 58 lib/fencing/st_client.c int rc; rc 313 lib/fencing/st_client.c int rc = 0; rc 319 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_ADD, data, NULL, call_options, 0); rc 322 lib/fencing/st_client.c return rc; rc 328 lib/fencing/st_client.c int rc = 0; rc 334 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_DEL, data, NULL, call_options, 0); rc 337 lib/fencing/st_client.c return rc; rc 345 lib/fencing/st_client.c int rc = 0; rc 365 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); rc 368 lib/fencing/st_client.c return rc; rc 440 lib/fencing/st_client.c int rc = 0; rc 445 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); rc 448 lib/fencing/st_client.c return rc; rc 613 lib/fencing/st_client.c stonith__action_result(stonith_action_t *action, int *rc, char **output, rc 616 lib/fencing/st_client.c if (rc) { rc 617 lib/fencing/st_client.c *rc = pcmk_ok; rc 626 lib/fencing/st_client.c if (rc) { rc 627 lib/fencing/st_client.c *rc = action->rc; rc 688 lib/fencing/st_client.c } else if ((action->rc != -ETIME) && diff < (action->timeout * 0.7)) { rc 702 lib/fencing/st_client.c if (svc_action->rc > 0) { rc 706 lib/fencing/st_client.c if (svc_action->rc == PCMK_OCF_TIMEOUT) { rc 731 lib/fencing/st_client.c action->rc = svc_action_to_errno(svc_action); rc 740 lib/fencing/st_client.c action->pid, action->action, svc_action->rc); rc 744 lib/fencing/st_client.c if (action->rc != pcmk_ok && update_remaining_timeout(action)) { rc 745 lib/fencing/st_client.c int rc = internal_stonith_action_execute(action); rc 746 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 752 lib/fencing/st_client.c action->done_cb(action->pid, action->rc, action->output, action->userdata); rc 778 lib/fencing/st_client.c int rc = -EPROTO; rc 833 lib/fencing/st_client.c rc = 0; rc 839 lib/fencing/st_client.c rc = 0; rc 840 lib/fencing/st_client.c action->rc = svc_action_to_errno(svc_action); rc 846 lib/fencing/st_client.c action->rc = -ECONNABORTED; rc 847 lib/fencing/st_client.c rc = action->rc; rc 855 lib/fencing/st_client.c return rc; rc 872 lib/fencing/st_client.c void (*done) (GPid pid, int rc, const char *output, rc 899 lib/fencing/st_client.c int rc = pcmk_ok; rc 905 lib/fencing/st_client.c rc = internal_stonith_action_execute(action); rc 906 lib/fencing/st_client.c } while ((rc != pcmk_ok) && update_remaining_timeout(action)); rc 908 lib/fencing/st_client.c return rc; rc 972 lib/fencing/st_client.c int rc = 0, lpc = 0, max = 0; rc 984 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_QUERY, data, &output, call_options, timeout); rc 986 lib/fencing/st_client.c if (rc < 0) { rc 987 lib/fencing/st_client.c return rc; rc 1021 lib/fencing/st_client.c int rc = 0; rc 1030 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_EXEC, data, output, call_options, timeout); rc 1033 lib/fencing/st_client.c return rc; rc 1040 lib/fencing/st_client.c int rc; rc 1043 lib/fencing/st_client.c rc = stonith_api_call(stonith, call_options, id, "list", NULL, timeout, &output); rc 1059 lib/fencing/st_client.c return rc; rc 1079 lib/fencing/st_client.c int rc = 0; rc 1089 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE, data, NULL, call_options, timeout); rc 1092 lib/fencing/st_client.c return rc; rc 1114 lib/fencing/st_client.c int rc = 0; rc 1127 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE_HISTORY, data, &output, rc 1131 lib/fencing/st_client.c if (rc == 0) { rc 1162 lib/fencing/st_client.c return rc; rc 1181 lib/fencing/st_client.c int rc = 0; rc 1190 lib/fencing/st_client.c rc = strcmp(a_client->event, b_client->event); rc 1191 lib/fencing/st_client.c if (rc == 0) { rc 1207 lib/fencing/st_client.c return rc; rc 1295 lib/fencing/st_client.c invoke_callback(stonith_t * st, int call_id, int rc, void *userdata, rc 1301 lib/fencing/st_client.c data.rc = rc; rc 1308 lib/fencing/st_client.c stonith_perform_callback(stonith_t * stonith, xmlNode * msg, int call_id, int rc) rc 1325 lib/fencing/st_client.c crm_element_value_int(msg, F_STONITH_RC, &rc); rc 1344 lib/fencing/st_client.c if (local_blob.callback != NULL && (rc == pcmk_ok || local_blob.only_success == FALSE)) { rc 1346 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, local_blob.user_data, local_blob.callback); rc 1348 lib/fencing/st_client.c } else if (private->op_callback == NULL && rc != pcmk_ok) { rc 1349 lib/fencing/st_client.c crm_warn("Fencing command failed: %s", pcmk_strerror(rc)); rc 1355 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, NULL, private->op_callback); rc 1464 lib/fencing/st_client.c int rc = pcmk_ok; rc 1502 lib/fencing/st_client.c rc = -ENOTCONN; rc 1510 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, hello, crm_ipc_client_response, -1, &reply); rc 1512 lib/fencing/st_client.c if (rc < 0) { rc 1514 lib/fencing/st_client.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 1515 lib/fencing/st_client.c rc = -ECOMM; rc 1519 lib/fencing/st_client.c rc = -EPROTO; rc 1529 lib/fencing/st_client.c rc = -EPROTO; rc 1534 lib/fencing/st_client.c rc = -EPROTO; rc 1542 lib/fencing/st_client.c rc = pcmk_ok; rc 1550 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 1552 lib/fencing/st_client.c CRM_XS " rc=%d", display_name, pcmk_strerror(rc), rc); rc 1555 lib/fencing/st_client.c return rc; rc 1561 lib/fencing/st_client.c int rc = pcmk_ok; rc 1574 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, -1, NULL); rc 1575 lib/fencing/st_client.c if (rc < 0) { rc 1576 lib/fencing/st_client.c crm_perror(LOG_DEBUG, "Couldn't register for fencing notifications: %d", rc); rc 1577 lib/fencing/st_client.c rc = -ECOMM; rc 1579 lib/fencing/st_client.c rc = pcmk_ok; rc 1584 lib/fencing/st_client.c return rc; rc 1847 lib/fencing/st_client.c int rc = 0; rc 1897 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, rc 1902 lib/fencing/st_client.c if (rc < 0) { rc 1903 lib/fencing/st_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%ds): %d", op, timeout, rc); rc 1904 lib/fencing/st_client.c rc = -ECOMM; rc 1916 lib/fencing/st_client.c rc = pcmk_ok; rc 1922 lib/fencing/st_client.c if (crm_element_value_int(op_reply, F_STONITH_RC, &rc) != 0) { rc 1923 lib/fencing/st_client.c rc = -ENOMSG; rc 1938 lib/fencing/st_client.c rc = -ENOMSG; rc 1944 lib/fencing/st_client.c rc = -ENOMSG; rc 1955 lib/fencing/st_client.c return rc; rc 1988 lib/fencing/st_client.c int rc = pcmk_ok; rc 1994 lib/fencing/st_client.c rc = stonith->cmds->disconnect(stonith); rc 2011 lib/fencing/st_client.c crm_err("Not free'ing active connection: %s (%d)", pcmk_strerror(rc), rc); rc 2014 lib/fencing/st_client.c return rc; rc 2037 lib/fencing/st_client.c int rc = pcmk_ok; rc 2064 lib/fencing/st_client.c rc = pcmk__substitute_secrets(rsc_id, params_table); rc 2065 lib/fencing/st_client.c if (rc != pcmk_rc_ok) { rc 2067 lib/fencing/st_client.c agent, pcmk_rc_str(rc)); rc 2081 lib/fencing/st_client.c rc = stonith__rhcs_validate(st, call_options, target, agent, rc 2088 lib/fencing/st_client.c rc = stonith__lha_validate(st, call_options, target, agent, rc 2095 lib/fencing/st_client.c rc = -EINVAL; rc 2103 lib/fencing/st_client.c return rc; rc 2188 lib/fencing/st_client.c int rc = -EINVAL; // if max_attempts is not positive rc 2191 lib/fencing/st_client.c rc = st->cmds->connect(st, name, NULL); rc 2192 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 2197 lib/fencing/st_client.c attempt, max_attempts, pcmk_strerror(rc), rc); rc 2202 lib/fencing/st_client.c pcmk_strerror(rc), rc); rc 2203 lib/fencing/st_client.c return rc; rc 2257 lib/fencing/st_client.c int rc = pcmk_ok; rc 2268 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 2269 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 2271 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); rc 2281 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); rc 2284 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 2286 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); rc 2293 lib/fencing/st_client.c return rc; rc 2299 lib/fencing/st_client.c int rc = pcmk_ok; rc 2310 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 2311 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 2312 lib/fencing/st_client.c api_log(LOG_NOTICE, "Connection failed: %s (%d)", pcmk_strerror(rc), rc); rc 2324 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); rc 2345 lib/fencing/st_client.c if(rc == pcmk_ok) { rc 2348 lib/fencing/st_client.c api_log(LOG_ERR, "Could not retrieve fence history for %u/%s: %s (%d)", nodeid, uname, pcmk_strerror(rc), rc); rc 2366 lib/fencing/st_client.c bool rc = FALSE; rc 2369 lib/fencing/st_client.c return rc; rc 2381 lib/fencing/st_client.c rc = TRUE; rc 2388 lib/fencing/st_client.c return rc; rc 2435 lib/fencing/st_client.c int rc = 0; rc 2451 lib/fencing/st_client.c rc = sscanf(line + entry_start, "%[a-zA-Z0-9_-.]", entry); rc 2452 lib/fencing/st_client.c if (rc != 1) { rc 177 lib/fencing/st_lha.c int rc = 0; rc 256 lib/fencing/st_lha.c return rc; rc 265 lib/fencing/st_lha.c const char *i_hate_pils(int rc); rc 268 lib/fencing/st_lha.c i_hate_pils(int rc) rc 270 lib/fencing/st_lha.c return PIL_strerror(rc); rc 40 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 51 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Fencing Actions"); rc 56 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 57 lib/fencing/st_output.c return rc; rc 68 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 76 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); rc 82 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 83 lib/fencing/st_output.c return rc; rc 95 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 102 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); rc 107 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 108 lib/fencing/st_output.c return rc; rc 120 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 128 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Fencing History"); rc 133 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 141 lib/fencing/st_output.c rc = pcmk_rc_ok; rc 144 lib/fencing/st_output.c return rc; rc 206 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 218 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Pending Fencing Actions"); rc 223 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 224 lib/fencing/st_output.c return rc; rc 366 lib/fencing/st_output.c int rc = va_arg(args, int); rc 370 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 375 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 380 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 381 lib/fencing/st_output.c return rc; rc 391 lib/fencing/st_output.c int rc = va_arg(args, int); rc 395 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 398 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 409 lib/fencing/st_output.c return rc; rc 421 lib/fencing/st_output.c int rc = va_arg(args, int); rc 427 lib/fencing/st_output.c xmlSetProp(node, (pcmkXmlStr) "valid", (pcmkXmlStr) pcmk__btoa(rc)); rc 430 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 433 lib/fencing/st_output.c return rc; rc 130 lib/fencing/st_rhcs.c int rc = stonith__execute(action); rc 132 lib/fencing/st_rhcs.c if (rc < 0) { rc 134 lib/fencing/st_rhcs.c CRM_XS " rc=%d", agent, pcmk_strerror(rc), rc); rc 136 lib/fencing/st_rhcs.c return rc; rc 139 lib/fencing/st_rhcs.c stonith__action_result(action, &rc, &buffer, NULL); rc 141 lib/fencing/st_rhcs.c if (rc < 0) { rc 143 lib/fencing/st_rhcs.c agent, pcmk_strerror(rc), rc); rc 145 lib/fencing/st_rhcs.c return rc; rc 212 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout, &xml); rc 214 lib/fencing/st_rhcs.c if (rc != pcmk_ok) { rc 216 lib/fencing/st_rhcs.c return rc; rc 237 lib/fencing/st_rhcs.c int rc = stat(buffer, &prop); rc 240 lib/fencing/st_rhcs.c return (rc >= 0) && S_ISREG(prop.st_mode); rc 249 lib/fencing/st_rhcs.c int rc = pcmk_ok; rc 257 lib/fencing/st_rhcs.c rc = stonith__rhcs_get_metadata(agent, remaining_timeout, &metadata); rc 259 lib/fencing/st_rhcs.c if (rc == pcmk_ok) { rc 276 lib/fencing/st_rhcs.c if (rc == -ETIME || remaining_timeout <= 0 ) { rc 288 lib/fencing/st_rhcs.c rc = stonith__execute(action); rc 289 lib/fencing/st_rhcs.c if (rc == pcmk_ok) { rc 290 lib/fencing/st_rhcs.c stonith__action_result(action, &rc, output, error_output); rc 293 lib/fencing/st_rhcs.c return rc; rc 94 lib/lrmd/lrmd_alerts.c gboolean rc = FALSE; rc 106 lib/lrmd/lrmd_alerts.c rc = TRUE; rc 110 lib/lrmd/lrmd_alerts.c return rc; rc 145 lib/lrmd/lrmd_alerts.c int rc; rc 200 lib/lrmd/lrmd_alerts.c rc = lrmd->cmds->exec_alert(lrmd, entry->id, entry->path, rc 202 lib/lrmd/lrmd_alerts.c if (rc < 0) { rc 204 lib/lrmd/lrmd_alerts.c entry->id, pcmk_strerror(rc), rc); rc 241 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 254 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_attribute, attr_name, rc 257 lib/lrmd/lrmd_alerts.c return rc; rc 278 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 289 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_node, NULL, params); rc 291 lib/lrmd/lrmd_alerts.c return rc; rc 314 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 326 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_fencing, NULL, params); rc 328 lib/lrmd/lrmd_alerts.c return rc; rc 348 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 357 lib/lrmd/lrmd_alerts.c if ((op->interval_ms == 0) && (target_rc == op->rc) rc 375 lib/lrmd/lrmd_alerts.c params = alert_key2param_int(params, PCMK__alert_key_rc, op->rc); rc 390 lib/lrmd/lrmd_alerts.c services_ocf_exitcode_str(op->rc)); rc 396 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_resource, NULL, params); rc 398 lib/lrmd/lrmd_alerts.c return rc; rc 287 lib/lrmd/lrmd_client.c crm_element_value_int(msg, F_LRMD_EXEC_RC, (int *)&event.rc); rc 330 lib/lrmd/lrmd_client.c int rc; rc 338 lib/lrmd/lrmd_client.c rc = lrmd_dispatch_internal(lrmd, msg); rc 340 lib/lrmd/lrmd_client.c return rc; rc 368 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 393 lib/lrmd/lrmd_client.c rc = pcmk__read_remote_message(native->remote, -1); rc 401 lib/lrmd/lrmd_client.c rc = ENOTCONN; rc 422 lib/lrmd/lrmd_client.c if (rc == ENOTCONN) { rc 447 lib/lrmd/lrmd_client.c int rc = pcmk__remote_ready(native->remote, 0); rc 449 lib/lrmd/lrmd_client.c switch (rc) { rc 455 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 695 lib/lrmd/lrmd_client.c int rc = 0; rc 703 lib/lrmd/lrmd_client.c rc = lrmd_tls_send_msg(native->remote, msg, global_remote_msg_id, "request"); rc 704 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 706 lib/lrmd/lrmd_client.c "Pacemaker Remote: %s", pcmk_rc_str(rc)); rc 716 lib/lrmd/lrmd_client.c int rc = 0; rc 724 lib/lrmd/lrmd_client.c rc = lrmd_tls_send(lrmd, msg); rc 725 lib/lrmd/lrmd_client.c if (rc < 0) { rc 726 lib/lrmd/lrmd_client.c return rc; rc 735 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 739 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 748 lib/lrmd/lrmd_client.c return rc; rc 755 lib/lrmd/lrmd_client.c int rc = -1; rc 760 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_client_response, timeout, reply); rc 764 lib/lrmd/lrmd_client.c rc = lrmd_tls_send_recv(lrmd, msg, timeout, reply); rc 771 lib/lrmd/lrmd_client.c return rc; rc 777 lib/lrmd/lrmd_client.c int rc = -1; rc 782 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_flags_none, 0, NULL); rc 786 lib/lrmd/lrmd_client.c rc = lrmd_tls_send(lrmd, msg); rc 787 lib/lrmd/lrmd_client.c if (rc == pcmk_ok) { rc 799 lib/lrmd/lrmd_client.c return rc; rc 844 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 869 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, op_msg, timeout, &op_reply); rc 871 lib/lrmd/lrmd_client.c rc = lrmd_send_xml_no_reply(lrmd, op_msg); rc 875 lib/lrmd/lrmd_client.c if (rc < 0) { rc 876 lib/lrmd/lrmd_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%d): %d", op, timeout, rc); rc 877 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 881 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 885 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 887 lib/lrmd/lrmd_client.c if (crm_element_value_int(op_reply, F_LRMD_RC, &rc) != 0) { rc 888 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 906 lib/lrmd/lrmd_client.c return rc; rc 912 lib/lrmd/lrmd_client.c int rc; rc 917 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_POKE, data, NULL, 0, 0, rc 921 lib/lrmd/lrmd_client.c return rc < 0 ? rc : pcmk_ok; rc 927 lib/lrmd/lrmd_client.c int rc; rc 937 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_CHECK, data, NULL, 0, 0, rc 941 lib/lrmd/lrmd_client.c return rc < 0 ? rc : pcmk_ok; rc 947 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 962 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, hello, -1, &reply); rc 964 lib/lrmd/lrmd_client.c if (rc < 0) { rc 965 lib/lrmd/lrmd_client.c crm_perror(LOG_DEBUG, "Couldn't complete registration with the executor API: %d", rc); rc 966 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 969 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 975 lib/lrmd/lrmd_client.c crm_element_value_int(reply, F_LRMD_RC, &rc); rc 977 lib/lrmd/lrmd_client.c if (rc == -EPROTO) { rc 985 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 989 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 994 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 1001 lib/lrmd/lrmd_client.c if (rc != pcmk_ok) { rc 1004 lib/lrmd/lrmd_client.c return rc; rc 1010 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1027 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 1036 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 1039 lib/lrmd/lrmd_client.c return rc; rc 1160 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd_t * lrmd, int rc) rc 1168 lib/lrmd/lrmd_client.c event.connection_rc = rc; rc 1181 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock) rc 1194 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1198 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1199 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1209 lib/lrmd/lrmd_client.c rc = lrmd_tls_set_key(&psk_key); rc 1210 lib/lrmd/lrmd_client.c if (rc != 0) { rc 1212 lib/lrmd/lrmd_client.c native->server, native->port, rc); rc 1214 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1252 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1255 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1262 lib/lrmd/lrmd_client.c int rc; rc 1268 lib/lrmd/lrmd_client.c rc = pcmk__connect_remote(native->server, native->port, timeout, &timer_id, rc 1270 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1273 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1287 lib/lrmd/lrmd_client.c int rc; rc 1295 lib/lrmd/lrmd_client.c rc = pcmk__connect_remote(native->server, native->port, 0, NULL, rc 1297 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1300 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1305 lib/lrmd/lrmd_client.c rc = lrmd_tls_set_key(&psk_key); rc 1306 lib/lrmd/lrmd_client.c if (rc < 0) { rc 1308 lib/lrmd/lrmd_client.c return rc; rc 1353 lib/lrmd/lrmd_client.c int rc = -ENOTCONN; rc 1358 lib/lrmd/lrmd_client.c rc = lrmd_ipc_connect(lrmd, fd); rc 1362 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect(lrmd, fd); rc 1369 lib/lrmd/lrmd_client.c if (rc == pcmk_ok) { rc 1370 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1373 lib/lrmd/lrmd_client.c return rc; rc 1379 lib/lrmd/lrmd_client.c int rc = 0; rc 1388 lib/lrmd/lrmd_client.c rc = lrmd_api_connect(lrmd, name, NULL); rc 1389 lib/lrmd/lrmd_client.c if (!rc) { rc 1390 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1395 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect_async(lrmd, timeout); rc 1396 lib/lrmd/lrmd_client.c if (rc) { rc 1398 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1406 lib/lrmd/lrmd_client.c return rc; rc 1500 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1518 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_REG, data, NULL, 0, options, TRUE); rc 1521 lib/lrmd/lrmd_client.c return rc; rc 1527 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1532 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_UNREG, data, NULL, 0, options, TRUE); rc 1535 lib/lrmd/lrmd_client.c return rc; rc 1639 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1652 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_GET_RECURRING, data, &output_xml, rc 1659 lib/lrmd/lrmd_client.c if ((rc != pcmk_ok) || (output_xml == NULL)) { rc 1660 lib/lrmd/lrmd_client.c return rc; rc 1686 lib/lrmd/lrmd_client.c return rc; rc 1733 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1741 lib/lrmd/lrmd_client.c rc = stonith_api->cmds->metadata(stonith_api, st_opt_sync_call, type, rc 1743 lib/lrmd/lrmd_client.c if ((rc == pcmk_ok) && (*output == NULL)) { rc 1744 lib/lrmd/lrmd_client.c rc = -EIO; rc 1747 lib/lrmd/lrmd_client.c return rc; rc 1821 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1838 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_EXEC, data, NULL, timeout, options, TRUE); rc 1842 lib/lrmd/lrmd_client.c return rc; rc 1850 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1864 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_ALERT_EXEC, data, NULL, timeout, rc 1869 lib/lrmd/lrmd_client.c return rc; rc 1876 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1883 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_CANCEL, data, NULL, 0, 0, TRUE); rc 1885 lib/lrmd/lrmd_client.c return rc; rc 1891 lib/lrmd/lrmd_client.c int rc = 0; rc 1905 lib/lrmd/lrmd_client.c rc++; rc 1912 lib/lrmd/lrmd_client.c return rc; rc 1919 lib/lrmd/lrmd_client.c int rc = 0; rc 1931 lib/lrmd/lrmd_client.c rc++; rc 1944 lib/lrmd/lrmd_client.c rc += stonith_count; rc 1947 lib/lrmd/lrmd_client.c if (rc == 0) { rc 1949 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1951 lib/lrmd/lrmd_client.c return rc; rc 1975 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1987 lib/lrmd/lrmd_client.c rc++; rc 1992 lib/lrmd/lrmd_client.c return rc; rc 1998 lib/lrmd/lrmd_client.c int rc = 0; rc 2006 lib/lrmd/lrmd_client.c rc++; rc 2011 lib/lrmd/lrmd_client.c rc++; rc 2015 lib/lrmd/lrmd_client.c return rc; rc 258 lib/lrmd/proxy_common.c int rc = 0; rc 266 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 5000, NULL); rc 268 lib/lrmd/proxy_common.c if(rc < 0) { rc 272 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 277 lib/lrmd/proxy_common.c crm_xml_add_int(op_reply, "rc", rc); rc 288 lib/lrmd/proxy_common.c int rc = pcmk_ok; rc 295 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 10000, &op_reply); rc 296 lib/lrmd/proxy_common.c if(rc < 0) { rc 298 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 35 lib/pacemaker/pcmk_fence.c int rc; rc 45 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 65 lib/pacemaker/pcmk_fence.c rc = st->cmds->register_level_full(st, st_opts, node, pattern, rc 69 lib/pacemaker/pcmk_fence.c rc = st->cmds->remove_level_full(st, st_opts, node, pattern, rc 73 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 86 lib/pacemaker/pcmk_fence.c async_fence_data.rc = e->result; rc 94 lib/pacemaker/pcmk_fence.c async_fence_data.rc = data->rc; rc 104 lib/pacemaker/pcmk_fence.c int rc = stonith_api_connect_retry(st, async_fence_data.name, 10); rc 106 lib/pacemaker/pcmk_fence.c if (rc != pcmk_ok) { rc 107 lib/pacemaker/pcmk_fence.c fprintf(stderr, "Could not connect to fencer: %s\n", pcmk_strerror(rc)); rc 149 lib/pacemaker/pcmk_fence.c async_fence_data.rc = pcmk_err_generic; rc 159 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(async_fence_data.rc); rc 177 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 197 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, opts, rc 204 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 235 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 243 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 245 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 246 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 247 lib/pacemaker/pcmk_fence.c return rc; rc 252 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_history(out, st, target, timeout, verbose, broadcast, cleanup); rc 253 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 254 lib/pacemaker/pcmk_fence.c return rc; rc 261 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 263 lib/pacemaker/pcmk_fence.c rc = st->cmds->list_agents(st, st_opt_sync_call, NULL, &devices, timeout/1000); rc 265 lib/pacemaker/pcmk_fence.c if (rc < 0) { rc 266 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 283 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 285 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 286 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 287 lib/pacemaker/pcmk_fence.c return rc; rc 290 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_installed(out, st, timeout); rc 291 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 292 lib/pacemaker/pcmk_fence.c return rc; rc 317 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 319 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 320 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 321 lib/pacemaker/pcmk_fence.c return rc; rc 324 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_last(out, target, as_nodeid); rc 325 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 326 lib/pacemaker/pcmk_fence.c return rc; rc 335 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 337 lib/pacemaker/pcmk_fence.c rc = st->cmds->list(st, st_opts, device_id, &lists, timeout/1000); rc 338 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 339 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 352 lib/pacemaker/pcmk_fence.c return rc; rc 360 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 362 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 363 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 364 lib/pacemaker/pcmk_fence.c return rc; rc 367 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_list_targets(out, st, device_id, timeout); rc 368 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 369 lib/pacemaker/pcmk_fence.c return rc; rc 377 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, rc 380 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 381 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 386 lib/pacemaker/pcmk_fence.c return rc; rc 394 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 396 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 397 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 398 lib/pacemaker/pcmk_fence.c return rc; rc 401 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); rc 402 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 403 lib/pacemaker/pcmk_fence.c return rc; rc 411 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 413 lib/pacemaker/pcmk_fence.c rc = st->cmds->query(st, st_opts, target, &devices, timeout/1000); rc 415 lib/pacemaker/pcmk_fence.c if (rc < 0) { rc 416 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 438 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 440 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 441 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 442 lib/pacemaker/pcmk_fence.c return rc; rc 445 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_registered(out, st, target, timeout); rc 446 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 447 lib/pacemaker/pcmk_fence.c return rc; rc 483 lib/pacemaker/pcmk_fence.c int rc; rc 485 lib/pacemaker/pcmk_fence.c rc = st->cmds->validate(st, st_opt_sync_call, id, NULL, agent, params, rc 487 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); rc 488 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 497 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 499 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 500 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 501 lib/pacemaker/pcmk_fence.c return rc; rc 504 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); rc 505 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 506 lib/pacemaker/pcmk_fence.c return rc; rc 25 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_ok; rc 32 lib/pacemaker/pcmk_output.c rc = pcmk__output_new(out, "xml", NULL, NULL); rc 33 lib/pacemaker/pcmk_output.c if (rc != pcmk_rc_ok) { rc 34 lib/pacemaker/pcmk_output.c return rc; rc 38 lib/pacemaker/pcmk_output.c return rc; rc 279 lib/pacemaker/pcmk_sched_allocate.c if(digest_data->rc != RSC_DIGEST_MATCH rc 290 lib/pacemaker/pcmk_sched_allocate.c } else if (digest_data->rc == RSC_DIGEST_RESTART) { rc 303 lib/pacemaker/pcmk_sched_allocate.c } else if ((digest_data->rc == RSC_DIGEST_ALL) || (digest_data->rc == RSC_DIGEST_UNKNOWN)) { rc 372 lib/pacemaker/pcmk_sched_allocate.c switch (digest_data->rc) { rc 633 lib/pacemaker/pcmk_sched_allocate.c gboolean rc = FALSE; rc 637 lib/pacemaker/pcmk_sched_allocate.c rc = TRUE; rc 640 lib/pacemaker/pcmk_sched_allocate.c return rc; rc 1158 lib/pacemaker/pcmk_sched_allocate.c int rc = 0; rc 1179 lib/pacemaker/pcmk_sched_allocate.c rc = -1; rc 1184 lib/pacemaker/pcmk_sched_allocate.c rc = 1; rc 1224 lib/pacemaker/pcmk_sched_allocate.c rc = -1; rc 1229 lib/pacemaker/pcmk_sched_allocate.c rc = 1; rc 1257 lib/pacemaker/pcmk_sched_allocate.c rc = -1; rc 1262 lib/pacemaker/pcmk_sched_allocate.c rc = 1; rc 1270 lib/pacemaker/pcmk_sched_allocate.c rc < 0 ? '>' : rc > 0 ? '<' : '=', rc 1280 lib/pacemaker/pcmk_sched_allocate.c return rc; rc 80 lib/pacemaker/pcmk_sched_clone.c int rc = 0; rc 303 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 308 lib/pacemaker/pcmk_sched_clone.c rc = 1; rc 314 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 334 lib/pacemaker/pcmk_sched_clone.c rc = 1; rc 339 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 345 lib/pacemaker/pcmk_sched_clone.c rc = 1; rc 350 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 362 lib/pacemaker/pcmk_sched_clone.c if (rc != 0) { rc 363 lib/pacemaker/pcmk_sched_clone.c return rc; rc 367 lib/pacemaker/pcmk_sched_clone.c rc = strcmp(resource1->id, resource2->id); rc 368 lib/pacemaker/pcmk_sched_clone.c crm_trace("%s %c %s: default", resource1->id, rc < 0 ? '<' : '>', resource2->id); rc 369 lib/pacemaker/pcmk_sched_clone.c return rc; rc 215 lib/pacemaker/pcmk_sched_constraints.c gboolean rc = FALSE; rc 218 lib/pacemaker/pcmk_sched_constraints.c rc = g_hash_table_lookup_extended(data_set->template_rsc_sets, id, rc 221 lib/pacemaker/pcmk_sched_constraints.c if (rc == FALSE) { rc 222 lib/pacemaker/pcmk_sched_constraints.c rc = g_hash_table_lookup_extended(data_set->tags, id, rc 225 lib/pacemaker/pcmk_sched_constraints.c if (rc == FALSE) { rc 239 lib/pacemaker/pcmk_sched_constraints.c return rc; rc 246 lib/pacemaker/pcmk_sched_constraints.c gboolean rc = FALSE; rc 258 lib/pacemaker/pcmk_sched_constraints.c rc = pe_find_constraint_tag(data_set, id, tag); rc 261 lib/pacemaker/pcmk_sched_constraints.c return rc; rc 2190 lib/pacemaker/pcmk_sched_constraints.c gboolean rc = TRUE; rc 2192 lib/pacemaker/pcmk_sched_constraints.c rc = unpack_order_tags(xml_obj, &expanded_xml, data_set); rc 2197 lib/pacemaker/pcmk_sched_constraints.c } else if (rc == FALSE) { rc 2674 lib/pacemaker/pcmk_sched_constraints.c gboolean rc = TRUE; rc 2680 lib/pacemaker/pcmk_sched_constraints.c rc = unpack_colocation_tags(xml_obj, &expanded_xml, data_set); rc 2685 lib/pacemaker/pcmk_sched_constraints.c } else if (rc == FALSE) { rc 3006 lib/pacemaker/pcmk_sched_constraints.c gboolean rc = TRUE; rc 3036 lib/pacemaker/pcmk_sched_constraints.c rc = unpack_rsc_ticket_tags(xml_obj, &expanded_xml, data_set); rc 3041 lib/pacemaker/pcmk_sched_constraints.c } else if (rc == FALSE) { rc 31 lib/pacemaker/pcmk_sched_messages.c int rc = pcmk_rc_ok; rc 48 lib/pacemaker/pcmk_sched_messages.c rc = pcmk__output_new(&out, "log", NULL, (char**)argv); rc 49 lib/pacemaker/pcmk_sched_messages.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 51 lib/pacemaker/pcmk_sched_messages.c pcmk_rc_str(rc)); rc 242 lib/pacemaker/pcmk_sched_promotable.c int rc; rc 255 lib/pacemaker/pcmk_sched_promotable.c rc = sort_rsc_index(a, b); rc 256 lib/pacemaker/pcmk_sched_promotable.c if (rc != 0) { rc 257 lib/pacemaker/pcmk_sched_promotable.c crm_trace("%s %c %s (index)", resource1->id, rc < 0 ? '<' : '>', resource2->id); rc 258 lib/pacemaker/pcmk_sched_promotable.c return rc; rc 81 lib/pacemaker/pcmk_sched_transition.c guint interval_ms, int rc) rc 83 lib/pacemaker/pcmk_sched_transition.c if (rc == 0) { rc 86 lib/pacemaker/pcmk_sched_transition.c } else if ((rc == 7) && (interval_ms == 0)) { rc 107 lib/pacemaker/pcmk_sched_transition.c int rc = pcmk_ok; rc 110 lib/pacemaker/pcmk_sched_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, NULL, cib_xpath | cib_sync_call | cib_scope_local); rc 112 lib/pacemaker/pcmk_sched_transition.c if (rc == -ENXIO) { rc 136 lib/pacemaker/pcmk_sched_transition.c op->rc = outcome; rc 169 lib/pacemaker/pcmk_sched_transition.c int rc = pcmk_ok; rc 177 lib/pacemaker/pcmk_sched_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 188 lib/pacemaker/pcmk_sched_transition.c if (rc == -ENXIO) { rc 205 lib/pacemaker/pcmk_sched_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 207 lib/pacemaker/pcmk_sched_transition.c crm_trace("injecting node state for %s. rc is %d", node, rc); rc 211 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 329 lib/pacemaker/pcmk_sched_transition.c int rc = pcmk_ok; rc 345 lib/pacemaker/pcmk_sched_transition.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 348 lib/pacemaker/pcmk_sched_transition.c if (rc != pcmk_ok) { rc 364 lib/pacemaker/pcmk_sched_transition.c return rc; rc 371 lib/pacemaker/pcmk_sched_transition.c int rc = pcmk_ok; rc 375 lib/pacemaker/pcmk_sched_transition.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 376 lib/pacemaker/pcmk_sched_transition.c if (rc == pcmk_ok) { rc 380 lib/pacemaker/pcmk_sched_transition.c } else if (rc != -ENXIO) { rc 381 lib/pacemaker/pcmk_sched_transition.c return rc; rc 396 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); rc 400 lib/pacemaker/pcmk_sched_transition.c return rc; rc 409 lib/pacemaker/pcmk_sched_transition.c int rc = pcmk_ok; rc 425 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call | cib_scope_local); rc 426 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 432 lib/pacemaker/pcmk_sched_transition.c rc = update_attr_delegate(cib, cib_sync_call | cib_scope_local, rc 436 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 446 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 448 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 460 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 462 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 484 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 486 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 494 lib/pacemaker/pcmk_sched_transition.c rc = set_ticket_state_attr(ticket_id, "granted", "true", rc 497 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 504 lib/pacemaker/pcmk_sched_transition.c rc = set_ticket_state_attr(ticket_id, "granted", "false", rc 507 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 514 lib/pacemaker/pcmk_sched_transition.c rc = set_ticket_state_attr(ticket_id, "standby", "true", rc 517 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 524 lib/pacemaker/pcmk_sched_transition.c rc = set_ticket_state_attr(ticket_id, "standby", "false", rc 527 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 533 lib/pacemaker/pcmk_sched_transition.c int rc = 0; rc 552 lib/pacemaker/pcmk_sched_transition.c rc = sscanf(spec, "%[^@]@%[^=]=%d", key, node, &outcome); rc 553 lib/pacemaker/pcmk_sched_transition.c if (rc != 3) { rc 554 lib/pacemaker/pcmk_sched_transition.c fprintf(stderr, "Invalid operation spec: %s. Only found %d fields\n", spec, rc); rc 586 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 588 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 612 lib/pacemaker/pcmk_sched_transition.c int rc = 0; rc 719 lib/pacemaker/pcmk_sched_transition.c rc = sscanf(spec, "%*[^=]=%d", (int *) &op->rc); rc 722 lib/pacemaker/pcmk_sched_transition.c if (rc != 1) { rc 730 lib/pacemaker/pcmk_sched_transition.c printf("\tPretending action %d failed with rc=%d\n", action->id, op->rc); rc 732 lib/pacemaker/pcmk_sched_transition.c op->interval_ms, op->rc); rc 740 lib/pacemaker/pcmk_sched_transition.c rc = fake_cib->cmds->modify(fake_cib, XML_CIB_TAG_STATUS, cib_node, rc 742 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 778 lib/pacemaker/pcmk_sched_transition.c int rc = 0; rc 785 lib/pacemaker/pcmk_sched_transition.c rc = fake_cib->cmds->replace(fake_cib, XML_CIB_TAG_STATUS, cib_node, rc 787 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 848 lib/pacemaker/pcmk_sched_transition.c int rc = fake_cib->cmds->query(fake_cib, NULL, &cib_object, cib_sync_call | cib_scope_local); rc 850 lib/pacemaker/pcmk_sched_transition.c CRM_ASSERT(rc == pcmk_ok); rc 655 lib/pacemaker/pcmk_sched_utils.c op->rc = 0; rc 689 lib/pacemaker/pcmk_sched_utils.c magic = generate_transition_magic(op->user_data, op->op_status, op->rc); rc 703 lib/pacemaker/pcmk_sched_utils.c crm_xml_add_int(xml_op, XML_LRM_ATTR_RC, op->rc); rc 93 lib/pacemaker/pcmk_trans_graph.c gboolean rc = FALSE; rc 105 lib/pacemaker/pcmk_trans_graph.c rc = update_synapse_confirmed(synapse, action->id); rc 108 lib/pacemaker/pcmk_trans_graph.c rc = update_synapse_ready(synapse, action->id); rc 110 lib/pacemaker/pcmk_trans_graph.c updates = updates || rc; rc 294 lib/pacemaker/pcmk_trans_unpack.c convert_graph_action(xmlNode * resource, crm_action_t * action, int status, int rc) rc 313 lib/pacemaker/pcmk_trans_unpack.c op->rc = rc; rc 31 lib/pengine/bundle.c int rc = sscanf(last_ip, "%u.%u.%u.%u", &oct1, &oct2, &oct3, &oct4); rc 33 lib/pengine/bundle.c if (rc != 4) { rc 1513 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1522 lib/pengine/bundle.c return rc; rc 1554 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "bundle", 6, rc 1561 lib/pengine/bundle.c CRM_ASSERT(rc == pcmk_rc_ok); rc 1564 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "replica", 1, "id", id); rc 1566 lib/pengine/bundle.c CRM_ASSERT(rc == pcmk_rc_ok); rc 1595 lib/pengine/bundle.c return rc; rc 1637 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1645 lib/pengine/bundle.c return rc; rc 1680 lib/pengine/bundle.c if (rc == pcmk_rc_no_output) { rc 1684 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1723 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1736 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1737 lib/pengine/bundle.c return rc; rc 1778 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1786 lib/pengine/bundle.c return rc; rc 1820 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1856 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1867 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1868 lib/pengine/bundle.c return rc; rc 590 lib/pengine/clone.c int rc = pcmk_rc_no_output; rc 595 lib/pengine/clone.c return rc; rc 615 lib/pengine/clone.c rc = pe__name_and_nvpairs_xml(out, true, "clone", 8, rc 624 lib/pengine/clone.c CRM_ASSERT(rc == pcmk_rc_ok); rc 635 lib/pengine/clone.c return rc; rc 658 lib/pengine/clone.c int rc = pcmk_rc_no_output; rc 664 lib/pengine/clone.c return rc; rc 676 lib/pengine/clone.c rc = pcmk_rc_ok; rc 872 lib/pengine/clone.c return rc; rc 895 lib/pengine/clone.c int rc = pcmk_rc_no_output; rc 901 lib/pengine/clone.c return rc; rc 913 lib/pengine/clone.c rc = pcmk_rc_ok; rc 1106 lib/pengine/clone.c return rc; rc 64 lib/pengine/failcounts.c int rc = 0; rc 67 lib/pengine/failcounts.c crm_element_value_int(lrm_op_xml, XML_LRM_ATTR_RC, &rc); rc 68 lib/pengine/failcounts.c if (rc != target_rc) { rc 195 lib/pengine/group.c int rc = pcmk_rc_no_output; rc 200 lib/pengine/group.c return rc; rc 213 lib/pengine/group.c if (rc == pcmk_rc_no_output) { rc 214 lib/pengine/group.c rc = pe__name_and_nvpairs_xml(out, true, "group", 4 rc 220 lib/pengine/group.c CRM_ASSERT(rc == pcmk_rc_ok); rc 227 lib/pengine/group.c if (rc == pcmk_rc_ok) { rc 231 lib/pengine/group.c return rc; rc 243 lib/pengine/group.c int rc = pcmk_rc_no_output; rc 247 lib/pengine/group.c return rc; rc 263 lib/pengine/group.c rc = pcmk_rc_ok; rc 275 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resource Group: %s%s%s", rsc->id, rc 284 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 286 lib/pengine/group.c return rc; rc 298 lib/pengine/group.c int rc = pcmk_rc_no_output; rc 302 lib/pengine/group.c return rc; rc 318 lib/pengine/group.c rc = pcmk_rc_ok; rc 330 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resource Group: %s%s%s", rsc->id, rc 339 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 341 lib/pengine/group.c return rc; rc 1069 lib/pengine/native.c int rc = pcmk_rc_no_output; rc 1089 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, true, "resource", 16, rc 1109 lib/pengine/native.c CRM_ASSERT(rc == pcmk_rc_ok); rc 1117 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, false, "node", 3, rc 1121 lib/pengine/native.c CRM_ASSERT(rc == pcmk_rc_ok); rc 1126 lib/pengine/native.c return rc; rc 1420 lib/pengine/native.c int rc = pcmk_rc_no_output; rc 1465 lib/pengine/native.c rc = pcmk_rc_ok; rc 1472 lib/pengine/native.c rc = pcmk_rc_ok; rc 1488 lib/pengine/native.c return rc; rc 18 lib/pengine/pe_output.c int rc = crm_parse_int(crm_element_value(xml_op, XML_LRM_ATTR_RC), "0"); rc 38 lib/pengine/pe_output.c services_ocf_exitcode_str(rc), rc, rc 53 lib/pengine/pe_output.c services_ocf_exitcode_str(rc), rc, rc 87 lib/pengine/pe_output.c int rc, gboolean print_timing) { rc 142 lib/pengine/pe_output.c rc, services_ocf_exitcode_str(rc)); rc 218 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 223 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 237 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 248 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 253 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 260 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 264 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 267 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 270 lib/pengine/pe_output.c return rc; rc 284 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 289 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 303 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 314 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 319 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 330 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 336 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 339 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 342 lib/pengine/pe_output.c return rc; rc 969 lib/pengine/pe_output.c int rc = crm_parse_int(crm_element_value(xml_op, XML_LRM_ATTR_RC), "0"); rc 973 lib/pengine/pe_output.c char *rc_s = crm_itoa(rc); rc 982 lib/pengine/pe_output.c (pcmkXmlStr) services_ocf_exitcode_str(rc)); rc 1319 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1328 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Node List"); rc 1334 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1335 lib/pengine/pe_output.c return rc; rc 1362 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1374 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Node List"); rc 1473 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1474 lib/pengine/pe_output.c return rc; rc 1510 lib/pengine/pe_output.c int rc = va_arg(args, int); rc 1513 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, print_timing); rc 1527 lib/pengine/pe_output.c int rc = va_arg(args, int); rc 1579 lib/pengine/pe_output.c rc_s = crm_itoa(rc); rc 1581 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "rc_text", (pcmkXmlStr) services_ocf_exitcode_str(rc)); rc 1668 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1674 lib/pengine/pe_output.c return rc; rc 1734 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 1738 lib/pengine/pe_output.c if (print_summary && rc != pcmk_rc_ok) { rc 1749 lib/pengine/pe_output.c return rc; rc 209 lib/pengine/rules.c int rc = pcmk_rc_undetermined; rc 223 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 225 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 227 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 232 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 234 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 236 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 240 lib/pengine/rules.c rc = time_field <= high ? pcmk_rc_within_range : pcmk_rc_after_range; rc 243 lib/pengine/rules.c rc = time_field >= low ? pcmk_rc_within_range : pcmk_rc_before_range; rc 247 lib/pengine/rules.c if (rc == pcmk_rc_within_range) { rc 253 lib/pengine/rules.c return rc; rc 257 lib/pengine/rules.c check_passes(int rc) { rc 263 lib/pengine/rules.c return rc == pcmk_rc_within_range || rc == pcmk_rc_undetermined; rc 1186 lib/pengine/rules.c int rc = pcmk_rc_undetermined; rc 1210 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 1213 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 1215 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 1224 lib/pengine/rules.c rc = pe_cron_range_satisfied(rule_data->now, date_spec); rc 1231 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 1233 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 1244 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 1247 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 1253 lib/pengine/rules.c return rc; rc 2219 lib/pengine/unpack.c const char *rc = crm_element_value(rsc_op, XML_LRM_ATTR_RC); rc 2221 lib/pengine/unpack.c if (pcmk__strcase_any_of(rc, "0", "8", NULL)) { rc 2495 lib/pengine/unpack.c int rc = PCMK_OCF_UNKNOWN_ERROR; rc 2498 lib/pengine/unpack.c crm_element_value_int(xml, XML_LRM_ATTR_RC, &rc); rc 2500 lib/pengine/unpack.c if ((rc != PCMK_OCF_OK) || (status != PCMK_LRM_OP_DONE)) { rc 2904 lib/pengine/unpack.c unpack_rsc_op_failure(pe_resource_t * rsc, pe_node_t * node, int rc, xmlNode * xml_op, xmlNode ** last_failure, rc 2931 lib/pengine/unpack.c && (rc == PCMK_OCF_NOT_INSTALLED)) { rc 2934 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc 2937 lib/pengine/unpack.c last_change_str(xml_op), rc, ID(xml_op)); rc 2941 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc 2944 lib/pengine/unpack.c last_change_str(xml_op), rc, ID(xml_op)); rc 2946 lib/pengine/unpack.c if (is_probe && (rc != PCMK_OCF_OK) rc 2947 lib/pengine/unpack.c && (rc != PCMK_OCF_NOT_RUNNING) rc 2948 lib/pengine/unpack.c && (rc != PCMK_OCF_RUNNING_MASTER)) { rc 2985 lib/pengine/unpack.c } else if(rc == PCMK_OCF_NOT_RUNNING) { rc 2998 lib/pengine/unpack.c if(is_probe && rc == PCMK_OCF_NOT_INSTALLED) { rc 3067 lib/pengine/unpack.c pe_resource_t *rsc, int rc, int target_rc, pe_node_t * node, xmlNode * xml_op, enum action_fail_response * on_fail, pe_working_set_t * data_set) rc 3103 lib/pengine/unpack.c } else if (target_rc != rc) { rc 3108 lib/pengine/unpack.c rc, services_ocf_exitcode_str(rc), rc 3112 lib/pengine/unpack.c switch (rc) { rc 3123 lib/pengine/unpack.c if (is_probe || (target_rc == rc) rc 3136 lib/pengine/unpack.c if (is_probe && (rc != target_rc)) { rc 3171 lib/pengine/unpack.c node->details->uname, services_ocf_exitcode_str(rc), rc 3173 lib/pengine/unpack.c last_change_str(xml_op), rc, ID(xml_op)); rc 3184 lib/pengine/unpack.c rc, task, rsc->id, node->details->uname, rc 3213 lib/pengine/unpack.c switch (digest_data->rc) { rc 3309 lib/pengine/unpack.c check_operation_expiry(pe_resource_t *rsc, pe_node_t *node, int rc, rc 3409 lib/pengine/unpack.c switch(rc) { rc 3449 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, rc 3457 lib/pengine/unpack.c if (rc == PCMK_OCF_NOT_RUNNING) { rc 3460 lib/pengine/unpack.c } else if (rc == PCMK_OCF_NOT_INSTALLED) { rc 3565 lib/pengine/unpack.c remap_monitor_rc(int rc, xmlNode *xml_op, const pe_node_t *node, rc 3568 lib/pengine/unpack.c int remapped_rc = pcmk__effective_rc(rc); rc 3570 lib/pengine/unpack.c if (rc != remapped_rc) { rc 3571 lib/pengine/unpack.c crm_trace("Remapping monitor result %d to %d", rc, remapped_rc); rc 3584 lib/pengine/unpack.c int rc = 0; rc 3606 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_RC, &rc); rc 3626 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); rc 3647 lib/pengine/unpack.c && check_operation_expiry(rsc, node, rc, xml_op, data_set)) { rc 3652 lib/pengine/unpack.c rc = remap_monitor_rc(rc, xml_op, node, rsc, data_set); rc 3655 lib/pengine/unpack.c if (expired && (rc != target_rc)) { rc 3661 lib/pengine/unpack.c task_key, node->details->uname, rc, target_rc, magic); rc 3677 lib/pengine/unpack.c task_key, node->details->uname, rc, target_rc, magic); rc 3689 lib/pengine/unpack.c status = determine_op_status(rsc, rc, target_rc, node, xml_op, on_fail, data_set); rc 3742 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); rc 3751 lib/pengine/unpack.c task, rsc->id, node->details->uname, status, rc, rc 3757 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); rc 3789 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), rc 3791 lib/pengine/unpack.c node->details->uname, last_change_str(xml_op), rc, rc 3806 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); rc 3809 lib/pengine/unpack.c do_crm_log(rc != PCMK_OCF_NOT_INSTALLED?LOG_ERR:LOG_NOTICE, rc 3813 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc 3815 lib/pengine/unpack.c rc, ID(xml_op)); rc 3821 lib/pengine/unpack.c parent->id, services_ocf_exitcode_str(rc), rc 3823 lib/pengine/unpack.c rc, ID(xml_op)); rc 2173 lib/pengine/utils.c data->rc = RSC_DIGEST_MATCH; rc 2179 lib/pengine/utils.c data->rc = RSC_DIGEST_RESTART; rc 2183 lib/pengine/utils.c data->rc = RSC_DIGEST_UNKNOWN; rc 2191 lib/pengine/utils.c data->rc = RSC_DIGEST_ALL; rc 2292 lib/pengine/utils.c data->rc = RSC_DIGEST_UNKNOWN; rc 2299 lib/pengine/utils.c data->rc = RSC_DIGEST_MATCH; rc 2307 lib/pengine/utils.c data->rc = RSC_DIGEST_MATCH; rc 2316 lib/pengine/utils.c data->rc = RSC_DIGEST_ALL; rc 2488 lib/pengine/utils.c if(data->rc == RSC_DIGEST_ALL) { rc 879 lib/services/services.c gboolean rc = TRUE; rc 896 lib/services/services.c rc = action_get_metadata(op); rc 898 lib/services/services.c rc = action_exec_helper(op); rc 901 lib/services/services.c op->rsc, op->action, op->interval_ms, op->opaque->exec, op->rc); rc 908 lib/services/services.c return rc; rc 1029 lib/services/services.c gboolean rc = FALSE; rc 1035 lib/services/services.c rc = TRUE; rc 1040 lib/services/services.c if (rc == FALSE) { rc 1044 lib/services/services.c rc = FALSE; rc 1051 lib/services/services.c rc = TRUE; rc 1056 lib/services/services.c rc = TRUE; rc 1059 lib/services/services.c if (rc == FALSE) { rc 1065 lib/services/services.c rc = TRUE; rc 1068 lib/services/services.c rc = TRUE; rc 1073 lib/services/services.c rc = TRUE; rc 1076 lib/services/services.c rc = FALSE; rc 1080 lib/services/services.c rc = services__ocf_agent_exists(provider, agent); rc 1083 lib/services/services.c rc = services__lsb_agent_exists(agent); rc 1087 lib/services/services.c rc = systemd_unit_exists(agent); rc 1092 lib/services/services.c rc = upstart_job_exists(agent); rc 1097 lib/services/services.c rc = services__nagios_agent_exists(agent); rc 1101 lib/services/services.c rc = FALSE; rc 1107 lib/services/services.c return rc; rc 159 lib/services/services_linux.c int rc; rc 169 lib/services/services_linux.c rc = pcmk__set_nonblocking(data->pipe_fd[0]); rc 170 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 172 lib/services/services_linux.c pcmk_rc_str(rc), rc); rc 174 lib/services/services_linux.c rc = pcmk__set_nonblocking(data->pipe_fd[1]); rc 175 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 177 lib/services/services_linux.c pcmk_rc_str(rc), rc); rc 259 lib/services/services_linux.c int rc = 0, len = 0; rc 284 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); rc 285 lib/services/services_linux.c if (rc > 0) { rc 286 lib/services/services_linux.c buf[rc] = 0; rc 287 lib/services/services_linux.c crm_trace("Got %d chars: %.80s", rc, buf); rc 288 lib/services/services_linux.c data = pcmk__realloc(data, len + rc + 1); rc 295 lib/services/services_linux.c rc = FALSE; rc 299 lib/services/services_linux.c } while (rc == buf_read_len || rc < 0); rc 307 lib/services/services_linux.c return rc; rc 382 lib/services/services_linux.c int rc; rc 385 lib/services/services_linux.c rc = setenv(key, value, 1); rc 387 lib/services/services_linux.c rc = unsetenv(key); rc 390 lib/services/services_linux.c if (rc < 0) { rc 598 lib/services/services_linux.c op->rc = exitcode; rc 603 lib/services/services_linux.c op->rc = PCMK_OCF_TIMEOUT; rc 612 lib/services/services_linux.c op->rc = PCMK_OCF_OK; rc 618 lib/services/services_linux.c op->rc = PCMK_OCF_SIGNAL; rc 666 lib/services/services_linux.c op->rc = rc_not_installed; rc 671 lib/services/services_linux.c op->rc = rc_insufficient_priv; rc 675 lib/services/services_linux.c op->rc = rc_exec_error; rc 760 lib/services/services_linux.c _exit(op->rc); rc 831 lib/services/services_linux.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 855 lib/services/services_linux.c op->rc = WEXITSTATUS(status); rc 856 lib/services/services_linux.c crm_info("%s[%d] exited with status %d", op->id, op->pid, op->rc); rc 885 lib/services/services_linux.c int rc; rc 891 lib/services/services_linux.c rc = errno; rc 893 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 894 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 902 lib/services/services_linux.c rc = errno; rc 904 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 905 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 913 lib/services/services_linux.c rc = errno; rc 918 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 919 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 928 lib/services/services_linux.c rc = errno; rc 934 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 935 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 954 lib/services/services_linux.c rc = errno; rc 960 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 961 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 1017 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdout_fd); rc 1018 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1021 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1025 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stderr_fd); rc 1026 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1029 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1036 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdin_fd); rc 1037 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1040 lib/services/services_linux.c pcmk_rc_str(rc), op->opaque->stdin_fd, rc); rc 1172 lib/services/services_linux.c gboolean rc = FALSE; rc 1176 lib/services/services_linux.c return rc; rc 1181 lib/services/services_linux.c rc = TRUE; rc 1185 lib/services/services_linux.c return rc; rc 260 lib/services/services_lsb.c bool rc = FALSE; rc 264 lib/services/services_lsb.c rc = (stat(path, &st) == 0); rc 266 lib/services/services_lsb.c return rc; rc 67 lib/services/services_nagios.c gboolean rc = FALSE; rc 71 lib/services/services_nagios.c return rc; rc 76 lib/services/services_nagios.c rc = TRUE; rc 80 lib/services/services_nagios.c return rc; rc 86 lib/services/services_nagios.c int rc = pcmk_ok; rc 111 lib/services/services_nagios.c rc = -EIO; rc 122 lib/services/services_nagios.c rc = -EIO; rc 128 lib/services/services_nagios.c return rc; rc 241 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 246 lib/services/systemd.c op->rc = PCMK_OCF_NOT_INSTALLED; rc 561 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 570 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 663 lib/services/systemd.c int rc = fprintf(file_strm, "%s\n", override); rc 666 lib/services/systemd.c if (rc < 0) { rc 682 lib/services/systemd.c int rc = unlink(override_file); rc 684 lib/services/systemd.c if (rc < 0) { rc 702 lib/services/systemd.c op->rc = PCMK_OCF_NOT_RUNNING; rc 705 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 707 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 709 lib/services/systemd.c op->rc = PCMK_OCF_PENDING; rc 711 lib/services/systemd.c op->rc = PCMK_OCF_PENDING; rc 713 lib/services/systemd.c op->rc = PCMK_OCF_NOT_RUNNING; rc 742 lib/services/systemd.c return op->rc == PCMK_OCF_OK; rc 763 lib/services/systemd.c op->rc = PCMK_OCF_UNIMPLEMENT_FEATURE; rc 812 lib/services/systemd.c return op->rc == PCMK_OCF_OK; rc 836 lib/services/systemd.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 843 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 865 lib/services/systemd.c return op->rc == PCMK_OCF_OK; rc 302 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 306 lib/services/upstart.c op->rc = PCMK_OCF_NOT_RUNNING; rc 347 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 351 lib/services/upstart.c op->rc = PCMK_OCF_NOT_INSTALLED; rc 359 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 388 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 393 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 402 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 430 lib/services/upstart.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 435 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 442 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 445 lib/services/upstart.c op->rc = PCMK_OCF_NOT_INSTALLED; rc 454 lib/services/upstart.c op->rc = PCMK_OCF_NOT_RUNNING; rc 468 lib/services/upstart.c return op->rc == PCMK_OCF_OK; rc 485 lib/services/upstart.c op->rc = PCMK_OCF_UNIMPLEMENT_FEATURE; rc 533 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 537 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 546 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 563 lib/services/upstart.c return op->rc == PCMK_OCF_OK; rc 31 replace/setenv.c int rc = -1; rc 41 replace/setenv.c rc = putenv(envp); rc 43 replace/setenv.c return (rc); rc 296 tools/attrd_updater.c int rc; rc 316 tools/attrd_updater.c rc = -ENOTCONN; rc 318 tools/attrd_updater.c rc = crm_ipc_send(ipc, query, crm_ipc_client_response, 0, reply); rc 319 tools/attrd_updater.c if (rc > 0) { rc 320 tools/attrd_updater.c rc = pcmk_ok; rc 327 tools/attrd_updater.c return(rc); rc 421 tools/attrd_updater.c int rc; rc 431 tools/attrd_updater.c rc = send_attrd_query(attr_name, attr_node, &reply); rc 432 tools/attrd_updater.c if (rc != pcmk_ok) { rc 433 tools/attrd_updater.c fprintf(stderr, "Could not query value of %s: %s (%d)\n", attr_name, pcmk_strerror(rc), rc); rc 434 tools/attrd_updater.c return rc; rc 438 tools/attrd_updater.c rc = validate_attrd_reply(reply, attr_name); rc 439 tools/attrd_updater.c if (rc != pcmk_ok) { rc 443 tools/attrd_updater.c return rc; rc 463 tools/attrd_updater.c int rc = pcmk__node_attr_request(NULL, command, attr_node, attr_name, rc 466 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 468 tools/attrd_updater.c attr_name, attr_value, pcmk_rc_str(rc), rc); rc 470 tools/attrd_updater.c return rc; rc 35 tools/cibadmin.c void cibadmin_op_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 398 tools/cibadmin.c int rc = pcmk_ok; rc 643 tools/cibadmin.c rc = do_init(); rc 644 tools/cibadmin.c if (rc != pcmk_ok) { rc 648 tools/cibadmin.c crm_exit(crm_errno2exit(rc)); rc 651 tools/cibadmin.c rc = do_work(input, command_options, &output); rc 652 tools/cibadmin.c if (rc > 0) { rc 656 tools/cibadmin.c request_id = rc; rc 668 tools/cibadmin.c } else if ((rc == -pcmk_err_schema_unchanged) rc 672 tools/cibadmin.c } else if (rc < 0) { rc 673 tools/cibadmin.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 674 tools/cibadmin.c fprintf(stderr, "Call failed: %s\n", pcmk_strerror(rc)); rc 676 tools/cibadmin.c if (rc == -pcmk_err_schema_validation) { rc 679 tools/cibadmin.c int version = 0, rc = 0; rc 681 tools/cibadmin.c rc = the_cib->cmds->query(the_cib, NULL, &obj, command_options); rc 682 tools/cibadmin.c if (rc == pcmk_ok) { rc 690 tools/cibadmin.c exit_code = crm_errno2exit(rc); rc 701 tools/cibadmin.c rc = the_cib->cmds->signoff(the_cib); rc 703 tools/cibadmin.c exit_code = crm_errno2exit(rc); rc 737 tools/cibadmin.c int rc = pcmk_ok; rc 740 tools/cibadmin.c rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 741 tools/cibadmin.c if (rc != pcmk_ok) { rc 742 tools/cibadmin.c crm_err("Could not connect to the CIB: %s", pcmk_strerror(rc)); rc 744 tools/cibadmin.c pcmk_strerror(rc)); rc 747 tools/cibadmin.c return rc; rc 751 tools/cibadmin.c cibadmin_op_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 753 tools/cibadmin.c exit_code = crm_errno2exit(rc); rc 755 tools/cibadmin.c if (rc == -pcmk_err_schema_unchanged) { rc 758 tools/cibadmin.c } else if (rc != pcmk_ok) { rc 759 tools/cibadmin.c crm_warn("Call %s failed (%d): %s", cib_action, rc, pcmk_strerror(rc)); rc 760 tools/cibadmin.c fprintf(stderr, "Call %s failed (%d): %s\n", cib_action, rc, pcmk_strerror(rc)); rc 249 tools/crm_attribute.c int rc = pcmk_ok; rc 356 tools/crm_attribute.c rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 358 tools/crm_attribute.c if (rc != pcmk_ok) { rc 360 tools/crm_attribute.c pcmk_strerror(rc)); rc 361 tools/crm_attribute.c crm_exit(crm_errno2exit(rc)); rc 390 tools/crm_attribute.c rc = query_node_uuid(the_cib, dest_uname, &dest_node, &is_remote_node); rc 391 tools/crm_attribute.c if (pcmk_ok != rc) { rc 395 tools/crm_attribute.c crm_exit(crm_errno2exit(rc)); rc 435 tools/crm_attribute.c rc = delete_attr_delegate(the_cib, cib_opts, type, dest_node, set_type, set_name, rc 438 tools/crm_attribute.c if (rc == -ENXIO) { rc 443 tools/crm_attribute.c rc = pcmk_ok; rc 451 tools/crm_attribute.c rc = update_attr_delegate(the_cib, cib_opts, type, dest_node, set_type, set_name, rc 458 tools/crm_attribute.c rc = read_attr_delegate(the_cib, type, dest_node, set_type, set_name, rc 461 tools/crm_attribute.c if (rc == -ENXIO && attr_default) { rc 463 tools/crm_attribute.c rc = pcmk_ok; rc 469 tools/crm_attribute.c if (rc == -ENOTUNIQ) { rc 471 tools/crm_attribute.c rc = pcmk_ok; rc 486 tools/crm_attribute.c if (rc == -ENOTUNIQ) { rc 489 tools/crm_attribute.c } else if (rc != pcmk_ok) { rc 490 tools/crm_attribute.c fprintf(stderr, "Error performing operation: %s\n", pcmk_strerror(rc)); rc 495 tools/crm_attribute.c crm_exit(crm_errno2exit(rc)); rc 133 tools/crm_diff.c int rc; rc 136 tools/crm_diff.c rc = xml_apply_patchset(output, patch, as_cib); rc 137 tools/crm_diff.c if (rc != pcmk_ok) { rc 138 tools/crm_diff.c fprintf(stderr, "Could not apply patch: %s\n", pcmk_strerror(rc)); rc 140 tools/crm_diff.c return rc; rc 303 tools/crm_diff.c int rc = pcmk_ok; rc 321 tools/crm_diff.c rc = CRM_EX_USAGE; rc 339 tools/crm_diff.c rc = CRM_EX_USAGE; rc 347 tools/crm_diff.c rc = CRM_EX_USAGE; rc 375 tools/crm_diff.c rc = CRM_EX_DATAERR; rc 380 tools/crm_diff.c rc = CRM_EX_DATAERR; rc 385 tools/crm_diff.c rc = apply_patch(object_1, object_2, options.as_cib); rc 387 tools/crm_diff.c rc = generate_patch(object_1, object_2, options.xml_file_2, options.as_cib, options.no_version); rc 398 tools/crm_diff.c return crm_errno2exit(rc); rc 44 tools/crm_error.c get_strings(int rc, const char **name, const char **str) rc 47 tools/crm_error.c *str = crm_exit_str((crm_exit_t) rc); rc 48 tools/crm_error.c *name = crm_exit_name(rc); rc 50 tools/crm_error.c *str = pcmk_rc_str(rc); rc 51 tools/crm_error.c *name = pcmk_rc_name(rc); rc 53 tools/crm_error.c *str = pcmk_strerror(rc); rc 54 tools/crm_error.c *name = pcmk_errorname(rc); rc 77 tools/crm_error.c int rc = pcmk_rc_ok; rc 114 tools/crm_error.c for (rc = start; rc < end; rc++) { rc 115 tools/crm_error.c if (rc == (pcmk_rc_error + 1)) { rc 117 tools/crm_error.c rc = pcmk_rc_ok; rc 119 tools/crm_error.c get_strings(rc, &name, &desc); rc 123 tools/crm_error.c printf("% .*d: %-26s %s\n", width, rc, name, desc); rc 125 tools/crm_error.c printf("% .*d: %s\n", width, rc, desc); rc 139 tools/crm_error.c rc = crm_atoi(processed_args[lpc], NULL); rc 140 tools/crm_error.c get_strings(rc, &name, &desc); rc 275 tools/crm_mon.c gboolean rc = TRUE; rc 288 tools/crm_mon.c rc = apply_include(s+10, error); rc 290 tools/crm_mon.c rc = apply_include(s+3, error); rc 292 tools/crm_mon.c rc = apply_exclude(s+10, error); rc 294 tools/crm_mon.c rc = apply_exclude(s+3, error); rc 297 tools/crm_mon.c if (rc != TRUE) { rc 304 tools/crm_mon.c return rc; rc 382 tools/crm_mon.c int rc = crm_atoi(optarg, "2"); rc 384 tools/crm_mon.c switch (rc) { rc 462 tools/crm_mon.c int rc = crm_get_msec(optarg); rc 464 tools/crm_mon.c if (rc == -1) { rc 483 tools/crm_mon.c gboolean rc = include_exclude_cb("--include", s, data, err); rc 485 tools/crm_mon.c return rc; rc 670 tools/crm_mon.c int rc = pcmk_ok; rc 685 tools/crm_mon.c rc = cib_connect(TRUE); rc 687 tools/crm_mon.c if (rc != pcmk_ok) { rc 776 tools/crm_mon.c int rc = pcmk_ok; rc 792 tools/crm_mon.c rc = st->cmds->connect(st, crm_system_name, NULL); rc 793 tools/crm_mon.c if (rc == pcmk_ok) { rc 821 tools/crm_mon.c rc = cib->cmds->signon(cib, crm_system_name, cib_query); rc 822 tools/crm_mon.c if (rc != pcmk_ok) { rc 824 tools/crm_mon.c pcmk_strerror(rc)); rc 825 tools/crm_mon.c return rc; rc 828 tools/crm_mon.c rc = cib->cmds->query(cib, NULL, ¤t_cib, cib_scope_local | cib_sync_call); rc 829 tools/crm_mon.c if (rc == pcmk_ok) { rc 833 tools/crm_mon.c if (rc == pcmk_ok && full) { rc 834 tools/crm_mon.c if (rc == pcmk_ok) { rc 835 tools/crm_mon.c rc = cib->cmds->set_connection_dnotify(cib, mon_cib_connection_destroy_regular); rc 836 tools/crm_mon.c if (rc == -EPROTONOSUPPORT) { rc 842 tools/crm_mon.c rc = pcmk_ok; rc 847 tools/crm_mon.c if (rc == pcmk_ok) { rc 849 tools/crm_mon.c rc = cib->cmds->add_notify_callback(cib, T_CIB_DIFF_NOTIFY, crm_diff_update); rc 852 tools/crm_mon.c if (rc != pcmk_ok) { rc 858 tools/crm_mon.c return rc; rc 1163 tools/crm_mon.c int rc = pcmk_ok; rc 1220 tools/crm_mon.c rc = -EINVAL; rc 1248 tools/crm_mon.c rc = -EINVAL; rc 1278 tools/crm_mon.c rc = -EINVAL; rc 1298 tools/crm_mon.c if (rc != pcmk_ok) { rc 1312 tools/crm_mon.c rc = pcmk__output_new(&out, "text", args->output_dest, argv); rc 1314 tools/crm_mon.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 1317 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1319 tools/crm_mon.c args->output_ty, pcmk_rc_str(rc)); rc 1379 tools/crm_mon.c rc = cib_connect(!pcmk_is_set(options.mon_ops, mon_op_one_shot)); rc 1384 tools/crm_mon.c } else if (rc != pcmk_ok) { rc 1398 tools/crm_mon.c } while (rc == -ENOTCONN); rc 1401 tools/crm_mon.c if (rc != pcmk_ok) { rc 1404 tools/crm_mon.c pcmk_strerror(rc)); rc 1407 tools/crm_mon.c if (rc == -ENOTCONN) { rc 1410 tools/crm_mon.c g_set_error(&error, PCMK__EXITC_ERROR, CRM_EX_ERROR, "Connection to cluster failed: %s", pcmk_strerror(rc)); rc 1413 tools/crm_mon.c return clean_up(crm_errno2exit(rc)); rc 1581 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, rc 1587 tools/crm_mon.c char *rc_s = crm_itoa(rc); rc 1626 tools/crm_mon.c int rc = -1; rc 1663 tools/crm_mon.c if (!decode_transition_magic(magic, NULL, NULL, NULL, &status, &rc, rc 1699 tools/crm_mon.c if (status == PCMK_LRM_OP_DONE && target_rc == rc) { rc 1701 tools/crm_mon.c if (rc == PCMK_OCF_NOT_RUNNING) { rc 1706 tools/crm_mon.c desc = services_ocf_exitcode_str(rc); rc 1715 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); rc 1875 tools/crm_mon.c int rc = -1; rc 1883 tools/crm_mon.c rc = xml_apply_patchset(current_cib, diff, TRUE); rc 1885 tools/crm_mon.c switch (rc) { rc 1888 tools/crm_mon.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 1895 tools/crm_mon.c crm_notice("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 366 tools/crm_mon_curses.c int rc; rc 372 tools/crm_mon_curses.c rc = pcmk_rc_ok; rc 377 tools/crm_mon_curses.c rc = pcmk_rc_ok; rc 379 tools/crm_mon_curses.c rc = pcmk_rc_no_output; rc 384 tools/crm_mon_curses.c return rc; rc 179 tools/crm_mon_print.c int rc = pcmk_rc_no_output; rc 199 tools/crm_mon_print.c if (rc == pcmk_rc_no_output) { rc 204 tools/crm_mon_print.c rc = pcmk_rc_ok; rc 215 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 216 tools/crm_mon_print.c return rc; rc 236 tools/crm_mon_print.c int rc = pcmk_rc_no_output; rc 279 tools/crm_mon_print.c if (rc == pcmk_rc_no_output) { rc 280 tools/crm_mon_print.c rc = pcmk_rc_ok; rc 298 tools/crm_mon_print.c if (rc == pcmk_rc_no_output) { rc 299 tools/crm_mon_print.c rc = pcmk_rc_ok; rc 312 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 313 tools/crm_mon_print.c return rc; rc 420 tools/crm_mon_print.c int rc = pcmk_rc_no_output; rc 423 tools/crm_mon_print.c return rc; rc 445 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, operations ? "Operations" : "Migration Summary"); rc 451 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 452 tools/crm_mon_print.c return rc; rc 505 tools/crm_mon_print.c int rc = pcmk_rc_no_output; rc 523 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Negative Location Constraints"); rc 530 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 531 tools/crm_mon_print.c return rc; rc 548 tools/crm_mon_print.c int rc = pcmk_rc_no_output; rc 582 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Node Attributes"); rc 596 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 597 tools/crm_mon_print.c return rc; rc 612 tools/crm_mon_print.c int rc = pcmk_rc_no_output; rc 617 tools/crm_mon_print.c return rc; rc 640 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Resource Actions"); rc 644 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 645 tools/crm_mon_print.c return rc; rc 673 tools/crm_mon_print.c int rc = pcmk_rc_no_output; rc 675 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "cluster-summary", data_set, rc 687 tools/crm_mon_print.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); rc 688 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "node-list", data_set->nodes, unames, rc 697 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "resource-list", data_set, print_opts, rc 701 tools/crm_mon_print.c resources, rc == pcmk_rc_ok)); rc 706 tools/crm_mon_print.c CHECK_RC(rc, print_node_attributes(out, data_set, mon_ops, unames, resources, rc 707 tools/crm_mon_print.c rc == pcmk_rc_ok)); rc 716 tools/crm_mon_print.c CHECK_RC(rc, print_node_summary(out, data_set, rc 719 tools/crm_mon_print.c (rc == pcmk_rc_ok))); rc 726 tools/crm_mon_print.c CHECK_RC(rc, print_failed_actions(out, data_set, unames, resources, rc 727 tools/crm_mon_print.c rc == pcmk_rc_ok)); rc 738 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "failed-fencing-history", stonith_history, unames, rc 740 tools/crm_mon_print.c rc == pcmk_rc_ok)); rc 746 tools/crm_mon_print.c CHECK_RC(rc, print_cluster_tickets(out, data_set, rc == pcmk_rc_ok)); rc 751 tools/crm_mon_print.c CHECK_RC(rc, print_neg_locations(out, data_set, mon_ops, prefix, resources, rc 752 tools/crm_mon_print.c rc == pcmk_rc_ok)); rc 762 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "fencing-history", hp, unames, rc 764 tools/crm_mon_print.c rc == pcmk_rc_ok)); rc 770 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "pending-fencing-actions", hp, unames, rc 772 tools/crm_mon_print.c rc == pcmk_rc_ok)); rc 44 tools/crm_mon_runtime.c int rc; rc 46 tools/crm_mon_runtime.c rc = strcmp((const char *)a, (const char *)b); rc 48 tools/crm_mon_runtime.c return rc; rc 266 tools/crm_node.c int rc; rc 272 tools/crm_node.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 273 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 275 tools/crm_node.c pcmk_rc_str(rc)); rc 281 tools/crm_node.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_main); rc 282 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 284 tools/crm_node.c pcmk_rc_str(rc)); rc 285 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 290 tools/crm_node.c rc = pcmk_controld_api_list_nodes(controld_api); rc 292 tools/crm_node.c rc = pcmk_controld_api_node_info(controld_api, nodeid); rc 294 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 296 tools/crm_node.c pcmk_rc_str(rc)); rc 298 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 330 tools/crm_node.c int rc; rc 354 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_NODES, node, cib_sync_call); rc 355 tools/crm_node.c if (rc != pcmk_ok) { rc 357 tools/crm_node.c name, id, pcmk_strerror(rc)); rc 359 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, node_state, cib_sync_call); rc 360 tools/crm_node.c if (rc != pcmk_ok) { rc 362 tools/crm_node.c name, id, pcmk_strerror(rc)); rc 367 tools/crm_node.c return rc; rc 374 tools/crm_node.c int rc; rc 377 tools/crm_node.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 378 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 380 tools/crm_node.c pcmk_rc_str(rc)); rc 385 tools/crm_node.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_sync); rc 386 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 388 tools/crm_node.c pcmk_rc_str(rc)); rc 390 tools/crm_node.c return rc; rc 393 tools/crm_node.c rc = pcmk_ipc_purge_node(controld_api, node_name, nodeid); rc 394 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 397 tools/crm_node.c pcmk_rc_str(rc)); rc 407 tools/crm_node.c int rc = -1; rc 446 tools/crm_node.c rc = crm_ipc_send(conn, cmd, 0, 0, NULL); rc 448 tools/crm_node.c target, node_name, nodeid, rc); rc 450 tools/crm_node.c if (rc > 0) { rc 452 tools/crm_node.c rc = cib_remove_node(nodeid, node_name); rc 460 tools/crm_node.c return rc > 0 ? 0 : rc; rc 466 tools/crm_node.c int rc; rc 487 tools/crm_node.c rc = controller_remove_node(node_name, nodeid); rc 488 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 489 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 907 tools/crm_resource.c int rc = pcmk_rc_ok; rc 916 tools/crm_resource.c rc = cli_resource_ban(options.rsc_id, current->details->uname, move_lifetime, NULL, rc 935 tools/crm_resource.c rc = cli_resource_ban(options.rsc_id, current->details->uname, move_lifetime, NULL, rc 939 tools/crm_resource.c rc = EINVAL; rc 951 tools/crm_resource.c rc = EINVAL; rc 960 tools/crm_resource.c return rc; rc 966 tools/crm_resource.c int rc = pcmk_rc_ok; rc 974 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, options.operation, rc 977 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !BE_QUIET) { rc 982 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 995 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1002 tools/crm_resource.c rc = cli_resource_clear_all_expired(data_set->input, cib_conn, options.cib_options, rc 1009 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1013 tools/crm_resource.c return rc; rc 1015 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, dest->details->uname, NULL, rc 1019 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, NULL, data_set->nodes, rc 1024 tools/crm_resource.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_xml_copy, cib_scope_local | cib_sync_call); rc 1025 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1027 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1028 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1029 tools/crm_resource.c "Could not get modified CIB: %s\n", pcmk_strerror(rc)); rc 1031 tools/crm_resource.c return rc; rc 1049 tools/crm_resource.c return rc; rc 1055 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1059 tools/crm_resource.c rc = ENXIO; rc 1060 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1062 tools/crm_resource.c return rc; rc 1068 tools/crm_resource.c rc = cib_conn->cmds->remove(cib_conn, XML_CIB_TAG_RESOURCES, msg_data, rc 1070 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1072 tools/crm_resource.c return rc; rc 1078 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1087 tools/crm_resource.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, agent_spec, provider); rc 1089 tools/crm_resource.c if (rc > 0) { rc 1094 tools/crm_resource.c rc = pcmk_rc_ok; rc 1097 tools/crm_resource.c rc = pcmk_rc_error; rc 1109 tools/crm_resource.c return rc; rc 1115 tools/crm_resource.c int rc; rc 1123 tools/crm_resource.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 1128 tools/crm_resource.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, agent_spec, rc 1139 tools/crm_resource.c if (rc > 0) { rc 1144 tools/crm_resource.c rc = pcmk_rc_ok; rc 1148 tools/crm_resource.c rc = pcmk_rc_error; rc 1154 tools/crm_resource.c rc = pcmk_rc_error; rc 1160 tools/crm_resource.c return rc; rc 1166 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1179 tools/crm_resource.c rc = ENXIO; rc 1182 tools/crm_resource.c return rc; rc 1220 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1225 tools/crm_resource.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_xml_copy, cib_scope_local | cib_sync_call); rc 1226 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1229 tools/crm_resource.c if(rc != pcmk_rc_ok) { rc 1230 tools/crm_resource.c return rc; rc 1236 tools/crm_resource.c rc = ENOMEM; rc 1237 tools/crm_resource.c return rc; rc 1241 tools/crm_resource.c rc = update_working_set_xml(data_set, cib_xml_copy); rc 1242 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1245 tools/crm_resource.c return rc; rc 1251 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1261 tools/crm_resource.c rc = ENXIO; rc 1262 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1265 tools/crm_resource.c return rc; rc 1275 tools/crm_resource.c rc = pcmk_rc_ok; rc 1276 tools/crm_resource.c return rc; rc 1281 tools/crm_resource.c rc = pcmk__node_attr_request_clear(NULL, options.host_uname, rc 1290 tools/crm_resource.c return rc; rc 1296 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1304 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, NULL, 0, FALSE, rc 1307 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !BE_QUIET) { rc 1312 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1320 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1326 tools/crm_resource.c rc = ENXIO; rc 1327 tools/crm_resource.c return rc; rc 1332 tools/crm_resource.c rc = EINVAL; rc 1333 tools/crm_resource.c return rc; rc 1342 tools/crm_resource.c rc = cib_conn->cmds->modify(cib_conn, XML_CIB_TAG_RESOURCES, msg_data, rc 1344 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1347 tools/crm_resource.c return rc; rc 1353 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1360 tools/crm_resource.c rc = crm_parse_agent_spec(agent_spec, &standard, &provider, &type); rc 1361 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1363 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1364 tools/crm_resource.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, standard, rc 1367 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1372 tools/crm_resource.c *exit_code = crm_errno2exit(rc); rc 1375 tools/crm_resource.c agent_spec, pcmk_rc_str(rc)); rc 1378 tools/crm_resource.c rc = ENXIO; rc 1379 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1384 tools/crm_resource.c return rc; rc 1505 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1551 tools/crm_resource.c int rc = sscanf(*s, "%[^=]=%s", name, value); rc 1553 tools/crm_resource.c if (rc == 2) { rc 1633 tools/crm_resource.c rc = ENXIO; rc 1647 tools/crm_resource.c rc = pcmk_rc_error; rc 1652 tools/crm_resource.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 1653 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1654 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1655 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1656 tools/crm_resource.c "Could not connect to the CIB: %s", pcmk_rc_str(rc)); rc 1663 tools/crm_resource.c rc = populate_working_set(&cib_xml_copy); rc 1664 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1674 tools/crm_resource.c rc = ENXIO; rc 1675 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1683 tools/crm_resource.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 1684 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1685 tools/crm_resource.c CMD_ERR("Error connecting to the controller: %s", pcmk_rc_str(rc)); rc 1690 tools/crm_resource.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_main); rc 1691 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1692 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1693 tools/crm_resource.c "Error connecting to the controller: %s", pcmk_rc_str(rc)); rc 1700 tools/crm_resource.c rc = pcmk_rc_ok; rc 1705 tools/crm_resource.c rc = list_raw(); rc 1711 tools/crm_resource.c rc = list_providers(options.agent_spec, &exit_code); rc 1715 tools/crm_resource.c rc = list_agents(options.agent_spec, &exit_code); rc 1719 tools/crm_resource.c rc = show_metadata(options.agent_spec, &exit_code); rc 1728 tools/crm_resource.c rc = cli_resource_restart(rsc, options.host_uname, rc 1736 tools/crm_resource.c rc = wait_till_stable(options.timeout_ms, cib_conn); rc 1757 tools/crm_resource.c rc = pcmk_rc_ok; rc 1768 tools/crm_resource.c rc = cli_resource_fail(controld_api, options.host_uname, rc 1770 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1776 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rc 1782 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rc 1789 tools/crm_resource.c rc = pcmk_rc_ok; rc 1793 tools/crm_resource.c rc = cli_resource_print(rsc, data_set, TRUE); rc 1797 tools/crm_resource.c rc = cli_resource_print(rsc, data_set, FALSE); rc 1807 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1812 tools/crm_resource.c rc = pcmk_rc_ok; rc 1817 tools/crm_resource.c rc = clear_constraints(&cib_xml_copy); rc 1822 tools/crm_resource.c rc = ban_or_move(rsc, options.move_lifetime, &exit_code); rc 1824 tools/crm_resource.c rc = cli_resource_move(rsc, options.rsc_id, options.host_uname, rc 1834 tools/crm_resource.c rc = ban_or_move(rsc, options.move_lifetime, &exit_code); rc 1840 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1843 tools/crm_resource.c rc = cli_resource_ban(options.rsc_id, dest->details->uname, rc 1851 tools/crm_resource.c rc = cli_resource_print_property(rsc, options.prop_name, data_set); rc 1855 tools/crm_resource.c rc = set_property(); rc 1859 tools/crm_resource.c rc = cli_resource_print_attribute(rsc, options.prop_name, rc 1867 tools/crm_resource.c rc = EINVAL; rc 1872 tools/crm_resource.c rc = cli_resource_update_attribute(rsc, options.rsc_id, rc 1885 tools/crm_resource.c rc = cli_resource_delete_attribute(rsc, options.rsc_id, rc 1896 tools/crm_resource.c rc = cli_cleanup_all(controld_api, options.host_uname, rc 1899 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1909 tools/crm_resource.c rc = refresh(); rc 1916 tools/crm_resource.c rc = delete(); rc 1926 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1927 tools/crm_resource.c if (rc == pcmk_rc_no_quorum) { rc 1933 tools/crm_resource.c error->message, pcmk_rc_str(rc)); rc 1935 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, "%s", msg); rc 1938 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1939 tools/crm_resource.c "Error performing operation: %s", pcmk_rc_str(rc)); rc 1943 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 66 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 72 tools/crm_resource_ban.c for(; n && rc == pcmk_rc_ok; n = n->next) { rc 75 tools/crm_resource_ban.c rc = cli_resource_ban(rsc_id, target->details->uname, move_lifetime, rc 78 tools/crm_resource_ban.c return rc; rc 136 tools/crm_resource_ban.c rc = cib_conn->cmds->update(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 137 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 141 tools/crm_resource_ban.c return rc; rc 150 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 201 tools/crm_resource_ban.c rc = cib_conn->cmds->update(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 202 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 206 tools/crm_resource_ban.c return rc; rc 233 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 239 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, xpath_string, NULL, cib_xpath | cib_options); rc 240 tools/crm_resource_ban.c if (rc == -ENXIO) { rc 241 tools/crm_resource_ban.c rc = pcmk_rc_ok; rc 243 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 247 tools/crm_resource_ban.c return rc; rc 255 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 273 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 274 tools/crm_resource_ban.c if (rc == -ENXIO) { rc 275 tools/crm_resource_ban.c rc = pcmk_rc_ok; rc 277 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 281 tools/crm_resource_ban.c return rc; rc 289 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 296 tools/crm_resource_ban.c rc = resource_clear_node_in_expr(rsc_id, host, cib_conn, cib_options); rc 302 tools/crm_resource_ban.c if (rc == pcmk_rc_ok) { rc 303 tools/crm_resource_ban.c rc = resource_clear_node_in_location(rsc_id, host, cib_conn, rc 317 tools/crm_resource_ban.c rc = cli_resource_clear(rsc_id, target->details->uname, NULL, rc 320 tools/crm_resource_ban.c if (rc != pcmk_rc_ok) { rc 326 tools/crm_resource_ban.c return rc; rc 405 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 441 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, XML_CIB_TAG_CONSTRAINTS, rc 443 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 445 tools/crm_resource_ban.c if (rc != pcmk_rc_ok) { rc 460 tools/crm_resource_ban.c return rc; rc 285 tools/crm_resource_print.c int rc = ENXIO; rc 315 tools/crm_resource_print.c rc = pcmk_rc_ok; rc 322 tools/crm_resource_print.c return rc; rc 83 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 122 tools/crm_resource_runtime.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 124 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 126 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 134 tools/crm_resource_runtime.c rc = EINVAL; rc 154 tools/crm_resource_runtime.c return rc; rc 163 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 178 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, lookup_id, attr_set_type, attr_set, attr_id, attr_name, &local_attr_id); rc 181 tools/crm_resource_runtime.c if((0 == depth) || (pcmk_rc_ok == rc)) { rc 197 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 208 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 210 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, rsc_id, attr_set_type, attr_set, attr_id, attr_name, &local_attr_id); rc 213 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 225 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, lookup_id, attr_set_type, attr_set, attr_id, attr_name, &local_attr_id); rc 227 tools/crm_resource_runtime.c if(rc == pcmk_rc_ok) { rc 254 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 272 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, uber_parent(rsc)->id, rc 275 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok && BE_QUIET == FALSE) { rc 282 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 309 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, lookup_id, attr_set_type, attr_set, attr_id, attr_name, rc 312 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 316 tools/crm_resource_runtime.c } else if (rc != ENXIO) { rc 320 tools/crm_resource_runtime.c return rc; rc 349 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, XML_CIB_TAG_RESOURCES, xml_top, cib_options); rc 350 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 352 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok && BE_QUIET == FALSE) { rc 398 tools/crm_resource_runtime.c return rc; rc 408 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 433 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, lookup_id, attr_set_type, attr_set, attr_id, attr_name, rc 436 tools/crm_resource_runtime.c if (rc == ENXIO) { rc 438 tools/crm_resource_runtime.c rc = pcmk_rc_ok; rc 441 tools/crm_resource_runtime.c } else if (rc != pcmk_rc_ok) { rc 444 tools/crm_resource_runtime.c return rc; rc 455 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, XML_CIB_TAG_RESOURCES, xml_obj, cib_options); rc 456 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 458 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok && BE_QUIET == FALSE) { rc 469 tools/crm_resource_runtime.c return rc; rc 574 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 581 tools/crm_resource_runtime.c rc = send_lrm_rsc_op(controld_api, false, host_uname, rsc_id, data_set); rc 582 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 583 tools/crm_resource_runtime.c return rc; rc 592 tools/crm_resource_runtime.c return rc; rc 601 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 670 tools/crm_resource_runtime.c rc = clear_rsc_history(controld_api, node_name, failed_id, data_set); rc 671 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 672 tools/crm_resource_runtime.c return rc; rc 676 tools/crm_resource_runtime.c return rc; rc 684 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 691 tools/crm_resource_runtime.c rc = pcmk__node_attr_request_clear(NULL, node->details->uname, rsc_name, rc 695 tools/crm_resource_runtime.c return rc; rc 705 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 717 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, host_uname, child, operation, rc 720 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 721 tools/crm_resource_runtime.c return rc; rc 752 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, node->details->uname, rc 756 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 758 tools/crm_resource_runtime.c return rc; rc 786 tools/crm_resource_runtime.c rc = clear_rsc_fail_attrs(rsc, operation, interval_spec, node); rc 787 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 789 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_rc_str(rc)); rc 790 tools/crm_resource_runtime.c return rc; rc 794 tools/crm_resource_runtime.c rc = clear_rsc_failures(controld_api, host_uname, rsc->id, operation, rc 797 tools/crm_resource_runtime.c rc = clear_rsc_history(controld_api, host_uname, rsc->id, data_set); rc 799 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 801 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_strerror(rc)); rc 805 tools/crm_resource_runtime.c return rc; rc 814 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 821 tools/crm_resource_runtime.c return rc; rc 836 tools/crm_resource_runtime.c rc = pcmk__node_attr_request_clear(NULL, node_name, NULL, operation, rc 838 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 840 tools/crm_resource_runtime.c display_name, pcmk_rc_str(rc)); rc 841 tools/crm_resource_runtime.c return rc; rc 845 tools/crm_resource_runtime.c rc = clear_rsc_failures(controld_api, node_name, NULL, rc 847 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 849 tools/crm_resource_runtime.c node_name, pcmk_strerror(rc)); rc 850 tools/crm_resource_runtime.c return rc; rc 856 tools/crm_resource_runtime.c rc = clear_rsc_failures(controld_api, node->details->uname, NULL, rc 858 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 860 tools/crm_resource_runtime.c pcmk_strerror(rc)); rc 861 tools/crm_resource_runtime.c return rc; rc 867 tools/crm_resource_runtime.c return rc; rc 1109 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1111 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 1112 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 1114 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1115 tools/crm_resource_runtime.c fprintf(stderr, "Could not obtain the current CIB: %s (%d)\n", pcmk_strerror(rc), rc); rc 1116 tools/crm_resource_runtime.c return rc; rc 1118 tools/crm_resource_runtime.c rc = update_working_set_xml(data_set, &cib_xml_copy); rc 1119 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1122 tools/crm_resource_runtime.c return rc; rc 1125 tools/crm_resource_runtime.c return rc; rc 1135 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1138 tools/crm_resource_runtime.c rc = update_working_set_from_cib(data_set, cib); rc 1139 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1140 tools/crm_resource_runtime.c return rc; rc 1150 tools/crm_resource_runtime.c rc = ENXIO; rc 1154 tools/crm_resource_runtime.c rc = write_xml_file(data_set->input, shadow_file, FALSE); rc 1156 tools/crm_resource_runtime.c if (rc < 0) { rc 1157 tools/crm_resource_runtime.c fprintf(stderr, "Could not populate shadow cib: %s (%d)\n", pcmk_strerror(rc), rc); rc 1161 tools/crm_resource_runtime.c rc = shadow_cib->cmds->signon(shadow_cib, crm_system_name, cib_command); rc 1162 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 1164 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1165 tools/crm_resource_runtime.c fprintf(stderr, "Could not connect to shadow cib: %s (%d)\n", pcmk_strerror(rc), rc); rc 1171 tools/crm_resource_runtime.c rc = update_dataset(shadow_cib, data_set, FALSE); rc 1187 tools/crm_resource_runtime.c return rc; rc 1267 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1321 tools/crm_resource_runtime.c rc = ENOMEM; rc 1325 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); rc 1326 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1327 tools/crm_resource_runtime.c fprintf(stdout, "Could not get new resource list: %s (%d)\n", pcmk_strerror(rc), rc); rc 1339 tools/crm_resource_runtime.c rc = cli_resource_ban(rsc_id, host, move_lifetime, NULL, cib, rc 1352 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, NULL, rc 1357 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1358 tools/crm_resource_runtime.c fprintf(stderr, "Could not set target-role for %s: %s (%d)\n", rsc_id, pcmk_strerror(rc), rc); rc 1368 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, TRUE); rc 1369 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1395 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); rc 1396 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1416 tools/crm_resource_runtime.c rc = ETIME; rc 1423 tools/crm_resource_runtime.c rc = cli_resource_clear(rsc_id, host, NULL, cib, cib_options, TRUE, force); rc 1426 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, rc 1433 tools/crm_resource_runtime.c rc = cli_resource_delete_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, NULL, rc 1438 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1439 tools/crm_resource_runtime.c fprintf(stderr, "Could not unset target-role for %s: %s (%d)\n", rsc_id, pcmk_strerror(rc), rc); rc 1467 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); rc 1468 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1491 tools/crm_resource_runtime.c rc = ETIME; rc 1497 tools/crm_resource_runtime.c rc = pcmk_rc_ok; rc 1529 tools/crm_resource_runtime.c return rc; rc 1616 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1639 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { /* this avoids sleep on first loop iteration */ rc 1645 tools/crm_resource_runtime.c rc = update_working_set_from_cib(data_set, cib); rc 1646 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1648 tools/crm_resource_runtime.c return rc; rc 1674 tools/crm_resource_runtime.c return rc; rc 1762 tools/crm_resource_runtime.c exit_code = op->rc; rc 1767 tools/crm_resource_runtime.c services_ocf_exitcode_str(op->rc), op->rc); rc 1807 tools/crm_resource_runtime.c exit_code = op->rc == 0 ? CRM_EX_ERROR : op->rc; rc 1845 tools/crm_resource_runtime.c int rc = cli_resource_search(rsc, requested_name, data_set); rc 1846 tools/crm_resource_runtime.c if(rc > 0 && force == FALSE) { rc 1895 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1969 tools/crm_resource_runtime.c rc = cli_resource_prefer(rsc_id, dest->details->uname, move_lifetime, rc 1998 tools/crm_resource_runtime.c return rc; rc 85 tools/crm_rule.c int rc = pcmk_rc_ok; rc 105 tools/crm_rule.c rc = ENXIO; rc 109 tools/crm_rule.c rc = ENXIO; rc 123 tools/crm_rule.c rc = EOPNOTSUPP; rc 146 tools/crm_rule.c rc = ENXIO; rc 159 tools/crm_rule.c rc = pe_eval_date_expression(match, effective_date, NULL); rc 161 tools/crm_rule.c if (rc == pcmk_rc_within_range) { rc 163 tools/crm_rule.c rc = pcmk_rc_ok; rc 164 tools/crm_rule.c } else if (rc == pcmk_rc_ok) { rc 166 tools/crm_rule.c } else if (rc == pcmk_rc_after_range) { rc 168 tools/crm_rule.c } else if (rc == pcmk_rc_before_range) { rc 170 tools/crm_rule.c } else if (rc == pcmk_rc_op_unsatisfied) { rc 179 tools/crm_rule.c return rc; rc 210 tools/crm_rule.c int rc = pcmk_ok; rc 300 tools/crm_rule.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 301 tools/crm_rule.c if (rc != pcmk_ok) { rc 302 tools/crm_rule.c CMD_ERR("Could not connect to CIB: %s", pcmk_strerror(rc)); rc 303 tools/crm_rule.c exit_code = crm_errno2exit(rc); rc 310 tools/crm_rule.c rc = cib_conn->cmds->query(cib_conn, NULL, &input, cib_scope_local | cib_sync_call); rc 311 tools/crm_rule.c if (rc != pcmk_ok) { rc 312 tools/crm_rule.c exit_code = crm_errno2exit(rc); rc 337 tools/crm_rule.c rc = crm_rule_check(data_set, options.rule, rule_date); rc 339 tools/crm_rule.c if (rc > 0) { rc 340 tools/crm_rule.c CMD_ERR("Error checking rule: %s", pcmk_rc_str(rc)); rc 343 tools/crm_rule.c exit_code = pcmk_rc2exitc(rc); rc 247 tools/crm_shadow.c int rc = pcmk_ok; rc 417 tools/crm_shadow.c rc = real_cib->cmds->signon(real_cib, crm_system_name, cib_command); rc 418 tools/crm_shadow.c if (rc != pcmk_ok) { rc 420 tools/crm_shadow.c pcmk_strerror(rc)); rc 421 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 427 tools/crm_shadow.c rc = stat(shadow_file, &buf); rc 429 tools/crm_shadow.c if (rc == 0 && force_flag == FALSE) { rc 436 tools/crm_shadow.c } else if (rc < 0) { rc 447 tools/crm_shadow.c rc = real_cib->cmds->query(real_cib, NULL, &output, command_options); rc 448 tools/crm_shadow.c if (rc != pcmk_ok) { rc 450 tools/crm_shadow.c pcmk_strerror(rc)); rc 451 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 464 tools/crm_shadow.c rc = write_xml_file(output, shadow_file, FALSE); rc 467 tools/crm_shadow.c if (rc < 0) { rc 470 tools/crm_shadow.c shadow, pcmk_strerror(rc)); rc 471 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 512 tools/crm_shadow.c rc = real_cib->cmds->query(real_cib, NULL, &old_config, command_options); rc 514 tools/crm_shadow.c if (rc != pcmk_ok) { rc 515 tools/crm_shadow.c fprintf(stderr, "Could not query the CIB: %s\n", pcmk_strerror(rc)); rc 516 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 544 tools/crm_shadow.c rc = real_cib->cmds->replace(real_cib, section, section_xml, rc 546 tools/crm_shadow.c if (rc != pcmk_ok) { rc 548 tools/crm_shadow.c shadow, pcmk_strerror(rc)); rc 549 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 704 tools/crm_simulate.c int rc = pcmk_rc_ok; rc 712 tools/crm_simulate.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 713 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 715 tools/crm_simulate.c if (rc == pcmk_rc_ok) { rc 716 tools/crm_simulate.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_object, cib_scope_local | cib_sync_call); rc 723 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 724 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 725 tools/crm_simulate.c g_set_error(error, PCMK__RC_ERROR, rc, rc 726 tools/crm_simulate.c "Live CIB query failed: %s (%d)", pcmk_rc_str(rc), rc); rc 727 tools/crm_simulate.c return rc; rc 765 tools/crm_simulate.c rc = write_xml_file(cib_object, output, FALSE); rc 769 tools/crm_simulate.c if (rc < 0) { rc 770 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 772 tools/crm_simulate.c "Could not create '%s': %s", output, pcmk_rc_str(rc)); rc 773 tools/crm_simulate.c return rc; rc 905 tools/crm_simulate.c int rc = pcmk_rc_ok; rc 951 tools/crm_simulate.c rc = ENOMEM; rc 952 tools/crm_simulate.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not allocate working set"); rc 959 tools/crm_simulate.c rc = pcmk_rc_ok; rc 963 tools/crm_simulate.c rc = setup_input(options.xml_file, options.store ? options.xml_file : options.output_file, &error); rc 964 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 969 tools/crm_simulate.c rc = global_cib->cmds->signon(global_cib, crm_system_name, cib_command); rc 970 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 971 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 972 tools/crm_simulate.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 973 tools/crm_simulate.c "Could not connect to the CIB: %s", pcmk_rc_str(rc)); rc 977 tools/crm_simulate.c rc = global_cib->cmds->query(global_cib, NULL, &input, cib_sync_call | cib_scope_local); rc 978 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 979 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 980 tools/crm_simulate.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 981 tools/crm_simulate.c "Could not get local CIB: %s", pcmk_rc_str(rc)); rc 1020 tools/crm_simulate.c rc = global_cib->cmds->query(global_cib, NULL, &input, cib_sync_call); rc 1021 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 1022 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 1023 tools/crm_simulate.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1024 tools/crm_simulate.c "Could not get modified CIB: %s", pcmk_rc_str(rc)); rc 1040 tools/crm_simulate.c rc = write_xml_file(input, options.input_file, FALSE); rc 1041 tools/crm_simulate.c if (rc < 0) { rc 1042 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 1043 tools/crm_simulate.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1044 tools/crm_simulate.c "Could not create '%s': %s", options.input_file, pcmk_rc_str(rc)); rc 1089 tools/crm_simulate.c rc = pcmk_rc_ok; rc 1093 tools/crm_simulate.c rc = pcmk_rc_error; rc 1149 tools/crm_simulate.c crm_exit(pcmk_rc2exitc(rc)); rc 141 tools/crm_ticket.c int rc = pcmk_ok; rc 158 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 161 tools/crm_ticket.c if (rc != pcmk_ok) { rc 177 tools/crm_ticket.c return rc; rc 184 tools/crm_ticket.c int rc = pcmk_ok; rc 203 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 206 tools/crm_ticket.c if (rc != pcmk_ok) { rc 215 tools/crm_ticket.c return rc; rc 221 tools/crm_ticket.c int rc = pcmk_ok; rc 224 tools/crm_ticket.c rc = find_ticket_state(the_cib, ticket_id, &state_xml); rc 227 tools/crm_ticket.c return rc; rc 246 tools/crm_ticket.c int rc = pcmk_ok; rc 250 tools/crm_ticket.c rc = find_ticket_constraints(the_cib, ticket_id, &cons_xml); rc 253 tools/crm_ticket.c return rc; rc 289 tools/crm_ticket.c gboolean rc = FALSE; rc 329 tools/crm_ticket.c return rc; rc 370 tools/crm_ticket.c int rc = pcmk_ok; rc 383 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 384 tools/crm_ticket.c if (rc == pcmk_ok) { rc 389 tools/crm_ticket.c } else if (rc != -ENXIO) { rc 390 tools/crm_ticket.c return rc; rc 428 tools/crm_ticket.c rc = cib->cmds->replace(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); rc 432 tools/crm_ticket.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); rc 436 tools/crm_ticket.c return rc; rc 444 tools/crm_ticket.c int rc = pcmk_ok; rc 446 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 448 tools/crm_ticket.c if (rc == -ENXIO) { rc 451 tools/crm_ticket.c } else if (rc != pcmk_ok) { rc 452 tools/crm_ticket.c return rc; rc 457 tools/crm_ticket.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); rc 459 tools/crm_ticket.c if (rc == pcmk_ok) { rc 464 tools/crm_ticket.c return rc; rc 716 tools/crm_ticket.c int rc = pcmk_ok; rc 861 tools/crm_ticket.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 862 tools/crm_ticket.c if (rc != pcmk_ok) { rc 863 tools/crm_ticket.c CMD_ERR("Could not connect to CIB: %s", pcmk_strerror(rc)); rc 864 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 872 tools/crm_ticket.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 873 tools/crm_ticket.c if (rc != pcmk_ok) { rc 874 tools/crm_ticket.c CMD_ERR("Could not get local CIB: %s", pcmk_strerror(rc)); rc 875 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 914 tools/crm_ticket.c rc = print_ticket(ticket, raw, details); rc 917 tools/crm_ticket.c rc = print_ticket_list(data_set, raw, details); rc 919 tools/crm_ticket.c if (rc != pcmk_ok) { rc 920 tools/crm_ticket.c CMD_ERR("Could not print ticket: %s", pcmk_strerror(rc)); rc 922 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 925 tools/crm_ticket.c rc = dump_ticket_xml(cib_conn, ticket_id); rc 926 tools/crm_ticket.c if (rc != pcmk_ok) { rc 927 tools/crm_ticket.c CMD_ERR("Could not query ticket XML: %s", pcmk_strerror(rc)); rc 929 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 932 tools/crm_ticket.c rc = dump_constraints(cib_conn, ticket_id); rc 933 tools/crm_ticket.c if (rc != pcmk_ok) { rc 934 tools/crm_ticket.c CMD_ERR("Could not show ticket constraints: %s", pcmk_strerror(rc)); rc 936 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 947 tools/crm_ticket.c rc = get_ticket_state_attr(ticket_id, get_attr_name, &value, data_set); rc 948 tools/crm_ticket.c if (rc == pcmk_ok) { rc 950 tools/crm_ticket.c } else if (rc == -ENXIO && attr_default) { rc 952 tools/crm_ticket.c rc = pcmk_ok; rc 954 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 980 tools/crm_ticket.c rc = delete_ticket_state(ticket_id, cib_conn); rc 981 tools/crm_ticket.c if (rc != pcmk_ok) { rc 982 tools/crm_ticket.c CMD_ERR("Could not clean up ticket: %s", pcmk_strerror(rc)); rc 984 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 1013 tools/crm_ticket.c rc = modify_ticket_state(ticket_id, attr_delete, attr_set, cib_conn, data_set); rc 1014 tools/crm_ticket.c if (rc != pcmk_ok) { rc 1015 tools/crm_ticket.c CMD_ERR("Could not modify ticket: %s", pcmk_strerror(rc)); rc 1017 tools/crm_ticket.c exit_code = crm_errno2exit(rc); rc 1067 tools/crm_ticket.c if (rc == -pcmk_err_no_quorum) { rc 116 tools/crm_verify.c int rc = pcmk_ok; rc 194 tools/crm_verify.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 198 tools/crm_verify.c if (rc == pcmk_ok) { rc 202 tools/crm_verify.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_object, options); rc 205 tools/crm_verify.c if (rc != pcmk_ok) { rc 206 tools/crm_verify.c fprintf(stderr, "Live CIB query failed: %s\n", pcmk_strerror(rc)); rc 211 tools/crm_verify.c rc = -ENOMSG; rc 219 tools/crm_verify.c rc = -ENODATA; rc 227 tools/crm_verify.c rc = -ENODATA; rc 234 tools/crm_verify.c rc = -ENODATA; rc 241 tools/crm_verify.c rc = -ENODATA; rc 249 tools/crm_verify.c rc = -EBADMSG; rc 278 tools/crm_verify.c rc = -errno; rc 301 tools/crm_verify.c rc = -pcmk_err_schema_validation; rc 308 tools/crm_verify.c rc = -pcmk_err_schema_validation; rc 317 tools/crm_verify.c crm_exit(crm_errno2exit(rc)); rc 344 tools/crmadmin.c int rc; rc 349 tools/crmadmin.c rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 350 tools/crmadmin.c if (rc != pcmk_ok) { rc 351 tools/crmadmin.c return pcmk_legacy2rc(rc); rc 354 tools/crmadmin.c rc = the_cib->cmds->query(the_cib, NULL, &output, rc 356 tools/crmadmin.c if (rc == pcmk_ok) { rc 361 tools/crmadmin.c return pcmk_legacy2rc(rc); rc 397 tools/crmadmin.c int rc; rc 465 tools/crmadmin.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 468 tools/crmadmin.c pcmk_rc_str(rc)); rc 469 tools/crmadmin.c exit_code = pcmk_rc2exitc(rc); rc 473 tools/crmadmin.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_main); rc 474 tools/crmadmin.c if (rc != pcmk_rc_ok) { rc 476 tools/crmadmin.c pcmk_rc_str(rc)); rc 477 tools/crmadmin.c exit_code = pcmk_rc2exitc(rc); rc 484 tools/crmadmin.c rc = pcmk_new_ipc_api(&pacemakerd_api, pcmk_ipc_pacemakerd); rc 487 tools/crmadmin.c pcmk_rc_str(rc)); rc 488 tools/crmadmin.c exit_code = pcmk_rc2exitc(rc); rc 492 tools/crmadmin.c rc = pcmk_connect_ipc(pacemakerd_api, pcmk_ipc_dispatch_main); rc 493 tools/crmadmin.c if (rc != pcmk_rc_ok) { rc 495 tools/crmadmin.c pcmk_rc_str(rc)); rc 496 tools/crmadmin.c exit_code = pcmk_rc2exitc(rc); rc 540 tools/crmadmin.c int rc = pcmk_rc_ok; rc 544 tools/crmadmin.c rc = pcmk_controld_api_shutdown(api, dest_node); rc 549 tools/crmadmin.c rc = pcmk_controld_api_ping(api, dest_node); rc 554 tools/crmadmin.c rc = pcmk_controld_api_start_election(api); rc 558 tools/crmadmin.c rc = list_nodes(); rc 562 tools/crmadmin.c rc = pcmk_pacemakerd_api_ping(api, ipc_name); rc 569 tools/crmadmin.c if (rc != pcmk_rc_ok) { rc 570 tools/crmadmin.c fprintf(stderr, "error: Command failed: %s", pcmk_rc_str(rc)); rc 571 tools/crmadmin.c exit_code = pcmk_rc2exitc(rc); rc 98 tools/ipmiservicelogd.c int rc; rc 102 tools/ipmiservicelogd.c rc = pipe2(pipefd, 0); rc 104 tools/ipmiservicelogd.c if (rc == -1) { rc 121 tools/ipmiservicelogd.c rc = close(pipefd[1]); rc 122 tools/ipmiservicelogd.c if (rc == -1) { rc 127 tools/ipmiservicelogd.c rc = dup2(pipefd[0], 0); rc 128 tools/ipmiservicelogd.c if (rc == -1) { rc 133 tools/ipmiservicelogd.c rc = close(pipefd[0]); rc 134 tools/ipmiservicelogd.c if (rc == -1) { rc 178 tools/ipmiservicelogd.c rc = close(pipefd[0]); rc 179 tools/ipmiservicelogd.c if (rc == -1) { rc 184 tools/ipmiservicelogd.c rc = dup2(pipefd[1], 1); rc 185 tools/ipmiservicelogd.c if (rc == -1) { rc 190 tools/ipmiservicelogd.c rc = close(pipefd[1]); rc 191 tools/ipmiservicelogd.c if (rc == -1) { rc 199 tools/ipmiservicelogd.c rc = execvp(args[0], (char *const *) args); rc 201 tools/ipmiservicelogd.c if (rc == -1) { rc 269 tools/ipmiservicelogd.c int rc; rc 276 tools/ipmiservicelogd.c rc = servicelog_open(&slog, 0); /* flags is one of SL_FLAG_xxx */ rc 279 tools/ipmiservicelogd.c crm_err("Error: servicelog_open failed, rc = %d", rc); rc 326 tools/ipmiservicelogd.c rc = servicelog_event_log(slog, &sl_event, &new_id); rc 328 tools/ipmiservicelogd.c if (rc != 0) { rc 329 tools/ipmiservicelogd.c crm_err("Error: servicelog_event_log, rc = %d (\"%s\")", rc, servicelog_error(slog)); rc 101 tools/notifyServicelogEvent.c int rc = 0; rc 143 tools/notifyServicelogEvent.c rc = 1; rc 150 tools/notifyServicelogEvent.c rc = 1; rc 154 tools/notifyServicelogEvent.c rc = servicelog_open(&slog, 0); /* flags is one of SL_FLAG_xxx */ rc 157 tools/notifyServicelogEvent.c crm_err("Error: servicelog_open failed, rc = %d", rc); rc 159 tools/notifyServicelogEvent.c rc = 1; rc 164 tools/notifyServicelogEvent.c rc = servicelog_event_get(slog, event_id, &event); rc 167 tools/notifyServicelogEvent.c if (rc == 0) { rc 191 tools/notifyServicelogEvent.c rc = 1; rc 194 tools/notifyServicelogEvent.c crm_err("Error: servicelog_event_get failed, rc = %d", rc); rc 208 tools/notifyServicelogEvent.c return rc; rc 275 tools/stonith_admin.c int rc = 0; rc 280 tools/stonith_admin.c rc = pcmk_scan_nvpair(optarg, &name, &value); rc 282 tools/stonith_admin.c if (rc != 2) { rc 283 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 284 tools/stonith_admin.c g_set_error(error, PCMK__RC_ERROR, rc, "Invalid option: -o %s: %s", optarg, pcmk_rc_str(rc)); rc 336 tools/stonith_admin.c int rc = 0; rc 373 tools/stonith_admin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 374 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 376 tools/stonith_admin.c args->output_ty, pcmk_rc_str(rc)); rc 505 tools/stonith_admin.c rc = -ENOMEM; rc 507 tools/stonith_admin.c rc = st->cmds->connect(st, name, NULL); rc 509 tools/stonith_admin.c if (rc < 0) { rc 510 tools/stonith_admin.c out->err(out, "Could not connect to fencer: %s", pcmk_strerror(rc)); rc 517 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); rc 518 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 519 tools/stonith_admin.c out->err(out, "Failed to list installed devices: %s", pcmk_strerror(rc)); rc 525 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); rc 526 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 527 tools/stonith_admin.c out->err(out, "Failed to list registered devices: %s", pcmk_strerror(rc)); rc 533 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); rc 534 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 535 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); rc 537 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 541 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); rc 542 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 543 tools/stonith_admin.c out->err(out, "Couldn't list targets: %s", pcmk_strerror(rc)); rc 549 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, rc 551 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 555 tools/stonith_admin.c rc = st->cmds->remove_device(st, st_opts, device); rc 556 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 560 tools/stonith_admin.c rc = pcmk__fence_unregister_level(st, target, options.fence_level); rc 564 tools/stonith_admin.c rc = pcmk__fence_register_level(st, target, options.fence_level, options.devices); rc 568 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); rc 569 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 570 tools/stonith_admin.c out->err(out, "Can't get fence agent meta-data: %s", pcmk_strerror(rc)); rc 576 tools/stonith_admin.c rc = st->cmds->confirm(st, st_opts, target); rc 577 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 581 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "reboot", name, options.timeout*1000, rc 586 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "off", name, options.timeout*1000, rc 591 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "on", name, options.timeout*1000, rc 596 tools/stonith_admin.c rc = pcmk__fence_last(out, target, options.as_nodeid); rc 600 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, rc 606 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, rc 611 tools/stonith_admin.c crm_info("Command returned: %s (%d)", pcmk_rc_str(rc), rc); rc 612 tools/stonith_admin.c exit_code = pcmk_rc2exitc(rc);