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 535 daemons/attrd/attrd_commands.c int rc = pcmk__ipc_send_xml(client, id, reply, flags); rc 537 daemons/attrd/attrd_commands.c if (rc != pcmk_rc_ok) { rc 539 daemons/attrd/attrd_commands.c origin, pcmk_rc_str(rc), rc); rc 1070 daemons/attrd/attrd_commands.c attrd_cib_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 1086 daemons/attrd/attrd_commands.c if (rc == pcmk_ok && call_id < 0) { rc 1087 daemons/attrd/attrd_commands.c rc = call_id; rc 1090 daemons/attrd/attrd_commands.c switch (rc) { rc 1111 daemons/attrd/attrd_commands.c call_id, a->id, pcmk_strerror(rc), rc); rc 1118 daemons/attrd/attrd_commands.c if (rc != pcmk_ok) { rc 1124 daemons/attrd/attrd_commands.c if (rc == pcmk_ok) { rc 1238 daemons/attrd/attrd_commands.c int rc = 0; rc 1245 daemons/attrd/attrd_commands.c rc = attrd_send_attribute_alert(at->nodename, at->nodeid, rc 1248 daemons/attrd/attrd_commands.c a->id, at->nodename, at->current, at->nodeid, rc); rc 54 daemons/attrd/attrd_elections.c enum election_result rc = 0; rc 60 daemons/attrd/attrd_elections.c rc = election_count_vote(writer, xml, !attrd_shutting_down()); rc 62 daemons/attrd/attrd_elections.c switch(rc) { rc 312 daemons/attrd/attrd_utils.c int rc; rc 326 daemons/attrd/attrd_utils.c rc = regcomp(regex, pattern, REG_EXTENDED|REG_NOSUB); rc 329 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 413 daemons/based/based_callbacks.c int rc = pcmk__ipc_send_xml(client_obj, rid, notify_src, rc 417 daemons/based/based_callbacks.c if (rc != pcmk_rc_ok) { rc 420 daemons/based/based_callbacks.c pcmk__client_name(client_obj), pcmk_rc_str(rc), rc 421 daemons/based/based_callbacks.c rc); rc 939 daemons/based/based_callbacks.c int rc = pcmk_ok; rc 973 daemons/based/based_callbacks.c rc = cib_get_operation_id(op, &call_type); rc 974 daemons/based/based_callbacks.c if (rc != pcmk_ok) { rc 976 daemons/based/based_callbacks.c crm_err("Pre-processing of command failed: %s", pcmk_strerror(rc)); rc 1023 daemons/based/based_callbacks.c rc = cib_status; rc 1033 daemons/based/based_callbacks.c crm_xml_add_int(op_reply, F_CIB_RC, rc); rc 1046 daemons/based/based_callbacks.c rc = cib_process_command(request, &op_reply, &result_diff, privileged); rc 1052 daemons/based/based_callbacks.c switch (rc) { rc 1065 daemons/based/based_callbacks.c } else if (rc != pcmk_ok) { rc 1071 daemons/based/based_callbacks.c op, section ? section : "'all'", pcmk_strerror(rc), rc, rc 1101 daemons/based/based_callbacks.c rc == pcmk_ok && result_diff != NULL && !(call_options & cib_inhibit_bcast)) { rc 1133 daemons/based/based_callbacks.c } else if (rc != pcmk_ok) { rc 1134 daemons/based/based_callbacks.c crm_trace("Request not broadcast: call failed: %s", pcmk_strerror(rc)); rc 1196 daemons/based/based_callbacks.c int rc = pcmk_ok; rc 1224 daemons/based/based_callbacks.c rc = cib_get_operation_id(op, &call_type); rc 1226 daemons/based/based_callbacks.c if (rc == pcmk_ok && privileged == FALSE) { rc 1227 daemons/based/based_callbacks.c rc = cib_op_can_run(call_type, call_options, privileged, global_update); rc 1231 daemons/based/based_callbacks.c if (rc == pcmk_ok) { rc 1232 daemons/based/based_callbacks.c rc = rc2; rc 1235 daemons/based/based_callbacks.c if (rc != pcmk_ok) { rc 1236 daemons/based/based_callbacks.c crm_trace("Call setup failed: %s", pcmk_strerror(rc)); rc 1240 daemons/based/based_callbacks.c rc = cib_perform_op(op, call_options, cib_op_func(call_type), TRUE, rc 1259 daemons/based/based_callbacks.c if (rc == pcmk_ok) { rc 1284 daemons/based/based_callbacks.c rc = cib_perform_op(op, call_options, cib_op_func(call_type), FALSE, rc 1310 daemons/based/based_callbacks.c if (rc == pcmk_ok && !pcmk_is_set(call_options, cib_dryrun)) { rc 1317 daemons/based/based_callbacks.c rc = activateCibXml(result_cib, config_changed, op); rc 1319 daemons/based/based_callbacks.c crm_element_value(current_cib, XML_ATTR_NUMUPDATES), rc); rc 1322 daemons/based/based_callbacks.c if (rc == pcmk_ok && cib_internal_config_changed(*cib_diff)) { rc 1362 daemons/based/based_callbacks.c } else if (rc == -pcmk_err_schema_validation) { rc 1373 daemons/based/based_callbacks.c crm_trace("Not activating %d %d %s", rc, rc 1386 daemons/based/based_callbacks.c cib_diff_notify(call_options, client, call_id, op, input, rc, *cib_diff); rc 1392 daemons/based/based_callbacks.c cib_replace_notify(origin, the_cib, rc, *cib_diff, change_section); rc 1406 daemons/based/based_callbacks.c crm_xml_add_int(*reply, F_CIB_RC, rc); rc 1432 daemons/based/based_callbacks.c return rc; rc 280 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 51 daemons/based/based_notify.c int rc = pcmk_rc_ok; rc 90 daemons/based/based_notify.c rc = pcmk__ipc_send_iov(client, update->iov, rc 92 daemons/based/based_notify.c if (rc != pcmk_rc_ok) { rc 94 daemons/based/based_notify.c pcmk__client_name(client), pcmk_rc_str(rc), rc 121 daemons/based/based_notify.c int rc = pcmk__ipc_prepare_iov(0, xml, 0, &iov, &bytes); rc 123 daemons/based/based_notify.c if (rc == pcmk_rc_ok) { rc 131 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 470 daemons/based/based_remote.c int rc; rc 481 daemons/based/based_remote.c int rc = pcmk__read_handshake_data(client); rc 483 daemons/based/based_remote.c if (rc == EAGAIN) { rc 488 daemons/based/based_remote.c } else if (rc != pcmk_rc_ok) { rc 506 daemons/based/based_remote.c rc = pcmk__read_remote_message(client->remote, timeout); rc 547 daemons/based/based_remote.c if (rc == ENOTCONN) { rc 625 daemons/based/based_remote.c int rc = 0; rc 643 daemons/based/based_remote.c rc = pam_start(pam_name, user, &p_conv, &pam_h); rc 644 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 645 daemons/based/based_remote.c crm_err("Could not initialize PAM: %s (%d)", pam_strerror(pam_h, rc), rc); rc 649 daemons/based/based_remote.c rc = pam_authenticate(pam_h, 0); rc 650 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 651 daemons/based/based_remote.c crm_err("Authentication failed for %s: %s (%d)", user, pam_strerror(pam_h, rc), rc); rc 660 daemons/based/based_remote.c rc = pam_get_item(pam_h, PAM_USER, &p_user); rc 661 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 662 daemons/based/based_remote.c crm_err("Internal PAM error: %s (%d)", pam_strerror(pam_h, rc), rc); rc 674 daemons/based/based_remote.c rc = pam_acct_mgmt(pam_h, 0); rc 675 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 676 daemons/based/based_remote.c crm_err("Access denied: %s (%d)", pam_strerror(pam_h, rc), rc); rc 682 daemons/based/based_remote.c pam_end(pam_h, rc); 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 136 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 98 daemons/controld/controld_based.c int rc = pcmk_ok; rc 105 daemons/controld/controld_based.c rc = fsa_cib_conn->cmds->signon(fsa_cib_conn, CRM_SYSTEM_CRMD, cib_command_nonblocking); rc 107 daemons/controld/controld_based.c if (rc != pcmk_ok) { rc 110 daemons/controld/controld_based.c rc = fsa_cib_conn->cmds->signon(fsa_cib_conn, CRM_SYSTEM_CRMD, cib_command_nonblocking); rc 113 daemons/controld/controld_based.c if (rc != pcmk_ok) { rc 114 daemons/controld/controld_based.c crm_info("Could not connect to the CIB manager: %s", pcmk_strerror(rc)); rc 188 daemons/controld/controld_based.c cib_delete_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 193 daemons/controld/controld_based.c if (rc == 0) { rc 197 daemons/controld/controld_based.c desc, call_id, pcmk_strerror(rc), rc); rc 308 daemons/controld/controld_based.c int rc = pcmk_rc_ok; rc 321 daemons/controld/controld_based.c rc = cib_internal_op(fsa_cib_conn, CIB_OP_DELETE, NULL, xpath, NULL, rc 324 daemons/controld/controld_based.c if (rc < 0) { rc 325 daemons/controld/controld_based.c rc = pcmk_legacy2rc(rc); rc 329 daemons/controld/controld_based.c pcmk_rc_str(rc), rc); rc 332 daemons/controld/controld_based.c return rc; rc 345 daemons/controld/controld_based.c desc, rc, xpath); rc 346 daemons/controld/controld_based.c fsa_register_cib_callback(rc, FALSE, desc, cib_delete_callback); rc 689 daemons/controld/controld_control.c config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 697 daemons/controld/controld_control.c if (rc != pcmk_ok) { rc 700 daemons/controld/controld_control.c crm_err("Local CIB query resulted in an error: %s", pcmk_strerror(rc)); rc 703 daemons/controld/controld_control.c if (rc == -EACCES || rc == -pcmk_err_schema_validation) { rc 139 daemons/controld/controld_election.c enum election_result rc = 0; rc 149 daemons/controld/controld_election.c rc = election_count_vote(fsa_election, vote->msg, cur_state != S_STARTING); rc 150 daemons/controld/controld_election.c switch(rc) { rc 169 daemons/controld/controld_election.c crm_trace("Election message resulted in state %d", rc); rc 174 daemons/controld/controld_election.c feature_update_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 176 daemons/controld/controld_election.c if (rc != pcmk_ok) { rc 180 daemons/controld/controld_election.c pcmk_strerror(rc), rc); rc 192 daemons/controld/controld_election.c int rc = pcmk_ok; rc 208 daemons/controld/controld_election.c fsa_cib_update(XML_TAG_CIB, cib, cib_quorum_override, rc, NULL); rc 209 daemons/controld/controld_election.c fsa_register_cib_callback(rc, FALSE, NULL, feature_update_callback); rc 32 daemons/controld/controld_execd.c int rc; rc 208 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, rc 318 daemons/controld/controld_execd.c int rc = pcmk_rc_ok; rc 323 daemons/controld/controld_execd.c rc = controld_connect_local_executor(lrm_state); rc 324 daemons/controld/controld_execd.c if (rc == pcmk_rc_ok) { rc 335 daemons/controld/controld_execd.c MAX_LRM_REG_FAILS, pcmk_rc_str(rc)); rc 345 daemons/controld/controld_execd.c pcmk_rc_str(rc)); rc 401 daemons/controld/controld_execd.c gboolean rc = TRUE; rc 452 daemons/controld/controld_execd.c rc = FALSE; rc 454 daemons/controld/controld_execd.c return rc; rc 458 daemons/controld/controld_execd.c return rc; rc 498 daemons/controld/controld_execd.c return rc; rc 724 daemons/controld/controld_execd.c if ((op->op_status != PCMK_EXEC_DONE) || (op->rc != target_rc) rc 756 daemons/controld/controld_execd.c entry->last->interval_ms, entry->last->rc); rc 757 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 760 daemons/controld/controld_execd.c } else if (entry->last->rc == PCMK_OCF_OK rc 765 daemons/controld/controld_execd.c } else if (entry->last->rc == PCMK_OCF_NOT_RUNNING) { rc 769 daemons/controld/controld_execd.c && (entry->last->rc == PCMK_OCF_NOT_CONFIGURED)) { rc 864 daemons/controld/controld_execd.c controld_rc2event(lrmd_event_data_t *event, int rc) rc 869 daemons/controld/controld_execd.c switch (rc) { rc 909 daemons/controld/controld_execd.c notify_deleted(lrm_state_t * lrm_state, ha_msg_input_t * input, const char *rsc_id, int rc) rc 917 daemons/controld/controld_execd.c ((rc == pcmk_ok)? "" : " not")); rc 919 daemons/controld/controld_execd.c controld_rc2event(op, pcmk_legacy2rc(rc)); rc 932 daemons/controld/controld_execd.c notify_deleted(event->lrm_state, op->input, event->rsc, event->rc); rc 954 daemons/controld/controld_execd.c GHashTableIter * rsc_gIter, int rc, const char *user_name) rc 960 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 975 daemons/controld/controld_execd.c notify_deleted(lrm_state, input, rsc_id, rc); rc 978 daemons/controld/controld_execd.c event.rc = rc; rc 1143 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 1175 daemons/controld/controld_execd.c rc = lrm_state_cancel(lrm_state, pending->rsc_id, pending->op_type, rc 1177 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 1286 daemons/controld/controld_execd.c int rc; rc 1289 daemons/controld/controld_execd.c rc = lrm_state_register_rsc(lrm_state, id, class, provider, type, rc 1291 daemons/controld/controld_execd.c if (rc != pcmk_ok) { rc 1296 daemons/controld/controld_execd.c id, lrm_state->node_name, pcmk_strerror(rc), rc); rc 1305 daemons/controld/controld_execd.c return rc; rc 1323 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 1329 daemons/controld/controld_execd.c rc = lrm_state_unregister_rsc(lrm_state, id, 0); rc 1332 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 1334 daemons/controld/controld_execd.c } else if (rc == -EINPROGRESS) { rc 1349 daemons/controld/controld_execd.c (user? user : ""), pcmk_strerror(rc), rc); rc 1352 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, request, id, gIter, rc, user); rc 1442 daemons/controld/controld_execd.c int op_status, enum ocf_exitcode rc, rc 1453 daemons/controld/controld_execd.c crm_element_value(action, XML_LRM_ATTR_TASK_KEY), rc, rc 1460 daemons/controld/controld_execd.c ID(xml_rsc), rc, target_node); rc 1469 daemons/controld/controld_execd.c fake_op_status(lrm_state, op, op_status, rc, exit_reason); rc 1473 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, target_node); rc 1542 daemons/controld/controld_execd.c op->rc = PCMK_OCF_OK; // The request to fail the resource succeeded rc 1560 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 1563 daemons/controld/controld_execd.c fsa_cib_update(XML_CIB_TAG_STATUS, fragment, cib_quorum_override, rc, user_name); rc 1564 daemons/controld/controld_execd.c crm_info("Forced a local resource history refresh: call=%d", rc); rc 1810 daemons/controld/controld_execd.c int rc; rc 1815 daemons/controld/controld_execd.c rc = get_lrm_resource(lrm_state, xml_rsc, create_rsc, &rsc); rc 1816 daemons/controld/controld_execd.c if (rc == -ENOTCONN) { rc 1823 daemons/controld/controld_execd.c } else if ((rc < 0) && !create_rsc) { rc 1830 daemons/controld/controld_execd.c rc, pcmk_strerror(rc), ID(input->xml)); rc 1835 daemons/controld/controld_execd.c } else if (rc == -EINVAL) { rc 1844 daemons/controld/controld_execd.c } else if (rc < 0) { rc 1848 daemons/controld/controld_execd.c ID(xml_rsc), pcmk_strerror(rc), rc); rc 2235 daemons/controld/controld_execd.c int rc; rc 2344 daemons/controld/controld_execd.c rc = controld_execute_resource_agent(lrm_state, rsc->id, op->op_type, rc 2348 daemons/controld/controld_execd.c if (rc == pcmk_rc_ok) { rc 2386 daemons/controld/controld_execd.c CRM_XS " rc=%d", operation, rsc->id, pcmk_rc_str(rc), rc); rc 2388 daemons/controld/controld_execd.c PCMK_OCF_UNKNOWN_ERROR, pcmk_rc_str(rc)); rc 2395 daemons/controld/controld_execd.c operation, rsc->id, lrm_state->node_name, pcmk_rc_str(rc), rc); rc 2397 daemons/controld/controld_execd.c PCMK_OCF_UNKNOWN_ERROR, pcmk_rc_str(rc)); rc 2408 daemons/controld/controld_execd.c cib_rsc_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 2410 daemons/controld/controld_execd.c switch (rc) { rc 2414 daemons/controld/controld_execd.c crm_trace("Resource update %d complete: rc=%d", call_id, rc); rc 2417 daemons/controld/controld_execd.c crm_warn("Resource update %d failed: (rc=%d) %s", call_id, rc, pcmk_strerror(rc)); rc 2436 daemons/controld/controld_execd.c if (!strcmp(op->op_type, RSC_STOP) && (op->rc == PCMK_OCF_OK)) { rc 2439 daemons/controld/controld_execd.c if (!strcmp(op->op_type, RSC_STATUS) && (op->rc == PCMK_OCF_NOT_RUNNING)) { rc 2457 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 2479 daemons/controld/controld_execd.c rc = -EINVAL; rc 2546 daemons/controld/controld_execd.c fsa_cib_update(XML_CIB_TAG_STATUS, update, call_opt, rc, NULL); rc 2548 daemons/controld/controld_execd.c if (rc > 0) { rc 2549 daemons/controld/controld_execd.c last_resource_update = rc; rc 2554 daemons/controld/controld_execd.c rc, op->op_type, op->interval_ms, op->rsc_id); rc 2555 daemons/controld/controld_execd.c fsa_register_cib_callback(rc, FALSE, NULL, cib_rsc_callback); rc 2559 daemons/controld/controld_execd.c return rc; rc 2647 daemons/controld/controld_execd.c services_ocf_exitcode_str(op->rc)); rc 2665 daemons/controld/controld_execd.c && ((op->op_status != PCMK_EXEC_DONE) || (op->rc != PCMK_OCF_OK))) { rc 2676 daemons/controld/controld_execd.c g_string_append_printf(str, " rc=%d", op->rc); rc 2685 daemons/controld/controld_execd.c if ((op->output != NULL) && (op->rc != PCMK_OCF_OK)) { rc 2768 daemons/controld/controld_execd.c switch(op->rc) { rc 2899 daemons/controld/controld_execd.c } else if (rsc && (op->rc == PCMK_OCF_OK)) { rc 375 daemons/controld/controld_execd_state.c int rc = pcmk_rc_ok; rc 380 daemons/controld/controld_execd_state.c rc = lrmd__new(&api, NULL, NULL, 0); rc 381 daemons/controld/controld_execd_state.c if (rc != pcmk_rc_ok) { rc 382 daemons/controld/controld_execd_state.c return rc; rc 388 daemons/controld/controld_execd_state.c rc = ((lrmd_t *) lrm_state->conn)->cmds->connect(lrm_state->conn, rc 390 daemons/controld/controld_execd_state.c rc = pcmk_legacy2rc(rc); rc 392 daemons/controld/controld_execd_state.c if (rc == pcmk_rc_ok) { rc 397 daemons/controld/controld_execd_state.c return rc; 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 575 daemons/controld/controld_execd_state.c int rc = pcmk_rc_ok; rc 580 daemons/controld/controld_execd_state.c rc = lrmd__new(&api, lrm_state->node_name, server, port); rc 581 daemons/controld/controld_execd_state.c if (rc != pcmk_rc_ok) { rc 583 daemons/controld/controld_execd_state.c CRM_XS " rc=%d", server, port, pcmk_rc_str(rc), rc); rc 585 daemons/controld/controld_execd_state.c return rc; rc 594 daemons/controld/controld_execd_state.c rc = ((lrmd_t *) lrm_state->conn)->cmds->connect_async(lrm_state->conn, rc 597 daemons/controld/controld_execd_state.c if (rc == pcmk_ok) { rc 602 daemons/controld/controld_execd_state.c return pcmk_legacy2rc(rc); rc 707 daemons/controld/controld_execd_state.c int rc = pcmk_rc_ok; rc 711 daemons/controld/controld_execd_state.c rc = ENOTCONN; rc 714 daemons/controld/controld_execd_state.c rc = controld_execute_remote_agent(lrm_state, rsc_id, action, rc 719 daemons/controld/controld_execd_state.c rc = ((lrmd_t *) lrm_state->conn)->cmds->exec(lrm_state->conn, rsc_id, rc 725 daemons/controld/controld_execd_state.c if (rc < 0) { rc 726 daemons/controld/controld_execd_state.c rc = pcmk_legacy2rc(rc); rc 728 daemons/controld/controld_execd_state.c *call_id = rc; rc 729 daemons/controld/controld_execd_state.c rc = pcmk_rc_ok; rc 732 daemons/controld/controld_execd_state.c return rc; rc 157 daemons/controld/controld_fencing.c cib_fencing_updated(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 160 daemons/controld/controld_fencing.c if (rc < pcmk_ok) { rc 162 daemons/controld/controld_fencing.c call_id, (char *)user_data, pcmk_strerror(rc), rc); rc 174 daemons/controld/controld_fencing.c int rc = pcmk_ok; rc 223 daemons/controld/controld_fencing.c rc = fsa_cib_conn->cmds->update(fsa_cib_conn, XML_CIB_TAG_STATUS, node_state, rc 227 daemons/controld/controld_fencing.c crm_debug("Sending fencing update %d for %s", rc, target); rc 228 daemons/controld/controld_fencing.c fsa_register_cib_callback(rc, FALSE, strdup(target), cib_fencing_updated); rc 621 daemons/controld/controld_fencing.c int rc = pcmk_ok; rc 638 daemons/controld/controld_fencing.c rc = stonith_api_connect_retry(stonith_api, crm_system_name, 30); rc 639 daemons/controld/controld_fencing.c if (rc != pcmk_ok) { rc 641 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 645 daemons/controld/controld_fencing.c rc = stonith_api->cmds->connect(stonith_api, crm_system_name, NULL); rc 646 daemons/controld/controld_fencing.c if (rc != pcmk_ok) { rc 649 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 653 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 659 daemons/controld/controld_fencing.c if (rc == pcmk_ok) { rc 902 daemons/controld/controld_fencing.c int rc = 0; rc 937 daemons/controld/controld_fencing.c rc = fence_with_delay(target, type, priority_delay); rc 940 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 22 daemons/controld/controld_join_client.c void join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 154 daemons/controld/controld_join_client.c join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 167 daemons/controld/controld_join_client.c if(rc != pcmk_ok || output == NULL) { rc 169 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 414 daemons/controld/controld_join_dc.c int rc = pcmk_ok; rc 469 daemons/controld/controld_join_dc.c rc = fsa_cib_conn->cmds->sync_from(fsa_cib_conn, sync_from, NULL, cib_quorum_override); rc 470 daemons/controld/controld_join_dc.c fsa_register_cib_callback(rc, FALSE, sync_from, finalize_sync_callback); rc 474 daemons/controld/controld_join_dc.c finalize_sync_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 476 daemons/controld/controld_join_dc.c CRM_LOG_ASSERT(-EPERM != rc); rc 478 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 479 daemons/controld/controld_join_dc.c do_crm_log(((rc == -pcmk_err_old_data)? LOG_WARNING : LOG_ERR), rc 481 daemons/controld/controld_join_dc.c (char *) user_data, current_join_id, pcmk_strerror(rc)); rc 511 daemons/controld/controld_join_dc.c join_update_complete_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 515 daemons/controld/controld_join_dc.c if (rc == pcmk_ok) { rc 523 daemons/controld/controld_join_dc.c current_join_id, call_id, pcmk_strerror(rc)); rc 189 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 662 daemons/controld/controld_messages.c int rc = pcmk_rc_ok; rc 674 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rc 676 daemons/controld/controld_messages.c if (rc == pcmk_rc_ok) { rc 677 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rc 698 daemons/controld/controld_messages.c ((rc == pcmk_rc_ok)? "" : " not")); rc 705 daemons/controld/controld_messages.c controld_rc2event(op, rc); rc 727 daemons/controld/controld_messages.c int rc = pcmk_rc_ok; rc 729 daemons/controld/controld_messages.c rc = pcmk__xe_get_bool_attr(msg, XML_NODE_IN_CLUSTER, &remote_is_up); rc 731 daemons/controld/controld_messages.c CRM_CHECK(remote_uname && rc == pcmk_rc_ok, return I_NULL); rc 338 daemons/controld/controld_metadata.c int rc = pcmk_ok; rc 369 daemons/controld/controld_metadata.c rc = lrm_state_get_metadata(lrm_state, rsc->standard, rsc->provider, rc 371 daemons/controld/controld_metadata.c if (rc != pcmk_ok) { rc 376 daemons/controld/controld_metadata.c rsc->type, pcmk_strerror(rc)); rc 421 daemons/controld/controld_remote_ra.c int rc = ETIME; rc 433 daemons/controld/controld_remote_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->remaining_timeout); rc 440 daemons/controld/controld_remote_ra.c if (rc != pcmk_rc_ok) { rc 540 daemons/controld/controld_remote_ra.c services_ocf_exitcode_str(op->rc), op->rc, rc 749 daemons/controld/controld_remote_ra.c int rc = pcmk_rc_ok; rc 762 daemons/controld/controld_remote_ra.c rc = controld_connect_remote_executor(lrm_state, server, port, rc 764 daemons/controld/controld_remote_ra.c if (rc != pcmk_rc_ok) { rc 768 daemons/controld/controld_remote_ra.c lrm_state->node_name, pcmk_rc_str(rc)); rc 770 daemons/controld/controld_remote_ra.c return rc; rc 776 daemons/controld/controld_remote_ra.c int rc = 0; rc 813 daemons/controld/controld_remote_ra.c rc = lrm_state_poke_connection(lrm_state); rc 814 daemons/controld/controld_remote_ra.c if (rc < 0) { rc 816 daemons/controld/controld_remote_ra.c PCMK_EXEC_ERROR, pcmk_strerror(rc)); rc 819 daemons/controld/controld_remote_ra.c rc = -1; rc 824 daemons/controld/controld_remote_ra.c if (rc == 0) { rc 57 daemons/controld/controld_schedulerd.c save_cib_contents(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 65 daemons/controld/controld_schedulerd.c if (rc == pcmk_ok) { rc 90 daemons/controld/controld_schedulerd.c int rc = pcmk_ok; rc 106 daemons/controld/controld_schedulerd.c rc = fsa_cib_conn->cmds->query(fsa_cib_conn, NULL, NULL, cib_scope_local); rc 107 daemons/controld/controld_schedulerd.c fsa_register_cib_callback(rc, FALSE, uuid_str, save_cib_contents); rc 184 daemons/controld/controld_schedulerd.c int rc; rc 189 daemons/controld/controld_schedulerd.c rc = pcmk_new_ipc_api(&schedulerd_api, pcmk_ipc_schedulerd); rc 191 daemons/controld/controld_schedulerd.c if (rc != pcmk_rc_ok) { rc 192 daemons/controld/controld_schedulerd.c crm_err("Error connecting to the scheduler: %s", pcmk_rc_str(rc)); rc 199 daemons/controld/controld_schedulerd.c rc = pcmk_connect_ipc(schedulerd_api, pcmk_ipc_dispatch_main); rc 200 daemons/controld/controld_schedulerd.c if (rc != pcmk_rc_ok) { rc 201 daemons/controld/controld_schedulerd.c crm_err("Error connecting to the scheduler: %s", pcmk_rc_str(rc)); rc 209 daemons/controld/controld_schedulerd.c static void do_pe_invoke_callback(xmlNode *msg, int call_id, int rc, rc 430 daemons/controld/controld_schedulerd.c do_pe_invoke_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 435 daemons/controld/controld_schedulerd.c if (rc != pcmk_ok) { rc 437 daemons/controld/controld_schedulerd.c CRM_XS " rc=%d call=%d", pcmk_strerror(rc), rc, call_id); rc 479 daemons/controld/controld_schedulerd.c rc = pcmk_rc2legacy(pcmk_schedulerd_api_graph(schedulerd_api, output, &ref)); rc 481 daemons/controld/controld_schedulerd.c if (rc < 0) { rc 483 daemons/controld/controld_schedulerd.c pcmk_strerror(rc), rc); rc 99 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 233 daemons/controld/controld_te_actions.c int rc = pcmk_ok; rc 286 daemons/controld/controld_te_actions.c rc = fsa_cib_conn->cmds->update(fsa_cib_conn, XML_CIB_TAG_STATUS, state, call_options); rc 287 daemons/controld/controld_te_actions.c fsa_register_cib_callback(rc, FALSE, NULL, cib_action_updated); rc 291 daemons/controld/controld_te_actions.c rc, action->id, task_uuid, target); rc 307 daemons/controld/controld_te_actions.c gboolean rc = TRUE; rc 377 daemons/controld/controld_te_actions.c rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_lrmd, cmd, TRUE); rc 385 daemons/controld/controld_te_actions.c if (rc == FALSE) { rc 512 daemons/controld/controld_te_callbacks.c int rc = -EINVAL; rc 518 daemons/controld/controld_te_callbacks.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 524 daemons/controld/controld_te_callbacks.c } else if (rc < pcmk_ok) { rc 525 daemons/controld/controld_te_callbacks.c crm_trace("Filter rc=%d (%s)", rc, pcmk_strerror(rc)); rc 616 daemons/controld/controld_te_callbacks.c cib_action_updated(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 618 daemons/controld/controld_te_callbacks.c if (rc < pcmk_ok) { rc 619 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, rc 221 daemons/execd/cts-exec-helper.c int rc = event->connection_rc; rc 228 daemons/execd/cts-exec-helper.c if (!rc) { rc 244 daemons/execd/cts-exec-helper.c int rc = 0; rc 248 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->connect_async(lrmd_conn, crm_system_name, 3000); rc 250 daemons/execd/cts-exec-helper.c if (!rc) { rc 263 daemons/execd/cts-exec-helper.c int rc = 0; rc 283 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->exec(lrmd_conn, rc 291 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 292 daemons/execd/cts-exec-helper.c exec_call_id = rc; rc 297 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->register_rsc(lrmd_conn, rc 311 daemons/execd/cts-exec-helper.c rc = pcmk_ok; rc 313 daemons/execd/cts-exec-helper.c rc = -1; rc 316 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->unregister_rsc(lrmd_conn, options.rsc_id, 0); rc 318 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, rc 323 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, rc 326 daemons/execd/cts-exec-helper.c if (rc == pcmk_ok) { rc 334 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, options.class, options.provider); rc 336 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 337 daemons/execd/cts-exec-helper.c print_result(printf("%d agents found\n", rc)); rc 342 daemons/execd/cts-exec-helper.c rc = 0; rc 345 daemons/execd/cts-exec-helper.c rc = -1; rc 351 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, options.type, &list); rc 353 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 354 daemons/execd/cts-exec-helper.c print_result(printf("%d providers found\n", rc)); rc 359 daemons/execd/cts-exec-helper.c rc = 0; rc 362 daemons/execd/cts-exec-helper.c rc = -1; rc 369 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 371 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 372 daemons/execd/cts-exec-helper.c print_result(printf("%d standards found\n", rc)); rc 377 daemons/execd/cts-exec-helper.c rc = 0; rc 380 daemons/execd/cts-exec-helper.c rc = -1; rc 386 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_recurring_ops(lrmd_conn, options.rsc_id, 0, 0, rc 404 daemons/execd/cts-exec-helper.c if (rc < 0) { rc 405 daemons/execd/cts-exec-helper.c print_result(printf("API-CALL FAILURE for '%s' api_rc:%d\n", options.api_call, rc)); rc 409 daemons/execd/cts-exec-helper.c if (options.api_call && rc == pcmk_ok) { rc 427 daemons/execd/cts-exec-helper.c int rc = 0; rc 446 daemons/execd/cts-exec-helper.c rc = cib__signon_query(NULL, &cib_xml_copy); rc 448 daemons/execd/cts-exec-helper.c if (rc != pcmk_rc_ok) { rc 449 daemons/execd/cts-exec-helper.c crm_err("CIB query failed: %s", pcmk_rc_str(rc)); rc 455 daemons/execd/cts-exec-helper.c rc = -1; rc 470 daemons/execd/cts-exec-helper.c rc = -1; rc 505 daemons/execd/cts-exec-helper.c return rc; rc 88 daemons/execd/execd_alerts.c } else if (action->rc != 0) { rc 91 daemons/execd/execd_alerts.c action->pid, action->rc, cb_data->client_id); rc 113 daemons/execd/execd_alerts.c int rc = pcmk_ok; rc 135 daemons/execd/execd_alerts.c rc = -errno; rc 142 daemons/execd/execd_alerts.c rc = -errno; rc 150 daemons/execd/execd_alerts.c if (action->rc != PCMK_OCF_UNKNOWN) { rc 151 daemons/execd/execd_alerts.c rc = -E2BIG; rc 155 daemons/execd/execd_alerts.c rc = services_action_user(action, CRM_DAEMON_USER); rc 156 daemons/execd/execd_alerts.c if (rc < 0) { rc 174 daemons/execd/execd_alerts.c return rc; rc 531 daemons/execd/execd_commands.c create_lrmd_reply(const char *origin, int rc, int call_id) rc 536 daemons/execd/execd_commands.c crm_xml_add_int(reply, F_LRMD_RC, rc); rc 546 daemons/execd/execd_commands.c int rc; rc 565 daemons/execd/execd_commands.c rc = lrmd_server_send_notify(client, update_msg); rc 566 daemons/execd/execd_commands.c if (rc == pcmk_rc_ok) { rc 570 daemons/execd/execd_commands.c switch (rc) { rc 578 daemons/execd/execd_commands.c msg = pcmk_rc_str(rc); rc 582 daemons/execd/execd_commands.c pcmk__client_name(client), msg, rc); rc 678 daemons/execd/execd_commands.c send_generic_notify(int rc, xmlNode * request) rc 691 daemons/execd/execd_commands.c crm_xml_add_int(notify, F_LRMD_RC, rc); rc 820 daemons/execd/execd_commands.c if (cmd->result.exit_status != action->rc) { rc 828 daemons/execd/execd_commands.c code = services_result2ocf(action->standard, cmd->action, action->rc); rc 1146 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1164 daemons/execd/execd_commands.c rc = stonith_api->cmds->register_device(stonith_api, st_opt_sync_call, rc 1169 daemons/execd/execd_commands.c return rc; rc 1207 daemons/execd/execd_commands.c int rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id, rc 1210 daemons/execd/execd_commands.c rc = stonith_api->cmds->register_callback(stonith_api, rc, 0, 0, cmd, rc 1213 daemons/execd/execd_commands.c if (rc == TRUE) { rc 1215 daemons/execd/execd_commands.c rc = pcmk_ok; rc 1217 daemons/execd/execd_commands.c rc = -pcmk_err_generic; rc 1219 daemons/execd/execd_commands.c return rc; rc 1225 daemons/execd/execd_commands.c int rc = 0; rc 1245 daemons/execd/execd_commands.c rc = execd_stonith_start(stonith_api, rsc, cmd); rc 1246 daemons/execd/execd_commands.c if (rc == pcmk_ok) { rc 1251 daemons/execd/execd_commands.c rc = execd_stonith_stop(stonith_api, rsc); rc 1264 daemons/execd/execd_commands.c rc = execd_stonith_monitor(stonith_api, rsc, cmd); rc 1265 daemons/execd/execd_commands.c if (rc == pcmk_ok) { rc 1272 daemons/execd/execd_commands.c ((rc == pcmk_ok)? CRM_EX_OK : CRM_EX_ERROR), rc 1273 daemons/execd/execd_commands.c stonith__legacy2status(rc), rc 1274 daemons/execd/execd_commands.c ((rc == -pcmk_err_generic)? NULL : pcmk_strerror(rc))); rc 1313 daemons/execd/execd_commands.c if (action->rc != PCMK_OCF_UNKNOWN) { rc 1314 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), action->rc, action->status, rc 1330 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), action->rc, action->status, rc 1462 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1468 daemons/execd/execd_commands.c rc = -EPROTO; rc 1477 daemons/execd/execd_commands.c rc = -EACCES; rc 1480 daemons/execd/execd_commands.c rc = -EPROTONOSUPPORT; rc 1484 daemons/execd/execd_commands.c *reply = create_lrmd_reply(__func__, rc, call_id); rc 1489 daemons/execd/execd_commands.c return rc; rc 1495 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1505 daemons/execd/execd_commands.c return rc; rc 1510 daemons/execd/execd_commands.c return rc; rc 1516 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1523 daemons/execd/execd_commands.c rc = -ENODEV; rc 1528 daemons/execd/execd_commands.c rc = -ENODEV; rc 1532 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1546 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1566 daemons/execd/execd_commands.c rc = -EINPROGRESS; rc 1571 daemons/execd/execd_commands.c return rc; rc 1736 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1757 daemons/execd/execd_commands.c rc = -ENODEV; rc 1761 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1782 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1803 daemons/execd/execd_commands.c rc = -EACCES; rc 1806 daemons/execd/execd_commands.c rc = -EPROTONOSUPPORT; rc 1810 daemons/execd/execd_commands.c rc = process_lrmd_signon(client, request, call_id, &reply); rc 1814 daemons/execd/execd_commands.c rc = process_lrmd_rsc_register(client, id, request); rc 1817 daemons/execd/execd_commands.c rc = -EACCES; rc 1824 daemons/execd/execd_commands.c rc = -EACCES; rc 1829 daemons/execd/execd_commands.c rc = process_lrmd_rsc_unregister(client, id, request); rc 1831 daemons/execd/execd_commands.c if (rc == pcmk_ok || rc == -EINPROGRESS) { rc 1835 daemons/execd/execd_commands.c rc = -EACCES; rc 1840 daemons/execd/execd_commands.c rc = process_lrmd_rsc_exec(client, id, request); rc 1842 daemons/execd/execd_commands.c rc = -EACCES; rc 1847 daemons/execd/execd_commands.c rc = process_lrmd_rsc_cancel(client, id, request); rc 1849 daemons/execd/execd_commands.c rc = -EACCES; rc 1862 daemons/execd/execd_commands.c rc = -EACCES; rc 1866 daemons/execd/execd_commands.c rc = process_lrmd_alert_exec(client, id, request); rc 1868 daemons/execd/execd_commands.c rc = -EACCES; rc 1875 daemons/execd/execd_commands.c rc = -EACCES; rc 1879 daemons/execd/execd_commands.c rc = -EOPNOTSUPP; rc 1885 daemons/execd/execd_commands.c if (rc == -EACCES) { rc 1891 daemons/execd/execd_commands.c op, client->id, rc, do_reply, do_notify); rc 1897 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1908 daemons/execd/execd_commands.c send_generic_notify(rc, request); rc 59 daemons/execd/pacemaker-execd.c int rc = pcmk_ok; rc 66 daemons/execd/pacemaker-execd.c rc = stonith_api_connect_retry(stonith_api, crm_system_name, 10); rc 67 daemons/execd/pacemaker-execd.c if (rc != pcmk_ok) { rc 69 daemons/execd/pacemaker-execd.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 444 daemons/execd/pacemaker-execd.c int rc = pcmk__add_logfile(optarg); rc 446 daemons/execd/pacemaker-execd.c if (rc != pcmk_rc_ok) { rc 451 daemons/execd/pacemaker-execd.c optarg, pcmk_rc_str(rc)); rc 505 daemons/execd/pacemaker-execd.c int rc = pcmk__build_path(CRM_RSCTMP_DIR, 0755); rc 507 daemons/execd/pacemaker-execd.c if (rc != pcmk_rc_ok) { rc 509 daemons/execd/pacemaker-execd.c CRM_RSCTMP_DIR ": %s", pcmk_rc_str(rc)); rc 154 daemons/execd/remoted_proxy.c int rc = pcmk_rc_ok; rc 196 daemons/execd/remoted_proxy.c rc = pcmk__ipc_send_xml(ipc_client, 0, msg, crm_ipc_server_event); rc 203 daemons/execd/remoted_proxy.c rc = pcmk__ipc_send_xml(ipc_client, msg_id, msg, FALSE); rc 215 daemons/execd/remoted_proxy.c if (rc != pcmk_rc_ok) { rc 217 daemons/execd/remoted_proxy.c ipc_client->id, pcmk_rc_str(rc), rc); rc 291 daemons/execd/remoted_proxy.c int rc; rc 300 daemons/execd/remoted_proxy.c rc = (lrmd_server_send_notify(ipc_proxy, msg) != pcmk_rc_ok)? -1 : 0; rc 302 daemons/execd/remoted_proxy.c return rc; rc 54 daemons/execd/remoted_tls.c int rc = pcmk__read_handshake_data(client); rc 56 daemons/execd/remoted_tls.c if (rc == EAGAIN) { rc 61 daemons/execd/remoted_tls.c } else if (rc != pcmk_rc_ok) { rc 87 daemons/execd/remoted_tls.c int rc; rc 105 daemons/execd/remoted_tls.c rc = pcmk__read_remote_message(client->remote, -1); rc 135 daemons/execd/remoted_tls.c if (rc == ENOTCONN) { rc 262 daemons/execd/remoted_tls.c int rc; rc 276 daemons/execd/remoted_tls.c rc = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); rc 277 daemons/execd/remoted_tls.c if (rc < 0) { rc 285 daemons/execd/remoted_tls.c rc = setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval, sizeof(optval)); rc 286 daemons/execd/remoted_tls.c if (rc < 0) { rc 310 daemons/execd/remoted_tls.c int rc; rc 321 daemons/execd/remoted_tls.c rc = getaddrinfo(bind_name, port_str, &hints, res); rc 322 daemons/execd/remoted_tls.c if (rc) { rc 324 daemons/execd/remoted_tls.c (bind_name? bind_name : "local node"), gai_strerror(rc)); rc 105 daemons/fenced/cts-fence-helper.c int rc; rc 110 daemons/fenced/cts-fence-helper.c rc = poll(&pollfd, 1, timeout); /* wait 10 minutes, -1 forever */ rc 111 daemons/fenced/cts-fence-helper.c if (rc > 0) { rc 154 daemons/fenced/cts-fence-helper.c int rc = 0; rc 156 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 157 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 173 daemons/fenced/cts-fence-helper.c int rc = 0; \ rc 174 daemons/fenced/cts-fence-helper.c rc = cmd; \ rc 180 daemons/fenced/cts-fence-helper.c if (rc != expected_rc) { \ rc 181 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 189 daemons/fenced/cts-fence-helper.c crm_info("SUCCESS - %s: %d", str, rc); \ rc 191 daemons/fenced/cts-fence-helper.c crm_debug("SUCCESS - %s: %d", str, rc); \ rc 307 daemons/fenced/cts-fence-helper.c int rc = 0; rc 309 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 310 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 331 daemons/fenced/cts-fence-helper.c int rc = 0; rc 335 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 336 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 344 daemons/fenced/cts-fence-helper.c rc = st->cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_xvm", params); rc 345 daemons/fenced/cts-fence-helper.c crm_debug("Register: %d", rc); rc 347 daemons/fenced/cts-fence-helper.c rc = st->cmds->list(st, st_opts, "test-id", &tmp, 10); rc 348 daemons/fenced/cts-fence-helper.c crm_debug("List: %d output: %s", rc, tmp ? tmp : "<none>"); rc 350 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, st_opts, "test-id", 10); rc 351 daemons/fenced/cts-fence-helper.c crm_debug("Monitor: %d", rc); rc 353 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node2", 10); rc 354 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node2: %d", rc); rc 356 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 357 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 359 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "unknown-host", "off", 60, 0); rc 360 daemons/fenced/cts-fence-helper.c crm_debug("Fence unknown-host: %d", rc); rc 362 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 363 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 365 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "off", 60, 0); rc 366 daemons/fenced/cts-fence-helper.c crm_debug("Fence false_1_node1: %d", rc); rc 368 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 369 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 371 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); rc 372 daemons/fenced/cts-fence-helper.c crm_debug("Unfence false_1_node1: %d", rc); rc 374 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 375 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 377 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "some-host", "off", 10, 0); rc 378 daemons/fenced/cts-fence-helper.c crm_debug("Fence alias: %d", rc); rc 380 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "some-host", 10); rc 381 daemons/fenced/cts-fence-helper.c crm_debug("Status alias: %d", rc); rc 383 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); rc 384 daemons/fenced/cts-fence-helper.c crm_debug("Unfence false_1_node1: %d", rc); rc 386 daemons/fenced/cts-fence-helper.c rc = st->cmds->remove_device(st, st_opts, "test-id"); rc 387 daemons/fenced/cts-fence-helper.c crm_debug("Remove test-id: %d", rc); rc 416 daemons/fenced/cts-fence-helper.c int rc = 0; rc 423 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "true_1_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 424 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 425 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 428 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 436 daemons/fenced/cts-fence-helper.c int rc = 0; rc 456 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "custom_timeout_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 457 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 458 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 461 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 468 daemons/fenced/cts-fence-helper.c int rc = 0; rc 476 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "false_1_node2", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 477 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 478 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 481 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 488 daemons/fenced/cts-fence-helper.c int rc = 0; rc 495 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, 0, "false_1", MAINLOOP_DEFAULT_TIMEOUT); rc 496 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 497 daemons/fenced/cts-fence-helper.c crm_err("monitor failed with rc %d", rc); rc 501 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 541 daemons/fenced/cts-fence-helper.c int rc = stonith_api_connect_retry(st, crm_system_name, 10); rc 543 daemons/fenced/cts-fence-helper.c if (rc == pcmk_ok) { rc 582 daemons/fenced/cts-fence-helper.c int rc = 0; rc 585 daemons/fenced/cts-fence-helper.c rc = st->cmds->disconnect(st); rc 586 daemons/fenced/cts-fence-helper.c crm_info("Disconnect: %d", rc); rc 592 daemons/fenced/cts-fence-helper.c if (rc) { rc 792 daemons/fenced/fenced_commands.c int rc; rc 799 daemons/fenced/fenced_commands.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, rc 802 daemons/fenced/fenced_commands.c if (rc || !buffer) { rc 3260 daemons/fenced/fenced_commands.c int rc = stonith_device_register(request->xml, &device_id, FALSE); rc 3263 daemons/fenced/fenced_commands.c ((rc == pcmk_ok)? CRM_EX_OK : CRM_EX_ERROR), rc 3264 daemons/fenced/fenced_commands.c stonith__legacy2status(rc), rc 3265 daemons/fenced/fenced_commands.c ((rc == pcmk_ok)? NULL : pcmk_strerror(rc))); rc 299 daemons/fenced/pacemaker-fenced.c int rc = pcmk__ipc_send_xml(client, 0, update_msg, rc 302 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 305 daemons/fenced/pacemaker-fenced.c pcmk_rc_str(rc), client->id, rc); rc 615 daemons/fenced/pacemaker-fenced.c int rc; rc 627 daemons/fenced/pacemaker-fenced.c rc = stonith_device_register(xml, NULL, TRUE); rc 629 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_ok) { rc 648 daemons/fenced/pacemaker-fenced.c int rc = pcmk_rc_ok; rc 653 daemons/fenced/pacemaker-fenced.c rc = pcmk__xe_get_bool_attr(stonith_enabled_xml, XML_NVPAIR_ATTR_VALUE, &stonith_enabled); rc 655 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok || stonith_enabled) { rc 755 daemons/fenced/pacemaker-fenced.c int rc; rc 783 daemons/fenced/pacemaker-fenced.c rc = stonith_device_register(data, NULL, TRUE); rc 784 daemons/fenced/pacemaker-fenced.c CRM_ASSERT(rc == pcmk_ok); rc 1138 daemons/fenced/pacemaker-fenced.c int rc = pcmk_ok; rc 1158 daemons/fenced/pacemaker-fenced.c int rc = pcmk_ok; rc 1161 daemons/fenced/pacemaker-fenced.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 1162 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_ok) { rc 1168 daemons/fenced/pacemaker-fenced.c rc = xml_apply_patchset(local_cib, patchset, TRUE); rc 1169 daemons/fenced/pacemaker-fenced.c switch (rc) { rc 1175 daemons/fenced/pacemaker-fenced.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 1180 daemons/fenced/pacemaker-fenced.c crm_warn("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 1188 daemons/fenced/pacemaker-fenced.c rc = cib_api->cmds->query(cib_api, NULL, &local_cib, cib_scope_local | cib_sync_call); rc 1189 daemons/fenced/pacemaker-fenced.c if(rc != pcmk_ok) { rc 1190 daemons/fenced/pacemaker-fenced.c crm_err("Couldn't retrieve the CIB: %s (%d)", pcmk_strerror(rc), rc); rc 1230 daemons/fenced/pacemaker-fenced.c init_cib_cache_cb(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 1331 daemons/fenced/pacemaker-fenced.c int rc, retries = 0; rc 1341 daemons/fenced/pacemaker-fenced.c rc = cib_api->cmds->signon(cib_api, CRM_SYSTEM_STONITHD, cib_command); rc 1342 daemons/fenced/pacemaker-fenced.c } while (rc == -ENOTCONN && ++retries < 5); rc 1344 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_ok) { rc 1345 daemons/fenced/pacemaker-fenced.c crm_err("Could not connect to the CIB manager: %s (%d)", pcmk_strerror(rc), rc); rc 1352 daemons/fenced/pacemaker-fenced.c rc = cib_api->cmds->query(cib_api, NULL, NULL, cib_scope_local); rc 1353 daemons/fenced/pacemaker-fenced.c cib_api->cmds->register_callback(cib_api, rc, 120, FALSE, NULL, "init_cib_cache_cb", rc 1408 daemons/fenced/pacemaker-fenced.c int rc = pcmk_rc_ok; rc 1427 daemons/fenced/pacemaker-fenced.c int rc = pcmk__add_logfile(optarg); rc 1429 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 1434 daemons/fenced/pacemaker-fenced.c optarg, pcmk_rc_str(rc)); rc 1696 daemons/fenced/pacemaker-fenced.c rc = pcmk__output_new(&out, "log", NULL, argv); rc 1697 daemons/fenced/pacemaker-fenced.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 1699 daemons/fenced/pacemaker-fenced.c pcmk_rc_str(rc)); rc 134 daemons/pacemakerd/pacemakerd.c int rc = chown(path, uid, gid); rc 136 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 173 daemons/pacemakerd/pacemakerd.c int rc = pcmk__build_path(dirs[i], 0750); rc 175 daemons/pacemakerd/pacemakerd.c if (rc != pcmk_rc_ok) { rc 177 daemons/pacemakerd/pacemakerd.c dirs[i], pcmk_rc_str(rc)); rc 188 daemons/pacemakerd/pacemakerd.c int rc = getrlimit(RLIMIT_CORE, &cores); rc 190 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 204 daemons/pacemakerd/pacemakerd.c rc = setrlimit(RLIMIT_CORE, &cores); rc 205 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 249 daemons/pacemakerd/pacemakerd.c int rc = pcmk_rc_ok; rc 278 daemons/pacemakerd/pacemakerd.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 279 daemons/pacemakerd/pacemakerd.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 282 daemons/pacemakerd/pacemakerd.c args->output_ty, pcmk_rc_str(rc)); rc 311 daemons/pacemakerd/pacemakerd.c rc = pcmk_new_ipc_api(&old_instance, pcmk_ipc_pacemakerd); rc 313 daemons/pacemakerd/pacemakerd.c out->err(out, "Could not check for existing pacemakerd: %s", pcmk_rc_str(rc)); rc 314 daemons/pacemakerd/pacemakerd.c exit_code = pcmk_rc2exitc(rc); rc 319 daemons/pacemakerd/pacemakerd.c rc = pcmk_connect_ipc(old_instance, pcmk_ipc_dispatch_sync); rc 324 daemons/pacemakerd/pacemakerd.c rc = pcmk_pacemakerd_api_shutdown(old_instance, crm_system_name); rc 327 daemons/pacemakerd/pacemakerd.c exit_code = pcmk_rc2exitc(rc); rc 331 daemons/pacemakerd/pacemakerd.c "of existing Pacemaker instance: %s", pcmk_rc_str(rc)); rc 55 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc = corosync_cfg_dispatch(*handle, CS_DISPATCH_ALL); rc 57 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 126 daemons/pacemakerd/pcmkd_corosync.c if(rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { \ rc 138 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc; rc 150 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_initialize(&cfg_handle, &cfg_callbacks)); rc 152 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 154 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 158 daemons/pacemakerd/pcmkd_corosync.c rc = corosync_cfg_fd_get(cfg_handle, &fd); rc 159 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 161 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 180 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_local_get(cfg_handle, &nodeid)); rc 181 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 183 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), rc); rc 190 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_trackstart(cfg_handle, 0)); rc 191 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 193 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 209 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc; rc 216 daemons/pacemakerd/pcmkd_corosync.c rc = corosync_cfg_try_shutdown(cfg_handle, rc 218 daemons/pacemakerd/pcmkd_corosync.c if (rc == CS_OK) { rc 222 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 251 daemons/pacemakerd/pcmkd_corosync.c int rc = 0, retries = 0; rc 253 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 5, rc = cmap_get_string(object_handle, key, value)); rc 254 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 255 daemons/pacemakerd/pcmkd_corosync.c crm_trace("Search for %s failed %d, defaulting to %s", key, rc, fallback); rc 259 daemons/pacemakerd/pcmkd_corosync.c return rc; rc 265 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc = CS_OK; rc 278 daemons/pacemakerd/pcmkd_corosync.c rc = pcmk__init_cmap(&local_handle); rc 279 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 282 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), retries, rc); rc 291 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 293 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), rc); rc 297 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_fd_get(local_handle, &fd); rc 298 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 300 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 361 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_set_uint8(local_handle, key, 1); rc 362 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 364 daemons/pacemakerd/pcmkd_corosync.c " group=%u rc=%d", pcmk__cs_err_str(rc), gid, rc); rc 132 daemons/pacemakerd/pcmkd_subdaemons.c int rc = child_liveness(&pcmk_children[next_child]); rc 137 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_rc_str(rc), rc); rc 139 daemons/pacemakerd/pcmkd_subdaemons.c switch (rc) { rc 569 daemons/pacemakerd/pcmkd_subdaemons.c int rc = pcmk_rc_ipc_unresponsive; rc 576 daemons/pacemakerd/pcmkd_subdaemons.c rc = EINVAL; // Misuse of function when child is not trackable rc 591 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_legacy2rc(legacy_rc); rc 593 daemons/pacemakerd/pcmkd_subdaemons.c CRM_XS " rc=%d", CRM_DAEMON_USER, pcmk_rc_str(rc), rc); rc 595 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk__ipc_is_authentic_process_active(child->endpoint, rc 598 daemons/pacemakerd/pcmkd_subdaemons.c if ((rc == pcmk_rc_ok) || (rc == pcmk_rc_ipc_unresponsive)) { rc 610 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unresponsive; rc 616 daemons/pacemakerd/pcmkd_subdaemons.c if (rc == pcmk_rc_ipc_unresponsive) { rc 645 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ok; rc 649 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_pid_only; rc 652 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unresponsive; rc 656 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unauthorized; rc 659 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unresponsive; rc 662 daemons/pacemakerd/pcmkd_subdaemons.c rc = ret; rc 667 daemons/pacemakerd/pcmkd_subdaemons.c return rc; rc 702 daemons/pacemakerd/pcmkd_subdaemons.c int rc; rc 714 daemons/pacemakerd/pcmkd_subdaemons.c rc = child_liveness(&pcmk_children[i]); rc 715 daemons/pacemakerd/pcmkd_subdaemons.c if (rc == pcmk_rc_ipc_unresponsive) { rc 724 daemons/pacemakerd/pcmkd_subdaemons.c switch (rc) { rc 776 daemons/pacemakerd/pcmkd_subdaemons.c return rc; rc 789 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_rc_str(rc), rc); rc 790 daemons/pacemakerd/pcmkd_subdaemons.c return rc; rc 70 daemons/schedulerd/pacemaker-schedulerd.c int rc = pcmk_rc_ok; rc 86 daemons/schedulerd/pacemaker-schedulerd.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 87 daemons/schedulerd/pacemaker-schedulerd.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 90 daemons/schedulerd/pacemaker-schedulerd.c args->output_ty, pcmk_rc_str(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 137 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); rc 401 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 325 include/crm/common/results.h const char *pcmk_rc_name(int rc); rc 326 include/crm/common/results.h const char *pcmk_rc_str(int rc); rc 327 include/crm/common/results.h crm_exit_t pcmk_rc2exitc(int rc); rc 328 include/crm/common/results.h enum ocf_exitcode pcmk_rc2ocf(int rc); rc 329 include/crm/common/results.h int pcmk_rc2legacy(int rc); rc 331 include/crm/common/results.h const char *pcmk_strerror(int rc); rc 332 include/crm/common/results.h const char *pcmk_errorname(int rc); rc 333 include/crm/common/results.h const char *bz2_strerror(int rc); rc 334 include/crm/common/results.h crm_exit_t crm_errno2exit(int rc); rc 337 include/crm/common/results.h _Noreturn crm_exit_t crm_exit(crm_exit_t rc); rc 189 include/crm/fencing/internal.h int stonith__legacy2status(int rc); rc 223 include/crm/lrmd.h enum ocf_exitcode rc; rc 38 include/crm/lrmd_internal.h void lrmd__set_result(lrmd_event_data_t *event, enum ocf_exitcode rc, rc 480 include/crm/pengine/internal.h enum rsc_digest_cmp_val rc; rc 154 include/crm/services.h int rc; //!< Exit status of action (set by library upon completion) rc 142 include/crm/stonith-ng.h int rc; rc 173 include/pcmki/pcmki_transition.h int status, int rc, rc 43 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 53 lib/cib/cib_attrs.c rc = pcmk__output_new(&out, ty, NULL, (char**)argv); rc 54 lib/cib/cib_attrs.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 55 lib/cib/cib_attrs.c crm_err("Can't out due to internal error: %s", pcmk_rc_str(rc)); rc 69 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 152 lib/cib/cib_attrs.c rc = cib_internal_op(cib, CIB_OP_QUERY, NULL, xpath_string, NULL, &xml_search, rc 154 lib/cib/cib_attrs.c if (rc < 0) { rc 155 lib/cib/cib_attrs.c rc = pcmk_legacy2rc(rc); rc 158 lib/cib/cib_attrs.c pcmk_rc_str(rc)); rc 161 lib/cib/cib_attrs.c rc = pcmk_rc_ok; rc 168 lib/cib/cib_attrs.c rc = ENOTUNIQ; rc 184 lib/cib/cib_attrs.c return rc; rc 194 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 205 lib/cib/cib_attrs.c rc = find_attr(out, cib, XML_ATTR_ID, section, node_uuid, set_type, set_name, rc 207 lib/cib/cib_attrs.c if (rc == pcmk_rc_ok) { rc 211 lib/cib/cib_attrs.c } else if (rc != ENXIO) { rc 212 lib/cib/cib_attrs.c return rc; rc 327 lib/cib/cib_attrs.c rc = cib_internal_op(cib, CIB_OP_MODIFY, NULL, section, xml_top, NULL, rc 329 lib/cib/cib_attrs.c if (rc < 0) { rc 330 lib/cib/cib_attrs.c rc = pcmk_legacy2rc(rc); rc 333 lib/cib/cib_attrs.c attr_name, attr_value, section, crm_str(set_name), pcmk_rc_str(rc)); rc 336 lib/cib/cib_attrs.c rc = pcmk_rc_ok; rc 343 lib/cib/cib_attrs.c return rc; rc 352 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 360 lib/cib/cib_attrs.c rc = find_attr(out, cib, XML_NVPAIR_ATTR_VALUE, section, node_uuid, set_type, rc 362 lib/cib/cib_attrs.c if (rc != pcmk_rc_ok) { rc 364 lib/cib/cib_attrs.c attr_name, section, crm_str(set_name), crm_str(node_uuid), pcmk_strerror(rc)); rc 367 lib/cib/cib_attrs.c return rc; rc 376 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 384 lib/cib/cib_attrs.c rc = find_attr(out, cib, XML_ATTR_ID, section, node_uuid, set_type, rc 387 lib/cib/cib_attrs.c if (rc != pcmk_rc_ok) { rc 388 lib/cib/cib_attrs.c return rc; rc 395 lib/cib/cib_attrs.c rc = cib_internal_op(cib, CIB_OP_DELETE, NULL, section, xml_obj, NULL, rc 397 lib/cib/cib_attrs.c if (rc < 0) { rc 398 lib/cib/cib_attrs.c rc = pcmk_legacy2rc(rc); rc 400 lib/cib/cib_attrs.c rc = pcmk_rc_ok; rc 409 lib/cib/cib_attrs.c return rc; rc 419 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 426 lib/cib/cib_attrs.c rc = find_attr(out, cib, attr, section, node_uuid, attr_set_type, rc 431 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 441 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 448 lib/cib/cib_attrs.c rc = cib__update_node_attr(out, cib, call_options, section, node_uuid, set_type, rc 454 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 464 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 471 lib/cib/cib_attrs.c rc = cib__read_node_attr(out, cib, section, node_uuid, set_type, set_name, rc 476 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 486 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 493 lib/cib/cib_attrs.c rc = cib__delete_node_attr(out, cib, options, section, node_uuid, set_type, rc 498 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 514 lib/cib/cib_attrs.c int rc = -ENXIO; rc 520 lib/cib/cib_attrs.c return rc; rc 527 lib/cib/cib_attrs.c CRM_CHECK(result != NULL, return rc); rc 570 lib/cib/cib_attrs.c rc = pcmk_ok; rc 573 lib/cib/cib_attrs.c return rc; rc 599 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 619 lib/cib/cib_attrs.c rc = get_uuid_from_result(xml_search, uuid, is_remote_node); rc 621 lib/cib/cib_attrs.c rc = -ENXIO; rc 627 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 629 lib/cib/cib_attrs.c uname, pcmk_strerror(rc)); rc 633 lib/cib/cib_attrs.c return rc; rc 639 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 648 lib/cib/cib_attrs.c rc = the_cib->cmds->query(the_cib, XML_CIB_TAG_NODES, &fragment, rc 650 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 651 lib/cib/cib_attrs.c return rc; rc 660 lib/cib/cib_attrs.c rc = -ENXIO; rc 673 lib/cib/cib_attrs.c rc = pcmk_ok; rc 681 lib/cib/cib_attrs.c return rc; rc 687 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 702 lib/cib/cib_attrs.c rc = update_attr_delegate(the_cib, cib_sync_call, scope, uuid, NULL, NULL, rc 706 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 461 lib/cib/cib_client.c int rc, xmlNode * output)) rc 572 lib/cib/cib_client.c int rc = 0; rc 577 lib/cib/cib_client.c rc = strcmp(a_client->event, b_client->event); rc 578 lib/cib/cib_client.c if (rc == 0) { rc 590 lib/cib/cib_client.c return rc; rc 103 lib/cib/cib_file.c int rc = pcmk__file_contents(sigfile, &expected); rc 105 lib/cib/cib_file.c switch (rc) { rc 117 lib/cib/cib_file.c sigfile, pcmk_rc_str(rc)); rc 250 lib/cib/cib_file.c int rc = 0; rc 275 lib/cib/cib_file.c rc = -1; rc 281 lib/cib/cib_file.c rc = -1; rc 293 lib/cib/cib_file.c rc = -1; rc 298 lib/cib/cib_file.c rc = -1; rc 305 lib/cib/cib_file.c rc = -1; rc 316 lib/cib/cib_file.c return rc; rc 366 lib/cib/cib_file.c int rc, fd; rc 387 lib/cib/cib_file.c rc = cib_file_read_and_verify(cib_path, NULL, NULL); rc 388 lib/cib/cib_file.c if ((rc != pcmk_ok) && (rc != -ENOENT)) { rc 455 lib/cib/cib_file.c rc = pcmk__write_sync(fd, digest); rc 456 lib/cib/cib_file.c if (rc != pcmk_rc_ok) { rc 458 lib/cib/cib_file.c tmp_digest, pcmk_rc_str(rc)); rc 469 lib/cib/cib_file.c rc = cib_file_read_and_verify(tmp_cib, tmp_digest, NULL); rc 470 lib/cib/cib_file.c CRM_ASSERT(rc == 0); rc 592 lib/cib/cib_file.c int rc = pcmk_ok; rc 596 lib/cib/cib_file.c rc = -EINVAL; rc 598 lib/cib/cib_file.c rc = load_file_cib(private->filename); rc 601 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 609 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); rc 611 lib/cib/cib_file.c return rc; rc 629 lib/cib/cib_file.c int rc = 0; rc 675 lib/cib/cib_file.c rc = -1; rc 688 lib/cib/cib_file.c return rc; rc 707 lib/cib/cib_file.c int rc = pcmk_ok; rc 720 lib/cib/cib_file.c rc = pcmk_err_generic; rc 728 lib/cib/cib_file.c rc = pcmk_err_generic; rc 732 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 743 lib/cib/cib_file.c return rc; rc 749 lib/cib/cib_file.c int rc = pcmk_ok; rc 752 lib/cib/cib_file.c rc = cib_file_signoff(cib); rc 755 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 764 lib/cib/cib_file.c fprintf(stderr, "Couldn't sign off: %d\n", rc); rc 767 lib/cib/cib_file.c return rc; rc 803 lib/cib/cib_file.c int rc = pcmk_ok; rc 858 lib/cib/cib_file.c rc = cib_perform_op(op, call_options, fn, query, rc 863 lib/cib/cib_file.c if (rc == -pcmk_err_schema_validation) { rc 867 lib/cib/cib_file.c if (rc != pcmk_ok) { rc 880 lib/cib/cib_file.c cib->op_callback(NULL, cib->call_id, rc, output); rc 895 lib/cib/cib_file.c return rc; rc 158 lib/cib/cib_native.c int rc = pcmk_ok; rc 194 lib/cib/cib_native.c rc = -ENOTCONN; rc 204 lib/cib/cib_native.c if (rc != pcmk_ok || native->ipc == NULL || crm_ipc_connected(native->ipc) == FALSE) { rc 206 lib/cib/cib_native.c rc = -ENOTCONN; rc 209 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 221 lib/cib/cib_native.c rc = pcmk_ok; rc 227 lib/cib/cib_native.c rc = -EPROTO; rc 232 lib/cib/cib_native.c rc = -EPROTO; rc 238 lib/cib/cib_native.c rc = -ECOMM; rc 244 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 250 lib/cib/cib_native.c name, pcmk_strerror(rc)); rc 252 lib/cib/cib_native.c return rc; rc 289 lib/cib/cib_native.c int rc = pcmk_ok; rc 292 lib/cib/cib_native.c rc = cib_native_signoff(cib); rc 304 lib/cib/cib_native.c return rc; rc 320 lib/cib/cib_native.c int rc = pcmk_ok; rc 361 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, cib->call_timeout * 1000, &op_reply); rc 364 lib/cib/cib_native.c if (rc < 0) { rc 366 lib/cib/cib_native.c cib->call_timeout, pcmk_strerror(rc), rc); rc 367 lib/cib/cib_native.c rc = -ECOMM; rc 380 lib/cib/cib_native.c rc = pcmk_ok; rc 386 lib/cib/cib_native.c if (crm_element_value_int(op_reply, F_CIB_RC, &rc) != 0) { rc 387 lib/cib/cib_native.c rc = -EPROTO; rc 400 lib/cib/cib_native.c rc = -ENOMSG; rc 406 lib/cib/cib_native.c rc = -ENOMSG; rc 411 lib/cib/cib_native.c rc = -ENOTCONN; rc 413 lib/cib/cib_native.c } else if (rc == pcmk_ok && op_reply == NULL) { rc 414 lib/cib/cib_native.c rc = -ETIME; rc 417 lib/cib/cib_native.c switch (rc) { rc 424 lib/cib/cib_native.c rc = pcmk_ok; rc 430 lib/cib/cib_native.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 438 lib/cib/cib_native.c crm_warn("Call failed: %s", pcmk_strerror(rc)); rc 449 lib/cib/cib_native.c return rc; rc 471 lib/cib/cib_native.c int rc = pcmk_ok; rc 479 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, rc 481 lib/cib/cib_native.c if (rc <= 0) { rc 482 lib/cib/cib_native.c crm_trace("Notification not registered: %d", rc); rc 483 lib/cib/cib_native.c rc = -ECOMM; rc 488 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 195 lib/cib/cib_remote.c int rc; rc 210 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, rc 212 lib/cib/cib_remote.c if (rc != pcmk_rc_ok) { rc 214 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); rc 262 lib/cib/cib_remote.c rc = pcmk_ok; rc 264 lib/cib/cib_remote.c rc = -ENOTCONN; rc 271 lib/cib/cib_remote.c rc = -EPROTO; rc 280 lib/cib/cib_remote.c rc = -EPROTO; rc 283 lib/cib/cib_remote.c rc = -EPROTO; rc 292 lib/cib/cib_remote.c if (rc != 0) { rc 294 lib/cib/cib_remote.c return rc; rc 301 lib/cib/cib_remote.c return rc; rc 317 lib/cib/cib_remote.c int rc; rc 321 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); rc 327 lib/cib/cib_remote.c if (rc == ENOTCONN) { rc 336 lib/cib/cib_remote.c int rc; rc 344 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); rc 366 lib/cib/cib_remote.c if (rc == ENOTCONN) { rc 376 lib/cib/cib_remote.c int rc = pcmk_ok; rc 391 lib/cib/cib_remote.c rc = -EINVAL; rc 394 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 395 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); rc 398 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 399 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); rc 402 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 410 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 418 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); rc 421 lib/cib/cib_remote.c return rc; rc 427 lib/cib/cib_remote.c int rc = pcmk_ok; rc 439 lib/cib/cib_remote.c return rc; rc 445 lib/cib/cib_remote.c int rc = pcmk_ok; rc 449 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); rc 450 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 462 lib/cib/cib_remote.c return rc; rc 469 lib/cib/cib_remote.c int rc; rc 524 lib/cib/cib_remote.c rc = pcmk_rc_ok; rc 525 lib/cib/cib_remote.c while (remaining_time > 0 && (rc != ENOTCONN)) { rc 529 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, rc 567 lib/cib/cib_remote.c if (rc == ENOTCONN) { rc 578 lib/cib/cib_remote.c if (crm_element_value_int(op_reply, F_CIB_RC, &rc) != 0) { rc 579 lib/cib/cib_remote.c rc = -EPROTO; rc 582 lib/cib/cib_remote.c if (rc == -pcmk_err_diff_resync) { rc 584 lib/cib/cib_remote.c rc = pcmk_ok; rc 587 lib/cib/cib_remote.c if (rc == pcmk_ok || rc == -EPERM) { rc 592 lib/cib/cib_remote.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 611 lib/cib/cib_remote.c return rc; rc 128 lib/cib/cib_utils.c bool rc = FALSE; rc 136 lib/cib/cib_utils.c rc = crm_is_true(value); rc 140 lib/cib/cib_utils.c crm_trace("CIB ACL is %s", rc ? "enabled" : "disabled"); rc 141 lib/cib/cib_utils.c return rc; rc 150 lib/cib/cib_utils.c int rc = pcmk_ok; rc 195 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, cib_ro, result_cib, output); rc 216 lib/cib/cib_utils.c return rc; rc 231 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, scratch, &scratch, output); rc 236 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, current_cib, &scratch, output); rc 248 lib/cib/cib_utils.c if (rc == pcmk_ok && scratch == NULL) { rc 249 lib/cib/cib_utils.c rc = -EINVAL; rc 252 lib/cib/cib_utils.c } else if(rc == pcmk_ok && xml_acl_denied(scratch)) { rc 254 lib/cib/cib_utils.c rc = -EACCES; rc 257 lib/cib/cib_utils.c } else if (rc != pcmk_ok) { rc 267 lib/cib/cib_utils.c rc = -EPROTONOSUPPORT; rc 284 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 294 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 404 lib/cib/cib_utils.c if ((rc == pcmk_ok) && check_schema && !validate_xml(scratch, NULL, TRUE)) { rc 410 lib/cib/cib_utils.c rc = -pcmk_err_schema_validation; rc 416 lib/cib/cib_utils.c if(rc != pcmk_ok && cib_acl_enabled(current_cib, user)) { rc 433 lib/cib/cib_utils.c return rc; rc 470 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) rc 476 lib/cib/cib_utils.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 491 lib/cib/cib_utils.c if (rc == -pcmk_err_diff_resync) { rc 493 lib/cib/cib_utils.c rc = pcmk_ok; rc 496 lib/cib/cib_utils.c if (blob && blob->callback && (rc == pcmk_ok || blob->only_success == FALSE)) { rc 498 lib/cib/cib_utils.c blob->callback(msg, call_id, rc, output, blob->user_data); rc 500 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { rc 501 lib/cib/cib_utils.c crm_warn("CIB command failed: %s", pcmk_strerror(rc)); rc 512 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); rc 676 lib/cib/cib_utils.c int rc = pcmk_err_generic; rc 684 lib/cib/cib_utils.c crm_element_value_int(event, F_CIB_RC, &rc); rc 687 lib/cib/cib_utils.c if (rc < pcmk_ok || diff == NULL) { rc 688 lib/cib/cib_utils.c return rc; rc 696 lib/cib/cib_utils.c rc = cib_process_diff(NULL, cib_none, NULL, event, diff, input, output, rc 699 lib/cib/cib_utils.c if (rc != pcmk_ok) { rc 701 lib/cib/cib_utils.c pcmk_strerror(rc), rc, *output); rc 703 lib/cib/cib_utils.c if (rc == -pcmk_err_old_data) { rc 709 lib/cib/cib_utils.c return rc; rc 712 lib/cib/cib_utils.c return rc; rc 718 lib/cib/cib_utils.c int rc = pcmk_rc_ok; rc 732 lib/cib/cib_utils.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 733 lib/cib/cib_utils.c rc = pcmk_legacy2rc(rc); rc 735 lib/cib/cib_utils.c if (rc == pcmk_rc_ok) { rc 736 lib/cib/cib_utils.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_object, cib_scope_local | cib_sync_call); rc 737 lib/cib/cib_utils.c rc = pcmk_legacy2rc(rc); rc 747 lib/cib/cib_utils.c return rc; rc 754 lib/cib/cib_utils.c int rc; rc 760 lib/cib/cib_utils.c rc = (*cib)->cmds->signoff(*cib); rc 763 lib/cib/cib_utils.c return pcmk_legacy2rc(rc); rc 106 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 124 lib/cluster/corosync.c rc = pcmk__init_cmap(&local_handle); rc 125 lib/cluster/corosync.c if (rc != CS_OK) { rc 127 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 132 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 134 lib/cluster/corosync.c if (rc != CS_OK) { rc 136 lib/cluster/corosync.c cs_strerror(rc)); rc 144 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); rc 145 lib/cluster/corosync.c if (rc != CS_OK) { rc 147 lib/cluster/corosync.c cs_strerror(rc), rc); rc 171 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &id); rc 175 lib/cluster/corosync.c if (rc != CS_OK) { rc 244 lib/cluster/corosync.c int rc = quorum_dispatch(pcmk_quorum_handle, CS_DISPATCH_ALL); rc 246 lib/cluster/corosync.c if (rc < 0) { rc 247 lib/cluster/corosync.c crm_err("Connection to the Quorum API failed: %d", rc); rc 345 lib/cluster/corosync.c cs_error_t rc; rc 368 lib/cluster/corosync.c rc = quorum_model_initialize(&pcmk_quorum_handle, QUORUM_MODEL_V0, rc 376 lib/cluster/corosync.c rc = quorum_initialize(&pcmk_quorum_handle, &quorum_callbacks, rc 381 lib/cluster/corosync.c if (rc != CS_OK) { rc 383 lib/cluster/corosync.c cs_strerror(rc), rc); rc 391 lib/cluster/corosync.c rc = quorum_fd_get(pcmk_quorum_handle, &fd); rc 392 lib/cluster/corosync.c if (rc != CS_OK) { rc 394 lib/cluster/corosync.c strerror(rc), rc); rc 405 lib/cluster/corosync.c rc = CS_ERR_ACCESS; rc 410 lib/cluster/corosync.c rc = CS_ERR_ACCESS; rc 414 lib/cluster/corosync.c rc = quorum_getquorate(pcmk_quorum_handle, &quorate); rc 415 lib/cluster/corosync.c if (rc != CS_OK) { rc 416 lib/cluster/corosync.c crm_err("Could not obtain the current Quorum API state: %d", rc); rc 428 lib/cluster/corosync.c rc = quorum_trackstart(pcmk_quorum_handle, CS_TRACK_CHANGES | CS_TRACK_CURRENT); rc 429 lib/cluster/corosync.c if (rc != CS_OK) { rc 430 lib/cluster/corosync.c crm_err("Could not setup Quorum API notifications: %d", rc); rc 439 lib/cluster/corosync.c if (rc != CS_OK) { rc 498 lib/cluster/corosync.c int rc = CS_OK; rc 501 lib/cluster/corosync.c rc = pcmk__init_cmap(&handle); rc 503 lib/cluster/corosync.c switch(rc) { rc 507 lib/cluster/corosync.c crm_debug("Failed to initialize the cmap API: Permission denied (%d)", rc); rc 515 lib/cluster/corosync.c pcmk__cs_err_str(rc), rc); rc 562 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 573 lib/cluster/corosync.c rc = pcmk__init_cmap(&cmap_handle); rc 574 lib/cluster/corosync.c if (rc != CS_OK) { rc 576 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 581 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 583 lib/cluster/corosync.c if (rc != CS_OK) { rc 584 lib/cluster/corosync.c crm_warn("Could not connect to Cluster Configuration Database API, error %d", rc); rc 588 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); rc 589 lib/cluster/corosync.c if (rc != CS_OK) { rc 591 lib/cluster/corosync.c cs_strerror(rc), rc); rc 617 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &nodeid); rc 620 lib/cluster/corosync.c if (rc != CS_OK) { rc 675 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 682 lib/cluster/corosync.c rc = pcmk__init_cmap(&handle); rc 683 lib/cluster/corosync.c if (rc != CS_OK) { rc 685 lib/cluster/corosync.c cs_strerror(rc), rc); rc 689 lib/cluster/corosync.c rc = cmap_fd_get(handle, &fd); rc 690 lib/cluster/corosync.c if (rc != CS_OK) { rc 692 lib/cluster/corosync.c cs_strerror(rc), rc); rc 710 lib/cluster/corosync.c rc = cmap_get_string(handle, "totem.cluster_name", &cluster_name); rc 711 lib/cluster/corosync.c if (rc != CS_OK) { rc 712 lib/cluster/corosync.c crm_info("Cannot get totem.cluster_name: %s (%d)", cs_strerror(rc), rc); rc 741 lib/cluster/corosync.c int rc = pcmk_ok; rc 777 lib/cluster/corosync.c rc = crm_ipc_is_authentic_process(fd, (uid_t) 0, (gid_t) 0, rc 779 lib/cluster/corosync.c if (rc == 0) { rc 786 lib/cluster/corosync.c } else if (rc < 0) { rc 789 lib/cluster/corosync.c pcmk_strerror(rc), rc); rc 78 lib/cluster/cpg.c #define cs_repeat(rc, counter, max, code) do { \ rc 79 lib/cluster/cpg.c rc = code; \ rc 80 lib/cluster/cpg.c if ((rc == CS_ERR_TRY_AGAIN) || (rc == CS_ERR_QUEUE_FULL)) { \ rc 119 lib/cluster/cpg.c cs_error_t rc = CS_OK; rc 136 lib/cluster/cpg.c cs_repeat(rc, retries, 5, cpg_model_initialize(&local_handle, CPG_MODEL_V1, (cpg_model_data_t *)&cpg_model_info, NULL)); rc 137 lib/cluster/cpg.c if (rc != CS_OK) { rc 139 lib/cluster/cpg.c cs_strerror(rc), rc); rc 143 lib/cluster/cpg.c rc = cpg_fd_get(local_handle, &fd); rc 144 lib/cluster/cpg.c if (rc != CS_OK) { rc 146 lib/cluster/cpg.c cs_strerror(rc), rc); rc 165 lib/cluster/cpg.c if (rc == CS_OK) { rc 168 lib/cluster/cpg.c cs_repeat(rc, retries, 5, cpg_local_get(local_handle, &local_nodeid)); rc 171 lib/cluster/cpg.c if (rc != CS_OK) { rc 173 lib/cluster/cpg.c pcmk__cs_err_str(rc), rc); rc 215 lib/cluster/cpg.c cs_error_t rc = 0; rc 240 lib/cluster/cpg.c rc = cpg_mcast_joined(*handle, CPG_TYPE_AGREED, iov, 1); rc 241 lib/cluster/cpg.c if (rc != CS_OK) { rc 257 lib/cluster/cpg.c sent, pcmk__plural_s(sent), queue_len, pcmk__cs_err_str(rc), rc 258 lib/cluster/cpg.c (int) rc); rc 262 lib/cluster/cpg.c if (rc != CS_OK) { rc 281 lib/cluster/cpg.c cs_error_t rc = CS_OK; rc 284 lib/cluster/cpg.c rc = cpg_dispatch(cluster->cpg_handle, CS_DISPATCH_ONE); rc 285 lib/cluster/cpg.c if (rc != CS_OK) { rc 287 lib/cluster/cpg.c pcmk__cs_err_str(rc), rc); rc 497 lib/cluster/cpg.c int rc = BZ_OK; rc 507 lib/cluster/cpg.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &new_size, msg->data, msg->compressed_size, 1, 0); rc 509 lib/cluster/cpg.c if (rc != BZ_OK) { rc 511 lib/cluster/cpg.c bz2_strerror(rc), rc); rc 516 lib/cluster/cpg.c CRM_ASSERT(rc == BZ_OK); rc 787 lib/cluster/cpg.c cs_error_t rc; rc 821 lib/cluster/cpg.c cs_repeat(rc, retries, 30, cpg_model_initialize(&handle, CPG_MODEL_V1, (cpg_model_data_t *)&cpg_model_info, NULL)); rc 822 lib/cluster/cpg.c if (rc != CS_OK) { rc 824 lib/cluster/cpg.c cs_strerror(rc), rc); rc 828 lib/cluster/cpg.c rc = cpg_fd_get(handle, &fd); rc 829 lib/cluster/cpg.c if (rc != CS_OK) { rc 831 lib/cluster/cpg.c cs_strerror(rc), rc); rc 842 lib/cluster/cpg.c rc = CS_ERR_ACCESS; rc 847 lib/cluster/cpg.c rc = CS_ERR_ACCESS; rc 860 lib/cluster/cpg.c cs_repeat(rc, retries, 30, cpg_join(handle, &cluster->group)); rc 861 lib/cluster/cpg.c if (rc != CS_OK) { rc 862 lib/cluster/cpg.c crm_err("Could not join the CPG group '%s': %d", message_name, rc); rc 871 lib/cluster/cpg.c if (rc != CS_OK) { rc 894 lib/cluster/cpg.c gboolean rc = TRUE; rc 898 lib/cluster/cpg.c rc = send_cluster_text(crm_class_cluster, data, FALSE, node, dest); rc 900 lib/cluster/cpg.c return rc; rc 223 lib/cluster/election.c int rc = 0; rc 227 lib/cluster/election.c rc = getrusage(RUSAGE_SELF, &info); rc 232 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 197 lib/common/alerts.c int rc = -1; rc 205 lib/common/alerts.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 206 lib/common/alerts.c if (rc < pcmk_ok) { rc 207 lib/common/alerts.c crm_trace("Ignore failed CIB update: %s (%d)", pcmk_strerror(rc), rc); rc 54 lib/common/attrd_client.c int rc = -ENOTCONN; // initially handled as legacy return code rc 78 lib/common/attrd_client.c rc = crm_ipc_send(ipc, attrd_op, flags, 0, NULL); rc 86 lib/common/attrd_client.c } else if (rc > 0) { rc 89 lib/common/attrd_client.c } else if (rc == -EAGAIN || rc == -EALREADY) { rc 101 lib/common/attrd_client.c if (rc > 0) { rc 102 lib/common/attrd_client.c rc = pcmk_ok; rc 104 lib/common/attrd_client.c return pcmk_legacy2rc(rc); rc 138 lib/common/attrd_client.c int rc = pcmk_rc_ok; rc 192 lib/common/attrd_client.c rc = EINVAL; rc 209 lib/common/attrd_client.c rc = send_attrd_op(ipc, update); rc 216 lib/common/attrd_client.c display_command, display_host, pcmk_rc_str(rc), rc); rc 219 lib/common/attrd_client.c name, value, display_host, pcmk_rc_str(rc), rc); rc 221 lib/common/attrd_client.c return rc; rc 244 lib/common/attrd_client.c int rc = pcmk_rc_ok; rc 257 lib/common/attrd_client.c rc = send_attrd_op(ipc, clear_op); rc 269 lib/common/attrd_client.c (host? host : "all nodes"), pcmk_rc_str(rc), rc); rc 270 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 143 lib/common/io.c int rc; rc 154 lib/common/io.c rc = errno; rc 156 lib/common/io.c series_file, strerror(rc)); rc 158 lib/common/io.c return rc; rc 162 lib/common/io.c rc = (errno == 0)? pcmk_rc_unknown_format : errno; rc 164 lib/common/io.c series_file, pcmk_rc_str(rc)); rc 166 lib/common/io.c return rc; rc 190 lib/common/io.c int rc = 0; rc 207 lib/common/io.c rc = fprintf(file_strm, "%u", sequence); rc 208 lib/common/io.c if (rc < 0) { rc 241 lib/common/io.c int rc = pcmk_rc_ok; rc 248 lib/common/io.c rc = errno; rc 251 lib/common/io.c return rc; rc 435 lib/common/io.c int rc = pcmk_rc_ok; rc 443 lib/common/io.c rc = errno; rc 449 lib/common/io.c rc = errno; rc 458 lib/common/io.c rc = errno; rc 466 lib/common/io.c rc = EIO; rc 474 lib/common/io.c return rc; rc 489 lib/common/io.c int rc = 0; rc 496 lib/common/io.c rc = EIO; rc 499 lib/common/io.c rc = errno; rc 502 lib/common/io.c rc = errno; rc 505 lib/common/io.c return rc; rc 653 lib/common/io.c int rc = pcmk__build_path(path_c, mode); rc 655 lib/common/io.c if (rc != pcmk_rc_ok) { rc 657 lib/common/io.c path_c, pcmk_rc_str(rc)); rc 395 lib/common/ipc_client.c int rc; rc 403 lib/common/ipc_client.c rc = poll(&pollfd, 1, timeout_ms); rc 404 lib/common/ipc_client.c if (rc < 0) { rc 406 lib/common/ipc_client.c } else if (rc == 0) { rc 439 lib/common/ipc_client.c int rc; rc 446 lib/common/ipc_client.c rc = pcmk__add_mainloop_ipc(api->ipc, G_PRIORITY_DEFAULT, api, rc 448 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 449 lib/common/ipc_client.c return rc; rc 463 lib/common/ipc_client.c int rc; rc 466 lib/common/ipc_client.c rc = errno; rc 468 lib/common/ipc_client.c return rc; rc 486 lib/common/ipc_client.c int rc = pcmk_rc_ok; rc 510 lib/common/ipc_client.c rc = connect_with_main_loop(api); rc 515 lib/common/ipc_client.c rc = connect_without_main_loop(api); rc 518 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 519 lib/common/ipc_client.c return rc; rc 523 lib/common/ipc_client.c rc = api->cmds->post_connect(api); rc 524 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 528 lib/common/ipc_client.c return rc; rc 618 lib/common/ipc_client.c int rc; rc 636 lib/common/ipc_client.c rc = crm_ipc_send(api->ipc, request, flags, 0, &reply); rc 638 lib/common/ipc_client.c if (rc < 0) { rc 639 lib/common/ipc_client.c return pcmk_legacy2rc(rc); rc 640 lib/common/ipc_client.c } else if (rc == 0) { rc 651 lib/common/ipc_client.c rc = crm_ipc_read(api->ipc); rc 653 lib/common/ipc_client.c if (rc == -EAGAIN) { rc 655 lib/common/ipc_client.c } else if (rc == -ENOMSG || rc == pcmk_ok) { rc 657 lib/common/ipc_client.c } else if (rc < 0) { rc 658 lib/common/ipc_client.c return -rc; rc 661 lib/common/ipc_client.c rc = dispatch_ipc_data(crm_ipc_buffer(api->ipc), api); rc 663 lib/common/ipc_client.c if (rc == pcmk_rc_ok) { rc 665 lib/common/ipc_client.c } else if (rc == EINPROGRESS) { rc 749 lib/common/ipc_client.c int rc = 0; rc 763 lib/common/ipc_client.c rc = pcmk__send_ipc_request(api, request); rc 767 lib/common/ipc_client.c pcmk_ipc_name(api, true), node_name, (unsigned long) nodeid, rc); rc 768 lib/common/ipc_client.c return rc; rc 972 lib/common/ipc_client.c bool rc = FALSE; rc 987 lib/common/ipc_client.c rc = qb_ipcc_is_connected(client->ipc); rc 988 lib/common/ipc_client.c if (rc == FALSE) { rc 991 lib/common/ipc_client.c return rc; rc 1004 lib/common/ipc_client.c int rc; rc 1013 lib/common/ipc_client.c rc = poll(&(client->pfd), 1, 0); rc 1014 lib/common/ipc_client.c return (rc < 0)? -errno : rc; rc 1024 lib/common/ipc_client.c int rc = 0; rc 1033 lib/common/ipc_client.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + sizeof(pcmk__ipc_header_t), &size_u, rc 1036 lib/common/ipc_client.c if (rc != BZ_OK) { rc 1038 lib/common/ipc_client.c bz2_strerror(rc), rc); rc 1078 lib/common/ipc_client.c int rc = crm_ipc_decompress(client); rc 1080 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1081 lib/common/ipc_client.c return pcmk_rc2legacy(rc); rc 1148 lib/common/ipc_client.c int rc = pcmk_rc_ok; rc 1159 lib/common/ipc_client.c rc = crm_ipc_decompress(client); rc 1160 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1161 lib/common/ipc_client.c return rc; rc 1190 lib/common/ipc_client.c rc = (int) -*bytes; // System errno rc 1192 lib/common/ipc_client.c return rc; rc 1212 lib/common/ipc_client.c int rc = 0; rc 1252 lib/common/ipc_client.c rc = pcmk__ipc_prepare_iov(id, message, client->max_buf_size, &iov, &bytes); rc 1253 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1255 lib/common/ipc_client.c client->server_name, pcmk_rc_str(rc), rc); rc 1256 lib/common/ipc_client.c return pcmk_rc2legacy(rc); rc 1295 lib/common/ipc_client.c rc = (int) qb_rc; // Negative of system errno, or bytes sent rc 1305 lib/common/ipc_client.c rc = internal_ipc_get_reply(client, header->qb.id, ms_timeout, &bytes); rc 1306 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1315 lib/common/ipc_client.c rc = (int) bytes; // Negative system errno, or size of reply received rc 1323 lib/common/ipc_client.c rc = (int) qb_rc; // Negative system errno, or size of reply received rc 1326 lib/common/ipc_client.c if (rc > 0) { rc 1330 lib/common/ipc_client.c rc, hdr->qb.id, client->server_name, header->qb.id, rc 1339 lib/common/ipc_client.c client->server_name, header->qb.id, rc); rc 1345 lib/common/ipc_client.c CRM_XS " rc=%d", client->server_name, header->qb.id, rc); rc 1347 lib/common/ipc_client.c } else if (rc == -ETIMEDOUT) { rc 1349 lib/common/ipc_client.c client->server_name, header->qb.id, pcmk_strerror(rc), rc 1350 lib/common/ipc_client.c ms_timeout, rc); rc 1353 lib/common/ipc_client.c } else if (rc <= 0) { rc 1356 lib/common/ipc_client.c ((rc == 0)? "No bytes sent" : pcmk_strerror(rc)), rc); rc 1360 lib/common/ipc_client.c return rc; rc 1463 lib/common/ipc_client.c int rc = pcmk_rc_ipc_unresponsive; rc 1479 lib/common/ipc_client.c rc = pcmk_rc_ipc_unresponsive; rc 1490 lib/common/ipc_client.c rc = pcmk_rc_ipc_unresponsive; rc 1500 lib/common/ipc_client.c rc = (int) -qb_rc; // System errno rc 1502 lib/common/ipc_client.c name, pcmk_rc_str(rc), rc); rc 1513 lib/common/ipc_client.c rc = pcmk_rc_ipc_unauthorized; rc 1518 lib/common/ipc_client.c rc = auth_rc; rc 1520 lib/common/ipc_client.c CRM_XS " rc=%d", name, pcmk_rc_str(rc), rc); rc 1528 lib/common/ipc_client.c rc = pcmk_rc_ok; rc 1550 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 313 lib/common/ipc_controld.c int rc; rc 318 lib/common/ipc_controld.c rc = pcmk__send_ipc_request(api, request); rc 319 lib/common/ipc_controld.c if ((rc == pcmk_rc_ok) && reply_is_expected) { rc 324 lib/common/ipc_controld.c return rc; rc 356 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 370 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 373 lib/common/ipc_controld.c return rc; rc 389 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 399 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 401 lib/common/ipc_controld.c return rc; rc 417 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 423 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 425 lib/common/ipc_controld.c return rc; rc 440 lib/common/ipc_controld.c int rc = EINVAL; rc 445 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 448 lib/common/ipc_controld.c return rc; rc 459 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 507 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 510 lib/common/ipc_controld.c return rc; rc 219 lib/common/ipc_pacemakerd.c int rc; rc 233 lib/common/ipc_pacemakerd.c rc = pcmk__send_ipc_request(api, cmd); rc 234 lib/common/ipc_pacemakerd.c if (rc != pcmk_rc_ok) { rc 236 lib/common/ipc_pacemakerd.c pcmk_rc_str(rc), rc); rc 240 lib/common/ipc_pacemakerd.c rc = ENOMSG; rc 243 lib/common/ipc_pacemakerd.c return rc; rc 145 lib/common/ipc_schedulerd.c int rc; rc 159 lib/common/ipc_schedulerd.c rc = pcmk__send_ipc_request(api, cmd); rc 160 lib/common/ipc_schedulerd.c if (rc != pcmk_rc_ok) { rc 162 lib/common/ipc_schedulerd.c pcmk_rc_str(rc), rc); rc 168 lib/common/ipc_schedulerd.c rc = ENOMSG; rc 171 lib/common/ipc_schedulerd.c return rc; rc 420 lib/common/ipc_server.c int rc = 0; rc 427 lib/common/ipc_server.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &size_u, text, header->size_compressed, 1, 0); rc 430 lib/common/ipc_server.c if (rc != BZ_OK) { rc 432 lib/common/ipc_server.c bz2_strerror(rc), rc); rc 486 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 492 lib/common/ipc_server.c return rc; rc 497 lib/common/ipc_server.c return rc; rc 517 lib/common/ipc_server.c rc = (int) -qb_rc; rc 539 lib/common/ipc_server.c pcmk_rc_str(rc), (long long) qb_rc); rc 558 lib/common/ipc_server.c return rc; rc 570 lib/common/ipc_server.c return rc; rc 673 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 720 lib/common/ipc_server.c rc = (int) -qb_rc; rc 724 lib/common/ipc_server.c header->qb.id, c->pid, pcmk_rc_str(rc), rc 738 lib/common/ipc_server.c rc = crm_ipcs_flush_events(c); rc 743 lib/common/ipc_server.c if ((rc == EPIPE) || (rc == ENOTCONN)) { rc 746 lib/common/ipc_server.c return rc; rc 754 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 759 lib/common/ipc_server.c rc = pcmk__ipc_prepare_iov(request, message, crm_ipc_default_buffer_size(), rc 761 lib/common/ipc_server.c if (rc == pcmk_rc_ok) { rc 763 lib/common/ipc_server.c rc = pcmk__ipc_send_iov(c, iov, flags); rc 767 lib/common/ipc_server.c c->pid, pcmk_rc_str(rc), rc); rc 769 lib/common/ipc_server.c return rc; rc 819 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 826 lib/common/ipc_server.c rc = pcmk__ipc_send_xml(c, request, ack, flags); rc 829 lib/common/ipc_server.c return rc; rc 610 lib/common/iso8601.c int rc; rc 618 lib/common/iso8601.c rc = sscanf(time_str, "%d:%d:%d", &hour, &minute, &second); rc 619 lib/common/iso8601.c if (rc == 1) { rc 620 lib/common/iso8601.c rc = sscanf(time_str, "%2d%2d%2d", &hour, &minute, &second); rc 622 lib/common/iso8601.c if (rc == 0) { rc 768 lib/common/iso8601.c int rc = 0; rc 797 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d-%d", &year, &month, &day); rc 798 lib/common/iso8601.c if (rc == 1) { rc 800 lib/common/iso8601.c rc = sscanf(date_str, "%4d%2d%2d", &year, &month, &day); rc 802 lib/common/iso8601.c if (rc == 3) { rc 822 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d", &year, &day); rc 823 lib/common/iso8601.c if (rc == 2) { rc 838 lib/common/iso8601.c rc = sscanf(date_str, "%d-W%d-%d", &year, &week, &day); rc 839 lib/common/iso8601.c if (rc == 3) { rc 1009 lib/common/iso8601.c int an_int = 0, rc; rc 1021 lib/common/iso8601.c rc = parse_int(current, 10, 0, &an_int); rc 1022 lib/common/iso8601.c if (rc == 0) { rc 1027 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 208 lib/common/logging.c int rc; rc 217 lib/common/logging.c rc = pcmk_daemon_user(&pcmk_uid, &pcmk_gid); rc 218 lib/common/logging.c if (rc != pcmk_ok) { rc 219 lib/common/logging.c rc = pcmk_legacy2rc(rc); rc 221 lib/common/logging.c "unavailable: %s", filename, pcmk_rc_str(rc)); rc 261 lib/common/logging.c int rc = chown_logfile(filename, logfd); rc 263 lib/common/logging.c if (rc != pcmk_rc_ok) { rc 264 lib/common/logging.c return rc; rc 319 lib/common/logging.c int rc = pcmk_rc_ok; rc 348 lib/common/logging.c rc = errno; rc 350 lib/common/logging.c filename, strerror(rc), geteuid(), getegid()); rc 351 lib/common/logging.c return rc; rc 354 lib/common/logging.c rc = set_logfile_permissions(filename, logfile); rc 355 lib/common/logging.c if (rc != pcmk_rc_ok) { rc 357 lib/common/logging.c filename, strerror(rc)); rc 359 lib/common/logging.c return rc; rc 109 lib/common/mainloop.c gboolean rc = G_SOURCE_CONTINUE; rc 125 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 128 lib/common/mainloop.c return rc; rc 681 lib/common/mainloop.c int rc = 0; rc 691 lib/common/mainloop.c crm_err("Could not create %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); rc 703 lib/common/mainloop.c rc = qb_ipcs_run(server); rc 704 lib/common/mainloop.c if (rc < 0) { rc 705 lib/common/mainloop.c crm_err("Could not start %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); rc 749 lib/common/mainloop.c gboolean rc = G_SOURCE_CONTINUE; rc 773 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 777 lib/common/mainloop.c } while ((rc == G_SOURCE_CONTINUE) && (read_rc > 0) && --max > 0); rc 785 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 794 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 799 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 835 lib/common/mainloop.c return rc; rc 901 lib/common/mainloop.c int rc = errno; rc 903 lib/common/mainloop.c return rc; rc 908 lib/common/mainloop.c int rc = errno; rc 911 lib/common/mainloop.c return rc; rc 941 lib/common/mainloop.c int rc = pcmk__add_mainloop_ipc(ipc, priority, userdata, callbacks, rc 944 lib/common/mainloop.c if (rc != pcmk_rc_ok) { rc 947 lib/common/mainloop.c name, pcmk_rc_str(rc)); rc 950 lib/common/mainloop.c if (rc > 0) { rc 951 lib/common/mainloop.c errno = rc; rc 1082 lib/common/mainloop.c int rc; rc 1085 lib/common/mainloop.c rc = kill(child->pid, SIGKILL); rc 1088 lib/common/mainloop.c rc = kill(-child->pid, SIGKILL); rc 1091 lib/common/mainloop.c if (rc < 0) { rc 1104 lib/common/mainloop.c int rc = 0; rc 1112 lib/common/mainloop.c rc = child_kill_helper(child); rc 1113 lib/common/mainloop.c if (rc == -ESRCH) { rc 1128 lib/common/mainloop.c int rc = 0; rc 1135 lib/common/mainloop.c rc = waitpid(child->pid, &status, flags); rc 1136 lib/common/mainloop.c if (rc == 0) { // WNOHANG in flags, and child status is not available rc 1141 lib/common/mainloop.c } else if (rc != child->pid) { rc 1223 lib/common/mainloop.c int waitflags = 0, rc = 0; rc 1236 lib/common/mainloop.c rc = child_kill_helper(match); rc 1237 lib/common/mainloop.c if(rc == -ESRCH) { rc 1247 lib/common/mainloop.c } else if(rc != 0) { rc 119 lib/common/nvpair.c int rc = 0; rc 129 lib/common/nvpair.c rc = strcmp(pair_a->name, pair_b->name); rc 130 lib/common/nvpair.c if (rc < 0) { rc 132 lib/common/nvpair.c } else if (rc > 0) { rc 962 lib/common/nvpair.c int ret, rc; rc 976 lib/common/nvpair.c rc = crm_str_to_boolean(xml_value, &ret); rc 977 lib/common/nvpair.c if (rc == 1) { rc 989 lib/common/nvpair.c int rc; rc 991 lib/common/nvpair.c rc = pcmk__xe_get_bool_attr(node, name, &value); rc 992 lib/common/nvpair.c return rc == pcmk_rc_ok && value == true; rc 140 lib/common/operations.c int rc = 0; rc 147 lib/common/operations.c rc = regcomp(notify_migrate_re, "^(.*)_(migrate_(from|to)|(pre|post)_notify_([a-z]+|migrate_(from|to)))_([0-9]+)$", rc 149 lib/common/operations.c CRM_ASSERT(rc == 0); rc 152 lib/common/operations.c rc = regexec(notify_migrate_re, key, nmatch, pmatch, 0); rc 153 lib/common/operations.c if (rc == REG_NOMATCH) { rc 428 lib/common/operations.c int rc = 0; rc 431 lib/common/operations.c decode_transition_key(op->user_data, NULL, NULL, NULL, &rc); rc 433 lib/common/operations.c return rc; rc 454 lib/common/operations.c if (target_rc != op->rc) { rc 566 lib/common/operations.c int rc = PCMK_OCF_OK; rc 573 lib/common/operations.c crm_element_value_int(xml_op, XML_LRM_ATTR_RC, &rc); rc 575 lib/common/operations.c return rc == PCMK_OCF_NOT_INSTALLED || rc == PCMK_OCF_INVALID_PARAM || rc 121 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 392 lib/common/output_text.c int rc = 0; rc 400 lib/common/output_text.c rc = tcgetattr(0, &settings); rc 401 lib/common/output_text.c if (rc == 0) { rc 404 lib/common/output_text.c rc = tcsetattr(0, TCSANOW, &settings); rc 408 lib/common/output_text.c if (rc == 0) { rc 417 lib/common/output_text.c rc = scanf("%ms", dest); rc 420 lib/common/output_text.c rc = scanf("%1023s", *dest); rc 425 lib/common/output_text.c if (rc < 1) { rc 929 lib/common/patchset.c int rc = pcmk_rc_ok; rc 940 lib/common/patchset.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 950 lib/common/patchset.c rc = ENOTUNIQ; rc 955 lib/common/patchset.c if (rc == pcmk_rc_ok) { rc 960 lib/common/patchset.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 971 lib/common/patchset.c rc = ENOTUNIQ; rc 977 lib/common/patchset.c return rc; rc 1034 lib/common/patchset.c int rc; rc 1058 lib/common/patchset.c rc = sscanf(current, "/%[^/]%s", section, remainder); rc 1059 lib/common/patchset.c if (rc > 0) { rc 1067 lib/common/patchset.c if ((rc == 1) && (target_position >= 0)) { rc 1089 lib/common/patchset.c } while ((rc == 2) && target); rc 1144 lib/common/patchset.c int rc = pcmk_rc_ok; rc 1175 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1205 lib/common/patchset.c rc = ENOMSG; rc 1220 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1315 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1321 lib/common/patchset.c return rc; rc 1328 lib/common/patchset.c int rc = pcmk_ok; rc 1333 lib/common/patchset.c return rc; rc 1340 lib/common/patchset.c rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset, format)); rc 1341 lib/common/patchset.c if (rc != pcmk_ok) { rc 1342 lib/common/patchset.c return rc; rc 1351 lib/common/patchset.c if (rc == pcmk_ok) { rc 1354 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset)); rc 1357 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset)); rc 1361 lib/common/patchset.c rc = -EINVAL; rc 1365 lib/common/patchset.c if ((rc == pcmk_ok) && (digest != NULL)) { rc 1381 lib/common/patchset.c rc = -pcmk_err_diff_failed; rc 1401 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 78 lib/common/pid.c int rc = kill(pid,0); /* check once again - filter out races */ rc 80 lib/common/pid.c if ((rc < 0) && (errno == ESRCH)) { rc 103 lib/common/pid.c exe_path[rc] = '\0'; rc 106 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), CRM_DAEMON_DIR"/%s", rc 109 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), "%s", daemon); rc 112 lib/common/pid.c if (rc > 0 && rc < sizeof(myexe_path) && !strcmp(exe_path, myexe_path)) { rc 136 lib/common/pid.c int rc = pcmk_rc_unknown_format; rc 154 lib/common/pid.c rc = errno; rc 160 lib/common/pid.c rc = ESRCH; rc 162 lib/common/pid.c rc = pcmk_rc_ok; rc 170 lib/common/pid.c return rc; rc 190 lib/common/pid.c int rc = pcmk__read_pidfile(filename, &pidfile_pid); rc 196 lib/common/pid.c if (rc != pcmk_rc_ok) { rc 199 lib/common/pid.c rc = ENOENT; rc 203 lib/common/pid.c rc = pcmk_rc_ok; rc 208 lib/common/pid.c rc = ENOENT; rc 212 lib/common/pid.c rc = EEXIST; rc 215 lib/common/pid.c return rc; rc 232 lib/common/pid.c int rc = 0; rc 235 lib/common/pid.c rc = pcmk__pidfile_matches(filename, 0, name, NULL); rc 236 lib/common/pid.c if ((rc != pcmk_rc_ok) && (rc != ENOENT)) { rc 238 lib/common/pid.c return rc; rc 247 lib/common/pid.c rc = write(fd, buf, LOCKSTRLEN); rc 250 lib/common/pid.c if (rc != LOCKSTRLEN) { rc 255 lib/common/pid.c rc = pcmk__pidfile_matches(filename, mypid, name, NULL); rc 256 lib/common/pid.c if (rc != pcmk_rc_ok) { rc 260 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 219 lib/common/remote.c int rc = GNUTLS_E_SUCCESS; rc 240 lib/common/remote.c rc = GNUTLS_E_MEMORY_ERROR; rc 244 lib/common/remote.c rc = gnutls_init(session, conn_type); rc 245 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 253 lib/common/remote.c rc = gnutls_priority_set_direct(*session, prio, NULL); rc 254 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 264 lib/common/remote.c rc = gnutls_credentials_set(*session, cred_type, credentials); rc 265 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 276 lib/common/remote.c gnutls_strerror(rc), rc, prio); rc 302 lib/common/remote.c int rc = GNUTLS_E_SUCCESS; rc 305 lib/common/remote.c rc = gnutls_dh_params_init(dh_params); rc 306 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 313 lib/common/remote.c rc = GNUTLS_E_DH_PRIME_UNACCEPTABLE; rc 320 lib/common/remote.c rc = gnutls_dh_params_generate2(*dh_params, dh_bits); rc 321 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 329 lib/common/remote.c CRM_XS " rc=%d", gnutls_strerror(rc), rc); rc 347 lib/common/remote.c int rc = 0; rc 352 lib/common/remote.c rc = gnutls_handshake(*client->remote->tls_session); rc 353 lib/common/remote.c } while (rc == GNUTLS_E_INTERRUPTED); rc 355 lib/common/remote.c if (rc == GNUTLS_E_AGAIN) { rc 360 lib/common/remote.c } else if (rc != GNUTLS_E_SUCCESS) { rc 362 lib/common/remote.c CRM_XS " rc=%d", gnutls_strerror(rc), rc); rc 427 lib/common/remote.c int rc = errno; rc 437 lib/common/remote.c pcmk_rc_str(rc), rc, sock); rc 438 lib/common/remote.c return rc; rc 460 lib/common/remote.c int rc = pcmk_rc_ok; rc 462 lib/common/remote.c for (int lpc = 0; (lpc < iovs) && (rc == pcmk_rc_ok); lpc++) { rc 465 lib/common/remote.c rc = send_tls(remote->tls_session, &(iov[lpc])); rc 470 lib/common/remote.c rc = send_plaintext(remote->tcp_socket, &(iov[lpc])); rc 472 lib/common/remote.c rc = ESOCKTNOSUPPORT; rc 475 lib/common/remote.c return rc; rc 490 lib/common/remote.c int rc = pcmk_rc_ok; rc 519 lib/common/remote.c rc = remote_send_iovs(remote, iov, 2); rc 520 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 522 lib/common/remote.c pcmk_rc_str(rc), rc); rc 527 lib/common/remote.c return rc; rc 551 lib/common/remote.c int rc = 0; rc 558 lib/common/remote.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + header->payload_offset, &size_u, rc 562 lib/common/remote.c if (rc != BZ_OK && header->version > REMOTE_MSG_VERSION) { rc 568 lib/common/remote.c } else if (rc != BZ_OK) { rc 570 lib/common/remote.c bz2_strerror(rc), rc); rc 637 lib/common/remote.c int rc = 0; rc 663 lib/common/remote.c rc = poll(&fds, 1, timeout); rc 664 lib/common/remote.c } while (rc < 0 && errno == EINTR); rc 666 lib/common/remote.c if (rc < 0) { rc 669 lib/common/remote.c return (rc == 0)? ETIME : pcmk_rc_ok; rc 687 lib/common/remote.c int rc = pcmk_rc_ok; rc 712 lib/common/remote.c rc = EINTR; rc 714 lib/common/remote.c rc = EAGAIN; rc 718 lib/common/remote.c rc = EIO; rc 729 lib/common/remote.c rc = errno; rc 748 lib/common/remote.c } else if ((rc == EINTR) || (rc == EAGAIN)) { rc 750 lib/common/remote.c pcmk_rc_str(rc), rc); rc 760 lib/common/remote.c pcmk_rc_str(rc), rc); rc 793 lib/common/remote.c int rc = pcmk_rc_ok; rc 808 lib/common/remote.c rc = pcmk__remote_ready(remote, remaining_timeout); rc 810 lib/common/remote.c if (rc == ETIME) { rc 813 lib/common/remote.c return rc; rc 815 lib/common/remote.c } else if (rc != pcmk_rc_ok) { rc 817 lib/common/remote.c CRM_XS " rc=%d", pcmk_rc_str(rc), rc); rc 820 lib/common/remote.c rc = read_available_remote_data(remote); rc 821 lib/common/remote.c if (rc == pcmk_rc_ok) { rc 822 lib/common/remote.c return rc; rc 823 lib/common/remote.c } else if (rc == EAGAIN) { rc 827 lib/common/remote.c pcmk_rc_str(rc), rc); rc 832 lib/common/remote.c if ((rc == ENOTCONN) || (rc == ESOCKTNOSUPPORT)) { rc 833 lib/common/remote.c return rc; rc 846 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock); rc 854 lib/common/remote.c int rc; rc 861 lib/common/remote.c rc = pcmk_rc_ok; rc 869 lib/common/remote.c rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts); rc 871 lib/common/remote.c if (rc < 0) { // select() error rc 872 lib/common/remote.c rc = errno; rc 873 lib/common/remote.c if ((rc == EINPROGRESS) || (rc == EAGAIN)) { rc 877 lib/common/remote.c rc = ETIMEDOUT; rc 881 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 883 lib/common/remote.c } else if (rc == 0) { // select() timeout rc 889 lib/common/remote.c rc = ETIMEDOUT; rc 901 lib/common/remote.c rc = errno; rc 903 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 905 lib/common/remote.c rc = error; rc 907 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 909 lib/common/remote.c rc = pcmk_rc_ok; rc 915 lib/common/remote.c rc = EAGAIN; rc 919 lib/common/remote.c if (rc == pcmk_rc_ok) { rc 927 lib/common/remote.c cb_data->callback(cb_data->userdata, rc, cb_data->sock); rc 954 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) rc 956 lib/common/remote.c int rc = 0; rc 961 lib/common/remote.c rc = pcmk__set_nonblocking(sock); rc 962 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 964 lib/common/remote.c pcmk_rc_str(rc), rc); rc 965 lib/common/remote.c return rc; rc 968 lib/common/remote.c rc = connect(sock, addr, addrlen); rc 969 lib/common/remote.c if (rc < 0 && (errno != EINPROGRESS) && (errno != EAGAIN)) { rc 970 lib/common/remote.c rc = errno; rc 972 lib/common/remote.c pcmk_rc_str(rc), rc); rc 973 lib/common/remote.c return rc; rc 982 lib/common/remote.c if (rc == 0) { rc 1027 lib/common/remote.c int rc = connect(sock, addr, addrlen); rc 1029 lib/common/remote.c if (rc < 0) { rc 1030 lib/common/remote.c rc = errno; rc 1032 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1033 lib/common/remote.c return rc; rc 1036 lib/common/remote.c rc = pcmk__set_nonblocking(sock); rc 1037 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 1039 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1040 lib/common/remote.c return rc; rc 1065 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) rc 1072 lib/common/remote.c int rc; rc 1082 lib/common/remote.c rc = getaddrinfo(server, NULL, &hints, &res); rc 1083 lib/common/remote.c if (rc != 0) { rc 1085 lib/common/remote.c server, gai_strerror(rc)); rc 1086 lib/common/remote.c rc = ENOTCONN; rc 1091 lib/common/remote.c rc = ENOTCONN; rc 1110 lib/common/remote.c rc = errno; rc 1112 lib/common/remote.c "%s " CRM_XS " rc=%d", server, port, pcmk_rc_str(rc), rc); rc 1142 lib/common/remote.c rc = ENOTCONN; rc 1151 lib/common/remote.c return rc; rc 1196 lib/common/remote.c int rc; rc 1205 lib/common/remote.c rc = errno; rc 1207 lib/common/remote.c CRM_XS " rc=%d", pcmk_rc_str(rc), rc); rc 1208 lib/common/remote.c return rc; rc 1213 lib/common/remote.c rc = pcmk__set_nonblocking(*csock); rc 1214 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 1216 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1219 lib/common/remote.c return rc; rc 1227 lib/common/remote.c rc = setsockopt(*csock, SOL_TCP, TCP_USER_TIMEOUT, rc 1229 lib/common/remote.c if (rc < 0) { rc 1230 lib/common/remote.c rc = errno; rc 1232 lib/common/remote.c "%s " CRM_XS " rc=%d", optval, pcmk_rc_str(rc), rc); rc 1235 lib/common/remote.c return rc; rc 1240 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 return pcmk_rc_str(pcmk_legacy2rc(rc)); rc 210 lib/common/results.c pcmk_rc_name(int rc) rc 212 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < PCMK__N_RC)) { rc 213 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].name; rc 215 lib/common/results.c switch (rc) { rc 370 lib/common/results.c pcmk_rc_str(int rc) rc 372 lib/common/results.c if (rc == pcmk_rc_ok) { rc 375 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < PCMK__N_RC)) { rc 376 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].desc; rc 378 lib/common/results.c if (rc < 0) { rc 383 lib/common/results.c switch (rc) { rc 408 lib/common/results.c default: return strerror(rc); rc 415 lib/common/results.c pcmk_rc2legacy(int rc) rc 417 lib/common/results.c if (rc >= 0) { rc 418 lib/common/results.c return -rc; // OK or system errno rc 420 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < PCMK__N_RC)) { rc 421 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].legacy_rc; rc 559 lib/common/results.c crm_errno2exit(int rc) rc 561 lib/common/results.c rc = abs(rc); // Convenience for functions that return -errno rc 562 lib/common/results.c switch (rc) { rc 590 lib/common/results.c return pcmk_rc2exitc(rc); // system errno rc 602 lib/common/results.c pcmk_rc2exitc(int rc) rc 604 lib/common/results.c switch (rc) { rc 715 lib/common/results.c pcmk_rc2ocf(int rc) rc 717 lib/common/results.c switch (rc) { rc 742 lib/common/results.c bz2_strerror(int rc) rc 745 lib/common/results.c switch (rc) { rc 775 lib/common/results.c crm_exit(crm_exit_t rc) rc 780 lib/common/results.c if ((((int) rc) < 0) || (((int) rc) > CRM_EX_MAX)) { rc 781 lib/common/results.c rc = CRM_EX_ERROR; rc 790 lib/common/results.c crm_info("Exiting %s " CRM_XS " with status %d", crm_system_name, rc); rc 793 lib/common/results.c crm_trace("Exiting with status %d", rc); rc 797 lib/common/results.c exit(rc); rc 120 lib/common/schemas.c int rc = schema_scanf(filename, "pacemaker-", *version, ".rng"); rc 122 lib/common/schemas.c return (rc == 2); rc 128 lib/common/schemas.c int rc = 0; rc 142 lib/common/schemas.c rc = 1; rc 145 lib/common/schemas.c return rc; rc 270 lib/common/schemas.c int rc = pcmk_rc_ok; rc 324 lib/common/schemas.c rc = ENOENT; rc 333 lib/common/schemas.c return rc; rc 463 lib/common/schemas.c int rc = 0; rc 518 lib/common/schemas.c rc = xmlRelaxNGValidateDoc(ctx->valid, doc); rc 519 lib/common/schemas.c if (rc > 0) { rc 522 lib/common/schemas.c } else if (rc < 0) { rc 631 lib/common/schemas.c bool rc, sl_backup = silent_logging; rc 633 lib/common/schemas.c rc = validate_with(xml, method, TRUE); rc 635 lib/common/schemas.c return rc; rc 675 lib/common/schemas.c gboolean rc = FALSE; rc 688 lib/common/schemas.c rc = validate_xml(xml, NULL, FALSE); rc 694 lib/common/schemas.c return rc; rc 1047 lib/common/schemas.c int lpc = 0, match = -1, rc = pcmk_ok; rc 1097 lib/common/schemas.c rc = -pcmk_err_schema_validation; rc 1105 lib/common/schemas.c rc = pcmk_ok; rc 1108 lib/common/schemas.c if (rc == pcmk_ok) { rc 1112 lib/common/schemas.c if (rc == pcmk_ok && transform) { rc 1147 lib/common/schemas.c rc = -pcmk_err_transform_failed; rc 1156 lib/common/schemas.c rc = pcmk_ok; rc 1163 lib/common/schemas.c rc = -pcmk_err_schema_validation; rc 1169 lib/common/schemas.c if (transform == FALSE || rc != pcmk_ok) { rc 1184 lib/common/schemas.c return rc; rc 1190 lib/common/schemas.c gboolean rc = TRUE; rc 1251 lib/common/schemas.c rc = FALSE; rc 1293 lib/common/schemas.c return rc; rc 48 lib/common/strings.c int rc = pcmk_rc_ok; rc 54 lib/common/strings.c rc = EOVERFLOW; rc 59 lib/common/strings.c rc = errno; rc 62 lib/common/strings.c "%s", text, default_value, pcmk_rc_str(rc)); rc 65 lib/common/strings.c rc = EINVAL; rc 75 lib/common/strings.c errno = rc; rc 83 lib/common/strings.c return rc; rc 100 lib/common/strings.c int rc = pcmk_rc_ok; rc 103 lib/common/strings.c rc = scan_ll(text, &local_result, default_value, NULL); rc 104 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 111 lib/common/strings.c return rc; rc 129 lib/common/strings.c int rc; rc 132 lib/common/strings.c rc = pcmk__scan_ll(text, &result_ll, (long long) minimum); rc 141 lib/common/strings.c rc = EOVERFLOW; rc 147 lib/common/strings.c return rc; rc 164 lib/common/strings.c int rc = pcmk__scan_ll(text, &port_ll, -1LL); rc 166 lib/common/strings.c if ((text != NULL) && (rc == pcmk_rc_ok) // wasn't default or invalid rc 170 lib/common/strings.c rc = (port_ll < 0LL)? pcmk_rc_before_range : pcmk_rc_after_range; rc 176 lib/common/strings.c return rc; rc 202 lib/common/strings.c int rc = pcmk_rc_ok; rc 211 lib/common/strings.c rc = EINVAL; rc 231 lib/common/strings.c rc = EOVERFLOW; rc 234 lib/common/strings.c rc = pcmk_rc_underflow; rc 242 lib/common/strings.c rc = errno; rc 248 lib/common/strings.c pcmk_rc_str(rc)); rc 252 lib/common/strings.c rc = EINVAL; rc 274 lib/common/strings.c rc = pcmk_rc_underflow; rc 296 lib/common/strings.c return rc; rc 316 lib/common/strings.c int rc = pcmk_rc_ok; rc 329 lib/common/strings.c rc = pcmk__scan_ll(value, &value_ll, 0LL); rc 330 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 331 lib/common/strings.c return rc; rc 752 lib/common/strings.c int rc; rc 772 lib/common/strings.c rc = BZ2_bzBuffToBuffCompress(compressed, result_len, uncompressed, length, rc 775 lib/common/strings.c if (rc != BZ_OK) { rc 777 lib/common/strings.c length, bz2_strerror(rc), rc); rc 831 lib/common/strings.c int rc = scan_ll(srcstring+1, end, PCMK__PARSE_INT_DEFAULT, &remainder); rc 833 lib/common/strings.c if (rc != pcmk_rc_ok || *remainder != '\0') { rc 848 lib/common/strings.c int rc = scan_ll(remainder+1, end, PCMK__PARSE_INT_DEFAULT, rc 851 lib/common/strings.c if (rc != pcmk_rc_ok || *more_remainder != '\0') { rc 934 lib/common/strings.c bool rc; rc 937 lib/common/strings.c rc = str_any_of(s, ap, pcmk__str_casei); rc 939 lib/common/strings.c return rc; rc 958 lib/common/strings.c bool rc; rc 961 lib/common/strings.c rc = str_any_of(s, ap, pcmk__str_none); rc 963 lib/common/strings.c return rc; rc 980 lib/common/strings.c bool rc = false; rc 995 lib/common/strings.c rc = true; rc 1001 lib/common/strings.c return rc; rc 1108 lib/common/strings.c int rc = 0; rc 1119 lib/common/strings.c rc = 1; rc 1122 lib/common/strings.c rc = regexec(&r_patt, s1, 0, NULL, 0); rc 1124 lib/common/strings.c if (rc != 0) { rc 1125 lib/common/strings.c rc = 1; rc 1130 lib/common/strings.c return rc; rc 59 lib/common/utils.c int rc = pcmk_ok; rc 69 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PW_BUFFER_LEN, &pwentry); rc 80 lib/common/utils.c rc = rc? -rc : -EINVAL; rc 81 lib/common/utils.c crm_info("User %s lookup: %s", name, pcmk_strerror(rc)); rc 85 lib/common/utils.c return rc; rc 102 lib/common/utils.c int rc = pcmk_ok; rc 105 lib/common/utils.c rc = crm_user_lookup(CRM_DAEMON_USER, &daemon_uid, &daemon_gid); rc 106 lib/common/utils.c if (rc == pcmk_ok) { rc 118 lib/common/utils.c return rc; rc 162 lib/common/utils.c int rc = 0; rc 196 lib/common/utils.c rc = -1; rc 200 lib/common/utils.c rc = 1; rc 219 lib/common/utils.c if (rc == 0) { rc 221 lib/common/utils.c } else if (rc < 0) { rc 223 lib/common/utils.c } else if (rc > 0) { rc 227 lib/common/utils.c return rc; rc 394 lib/common/utils.c int rc; rc 398 lib/common/utils.c rc = pcmk__pidfile_matches(pidfile, 1, name, &pid); rc 399 lib/common/utils.c if ((rc != pcmk_rc_ok) && (rc != ENOENT)) { rc 417 lib/common/utils.c rc = pcmk__lock_pidfile(pidfile, name); rc 418 lib/common/utils.c if (rc != pcmk_rc_ok) { rc 420 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); rc 422 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); rc 56 lib/common/watchdog.c int rc = pcmk_ok; rc 109 lib/common/watchdog.c rc = errno; rc 112 lib/common/watchdog.c (long long) ppid, pcmk_rc_str(rc), rc); rc 203 lib/common/watchdog.c int rc; rc 214 lib/common/watchdog.c rc = pcmk__pidfile_matches(pidfile, 0, sbd_path, &sbd_pid); rc 215 lib/common/watchdog.c if (rc == pcmk_rc_ok) { rc 66 lib/common/xml.c int rc = (max); \ rc 68 lib/common/xml.c rc = snprintf((buffer) + (offset), (max) - (offset), fmt, ##args); \ rc 70 lib/common/xml.c if(buffer && rc < 0) { \ rc 74 lib/common/xml.c } else if(rc >= ((max) - (offset))) { \ rc 81 lib/common/xml.c offset += rc; \ rc 963 lib/common/xml.c int rc = 0; rc 973 lib/common/xml.c bz_file = BZ2_bzReadOpen(&rc, input, 0, 0, NULL, 0); rc 974 lib/common/xml.c if (rc != BZ_OK) { rc 976 lib/common/xml.c CRM_XS " bzerror=%d", filename, bz2_strerror(rc), rc); rc 977 lib/common/xml.c BZ2_bzReadClose(&rc, bz_file); rc 982 lib/common/xml.c rc = BZ_OK; rc 985 lib/common/xml.c while (rc == BZ_OK) { rc 987 lib/common/xml.c read_len = BZ2_bzRead(&rc, bz_file, buffer + length, PCMK__BUFFER_SIZE); rc 989 lib/common/xml.c crm_trace("Read %ld bytes from file: %d", (long)read_len, rc); rc 991 lib/common/xml.c if (rc == BZ_OK || rc == BZ_STREAM_END) { rc 998 lib/common/xml.c if (rc != BZ_STREAM_END) { rc 1000 lib/common/xml.c CRM_XS " bzerror=%d", filename, bz2_strerror(rc), rc); rc 1005 lib/common/xml.c BZ2_bzReadClose(&rc, bz_file); rc 1184 lib/common/xml.c int rc = pcmk_rc_ok; rc 1193 lib/common/xml.c rc = pcmk_rc_error; rc 1200 lib/common/xml.c rc = BZ_OK; rc 1201 lib/common/xml.c bz_file = BZ2_bzWriteOpen(&rc, stream, 5, 0, 30); rc 1202 lib/common/xml.c if (rc != BZ_OK) { rc 1204 lib/common/xml.c CRM_XS " bzerror=%d", filename, bz2_strerror(rc), rc); rc 1206 lib/common/xml.c BZ2_bzWrite(&rc, bz_file, buffer, strlen(buffer)); rc 1207 lib/common/xml.c if (rc != BZ_OK) { rc 1210 lib/common/xml.c filename, bz2_strerror(rc), rc, errno); rc 1214 lib/common/xml.c if (rc == BZ_OK) { rc 1215 lib/common/xml.c BZ2_bzWriteClose(&rc, bz_file, 0, &in, nbytes); rc 1216 lib/common/xml.c if (rc != BZ_OK) { rc 1219 lib/common/xml.c filename, bz2_strerror(rc), rc, errno); rc 1226 lib/common/xml.c rc = pcmk_rc_ok; // Either true, or we'll retry without compression rc 1230 lib/common/xml.c rc = fprintf(stream, "%s", buffer); rc 1231 lib/common/xml.c if (rc < 0) { rc 1232 lib/common/xml.c rc = errno; rc 1235 lib/common/xml.c *nbytes = (unsigned int) rc; rc 1236 lib/common/xml.c rc = pcmk_rc_ok; rc 1243 lib/common/xml.c rc = errno; rc 1249 lib/common/xml.c rc = errno; rc 1258 lib/common/xml.c return rc; rc 1276 lib/common/xml.c int rc = pcmk_rc_ok; rc 1283 lib/common/xml.c rc = write_xml_stream(xml_node, filename, stream, compress, &nbytes); rc 1284 lib/common/xml.c if (rc != pcmk_rc_ok) { rc 1285 lib/common/xml.c return pcmk_rc2legacy(rc); rc 1304 lib/common/xml.c int rc = pcmk_rc_ok; rc 1311 lib/common/xml.c rc = write_xml_stream(xml_node, filename, stream, compress, &nbytes); rc 1312 lib/common/xml.c if (rc != pcmk_rc_ok) { rc 1313 lib/common/xml.c return pcmk_rc2legacy(rc); rc 66 lib/fencing/st_actions.c pcmk__set_result(&(action->result), svc_action->rc, svc_action->status, rc 379 lib/fencing/st_actions.c stonith__legacy2status(int rc) rc 381 lib/fencing/st_actions.c if (rc >= 0) { rc 384 lib/fencing/st_actions.c switch (-rc) { rc 415 lib/fencing/st_actions.c int rc = pcmk_ok; rc 424 lib/fencing/st_actions.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 436 lib/fencing/st_actions.c crm_xml_add_int(xml, F_STONITH_RC, rc); rc 485 lib/fencing/st_actions.c int rc = pcmk_ok; rc 491 lib/fencing/st_actions.c if (crm_element_value_int(xml, F_STONITH_RC, &rc) == 0) { rc 492 lib/fencing/st_actions.c if ((rc == pcmk_ok) || (rc == -EINPROGRESS)) { rc 495 lib/fencing/st_actions.c execution_status = stonith__legacy2status(rc); rc 496 lib/fencing/st_actions.c exit_reason = pcmk_strerror(rc); rc 520 lib/fencing/st_actions.c int rc = internal_stonith_action_execute(action); rc 521 lib/fencing/st_actions.c if (rc == pcmk_ok) { rc 556 lib/fencing/st_actions.c int rc = -EPROTO; rc 587 lib/fencing/st_actions.c if (svc_action->rc != PCMK_OCF_UNKNOWN) { rc 621 lib/fencing/st_actions.c rc = pcmk_ok; rc 624 lib/fencing/st_actions.c rc = -ECONNABORTED; rc 630 lib/fencing/st_actions.c return rc; rc 675 lib/fencing/st_actions.c int rc = pcmk_ok; rc 681 lib/fencing/st_actions.c rc = internal_stonith_action_execute(action); rc 682 lib/fencing/st_actions.c } while ((rc != pcmk_ok) && update_remaining_timeout(action)); rc 684 lib/fencing/st_actions.c return rc; rc 180 lib/fencing/st_client.c int rc = stonith_api->cmds->connect(stonith_api, "stonith-api", NULL); rc 182 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 191 lib/fencing/st_client.c int rc = stonith_api->cmds->list(stonith_api, st_opt_sync_call, STONITH_WATCHDOG_ID, &list, 0); rc 192 lib/fencing/st_client.c if ((rc != pcmk_ok) || (list == NULL)) { rc 197 lib/fencing/st_client.c if (rc == -ENODEV) { rc 201 lib/fencing/st_client.c pcmk_strerror(rc)); rc 332 lib/fencing/st_client.c int rc = 0; rc 338 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_ADD, data, NULL, call_options, 0); rc 341 lib/fencing/st_client.c return rc; rc 347 lib/fencing/st_client.c int rc = 0; rc 353 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_DEL, data, NULL, call_options, 0); rc 356 lib/fencing/st_client.c return rc; rc 364 lib/fencing/st_client.c int rc = 0; rc 384 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); rc 387 lib/fencing/st_client.c return rc; rc 459 lib/fencing/st_client.c int rc = 0; rc 464 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); rc 467 lib/fencing/st_client.c return rc; rc 539 lib/fencing/st_client.c int rc = 0, lpc = 0, max = 0; rc 551 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_QUERY, data, &output, call_options, timeout); rc 553 lib/fencing/st_client.c if (rc < 0) { rc 554 lib/fencing/st_client.c return rc; rc 588 lib/fencing/st_client.c int rc = 0; rc 597 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_EXEC, data, output, call_options, timeout); rc 600 lib/fencing/st_client.c return rc; rc 607 lib/fencing/st_client.c int rc; rc 610 lib/fencing/st_client.c rc = stonith_api_call(stonith, call_options, id, "list", NULL, timeout, &output); rc 626 lib/fencing/st_client.c return rc; rc 646 lib/fencing/st_client.c int rc = 0; rc 656 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE, data, NULL, call_options, timeout); rc 659 lib/fencing/st_client.c return rc; rc 681 lib/fencing/st_client.c int rc = 0; rc 694 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE_HISTORY, data, &output, rc 698 lib/fencing/st_client.c if (rc == 0) { rc 734 lib/fencing/st_client.c return rc; rc 754 lib/fencing/st_client.c int rc = 0; rc 763 lib/fencing/st_client.c rc = strcmp(a_client->event, b_client->event); rc 764 lib/fencing/st_client.c if (rc == 0) { rc 780 lib/fencing/st_client.c return rc; rc 886 lib/fencing/st_client.c data.rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 1069 lib/fencing/st_client.c int rc = pcmk_ok; rc 1107 lib/fencing/st_client.c rc = -ENOTCONN; rc 1115 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, hello, crm_ipc_client_response, -1, &reply); rc 1117 lib/fencing/st_client.c if (rc < 0) { rc 1119 lib/fencing/st_client.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 1120 lib/fencing/st_client.c rc = -ECOMM; rc 1124 lib/fencing/st_client.c rc = -EPROTO; rc 1134 lib/fencing/st_client.c rc = -EPROTO; rc 1139 lib/fencing/st_client.c rc = -EPROTO; rc 1144 lib/fencing/st_client.c rc = pcmk_ok; rc 1152 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 1154 lib/fencing/st_client.c CRM_XS " rc=%d", display_name, pcmk_strerror(rc), rc); rc 1157 lib/fencing/st_client.c return rc; rc 1163 lib/fencing/st_client.c int rc = pcmk_ok; rc 1176 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, -1, NULL); rc 1177 lib/fencing/st_client.c if (rc < 0) { rc 1178 lib/fencing/st_client.c crm_perror(LOG_DEBUG, "Couldn't register for fencing notifications: %d", rc); rc 1179 lib/fencing/st_client.c rc = -ECOMM; rc 1181 lib/fencing/st_client.c rc = pcmk_ok; rc 1186 lib/fencing/st_client.c return rc; rc 1503 lib/fencing/st_client.c int rc = 0; rc 1553 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, rc 1558 lib/fencing/st_client.c if (rc < 0) { rc 1559 lib/fencing/st_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%ds): %d", op, timeout, rc); rc 1560 lib/fencing/st_client.c rc = -ECOMM; rc 1572 lib/fencing/st_client.c rc = pcmk_ok; rc 1581 lib/fencing/st_client.c rc = pcmk_rc2legacy(stonith__result2rc(&result)); rc 1596 lib/fencing/st_client.c rc = -ENOMSG; rc 1602 lib/fencing/st_client.c rc = -ENOMSG; rc 1613 lib/fencing/st_client.c return rc; rc 1646 lib/fencing/st_client.c int rc = pcmk_ok; rc 1652 lib/fencing/st_client.c rc = stonith->cmds->disconnect(stonith); rc 1669 lib/fencing/st_client.c crm_err("Not free'ing active connection: %s (%d)", pcmk_strerror(rc), rc); rc 1672 lib/fencing/st_client.c return rc; rc 1695 lib/fencing/st_client.c int rc = pcmk_ok; rc 1719 lib/fencing/st_client.c rc = pcmk__substitute_secrets(rsc_id, params_table); rc 1720 lib/fencing/st_client.c if (rc != pcmk_rc_ok) { rc 1722 lib/fencing/st_client.c agent, pcmk_rc_str(rc)); rc 1736 lib/fencing/st_client.c rc = stonith__rhcs_validate(st, call_options, target, agent, rc 1743 lib/fencing/st_client.c rc = stonith__lha_validate(st, call_options, target, agent, rc 1750 lib/fencing/st_client.c rc = -EINVAL; rc 1758 lib/fencing/st_client.c return rc; rc 1842 lib/fencing/st_client.c int rc = -EINVAL; // if max_attempts is not positive rc 1845 lib/fencing/st_client.c rc = st->cmds->connect(st, name, NULL); rc 1846 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 1851 lib/fencing/st_client.c attempt, max_attempts, pcmk_strerror(rc), rc); rc 1856 lib/fencing/st_client.c pcmk_strerror(rc), rc); rc 1857 lib/fencing/st_client.c return rc; rc 1907 lib/fencing/st_client.c int rc = pcmk_ok; rc 1918 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 1919 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 1921 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); rc 1931 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); rc 1934 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 1936 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); rc 1943 lib/fencing/st_client.c return rc; rc 1949 lib/fencing/st_client.c int rc = pcmk_ok; rc 1960 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 1961 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 1962 lib/fencing/st_client.c api_log(LOG_NOTICE, "Connection failed: %s (%d)", pcmk_strerror(rc), rc); rc 1974 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); rc 1995 lib/fencing/st_client.c if(rc == pcmk_ok) { rc 1998 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 2016 lib/fencing/st_client.c bool rc = FALSE; rc 2019 lib/fencing/st_client.c return rc; rc 2031 lib/fencing/st_client.c rc = TRUE; rc 2038 lib/fencing/st_client.c return rc; rc 2085 lib/fencing/st_client.c int rc = 0; rc 2101 lib/fencing/st_client.c rc = sscanf(line + entry_start, "%[a-zA-Z0-9_-.]", entry); rc 2102 lib/fencing/st_client.c if (rc != 1) { rc 172 lib/fencing/st_lha.c int rc = 0; rc 254 lib/fencing/st_lha.c return rc; rc 263 lib/fencing/st_lha.c const char *i_hate_pils(int rc); rc 266 lib/fencing/st_lha.c i_hate_pils(int rc) rc 268 lib/fencing/st_lha.c return PIL_strerror(rc); rc 45 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 56 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Fencing Actions"); rc 62 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 63 lib/fencing/st_output.c return rc; rc 74 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 82 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); rc 89 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 90 lib/fencing/st_output.c return rc; rc 103 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 110 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); rc 116 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 117 lib/fencing/st_output.c return rc; rc 130 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 138 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Fencing History"); rc 144 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 153 lib/fencing/st_output.c rc = pcmk_rc_ok; rc 156 lib/fencing/st_output.c return rc; rc 220 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 232 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Pending Fencing Actions"); rc 238 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 239 lib/fencing/st_output.c return rc; rc 394 lib/fencing/st_output.c int rc = va_arg(args, int); rc 398 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 403 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 408 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 409 lib/fencing/st_output.c return rc; rc 419 lib/fencing/st_output.c int rc = va_arg(args, int); rc 423 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 426 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 429 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 430 lib/fencing/st_output.c return rc; rc 440 lib/fencing/st_output.c int rc = va_arg(args, int); rc 444 lib/fencing/st_output.c "valid", pcmk__btoa(rc), rc 452 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 455 lib/fencing/st_output.c return rc; rc 132 lib/fencing/st_rhcs.c int rc = stonith__execute(action); rc 134 lib/fencing/st_rhcs.c if (rc < 0) { rc 136 lib/fencing/st_rhcs.c CRM_XS " rc=%d", agent, pcmk_strerror(rc), rc); rc 138 lib/fencing/st_rhcs.c return rc; rc 146 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 148 lib/fencing/st_rhcs.c return rc; rc 154 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 156 lib/fencing/st_rhcs.c return rc; rc 224 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout, &xml); rc 226 lib/fencing/st_rhcs.c if (rc != pcmk_ok) { rc 228 lib/fencing/st_rhcs.c return rc; rc 249 lib/fencing/st_rhcs.c int rc = stat(buffer, &prop); rc 252 lib/fencing/st_rhcs.c return (rc >= 0) && S_ISREG(prop.st_mode); rc 261 lib/fencing/st_rhcs.c int rc = pcmk_ok; rc 269 lib/fencing/st_rhcs.c rc = stonith__rhcs_get_metadata(agent, remaining_timeout, &metadata); rc 271 lib/fencing/st_rhcs.c if (rc == pcmk_ok) { rc 288 lib/fencing/st_rhcs.c if (rc == -ETIME || remaining_timeout <= 0 ) { rc 300 lib/fencing/st_rhcs.c rc = stonith__execute(action); rc 301 lib/fencing/st_rhcs.c if (rc == pcmk_ok) { rc 304 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 317 lib/fencing/st_rhcs.c return rc; rc 93 lib/lrmd/lrmd_alerts.c gboolean rc = FALSE; rc 105 lib/lrmd/lrmd_alerts.c rc = TRUE; rc 109 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 222 lib/lrmd/lrmd_client.c copy->rc = event->rc; rc 293 lib/lrmd/lrmd_client.c crm_element_value_int(msg, F_LRMD_EXEC_RC, (int *)&event.rc); rc 312 lib/lrmd/lrmd_client.c lrmd__set_result(&event, event.rc, event.op_status, rc 381 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 406 lib/lrmd/lrmd_client.c rc = pcmk__read_remote_message(native->remote, -1); rc 414 lib/lrmd/lrmd_client.c rc = ENOTCONN; rc 435 lib/lrmd/lrmd_client.c if (rc == ENOTCONN) { rc 460 lib/lrmd/lrmd_client.c int rc = pcmk__remote_ready(native->remote, 0); rc 462 lib/lrmd/lrmd_client.c switch (rc) { rc 468 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 627 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 649 lib/lrmd/lrmd_client.c rc = pcmk__read_remote_message(native->remote, remaining_timeout); rc 650 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 651 lib/lrmd/lrmd_client.c return rc; rc 696 lib/lrmd/lrmd_client.c return rc; rc 703 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 711 lib/lrmd/lrmd_client.c rc = lrmd__remote_send_xml(native->remote, msg, global_remote_msg_id, rc 713 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 715 lib/lrmd/lrmd_client.c "Pacemaker Remote: %s", pcmk_rc_str(rc)); rc 718 lib/lrmd/lrmd_client.c return rc; rc 724 lib/lrmd/lrmd_client.c int rc = 0; rc 731 lib/lrmd/lrmd_client.c rc = send_remote_message(lrmd, msg); rc 732 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 733 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 736 lib/lrmd/lrmd_client.c rc = read_remote_reply(lrmd, timeout, global_remote_msg_id, &xml); rc 737 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 740 lib/lrmd/lrmd_client.c global_remote_msg_id, pcmk_rc_str(rc), rc, timeout); rc 750 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 757 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 762 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_client_response, timeout, reply); rc 766 lib/lrmd/lrmd_client.c rc = lrmd_tls_send_recv(lrmd, msg, timeout, reply); rc 772 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 775 lib/lrmd/lrmd_client.c return rc; rc 781 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 786 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_flags_none, 0, NULL); rc 790 lib/lrmd/lrmd_client.c rc = send_remote_message(lrmd, msg); rc 791 lib/lrmd/lrmd_client.c if (rc == pcmk_rc_ok) { rc 797 lib/lrmd/lrmd_client.c rc = pcmk_rc2legacy(rc); rc 803 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 806 lib/lrmd/lrmd_client.c return rc; rc 851 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 876 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, op_msg, timeout, &op_reply); rc 878 lib/lrmd/lrmd_client.c rc = lrmd_send_xml_no_reply(lrmd, op_msg); rc 882 lib/lrmd/lrmd_client.c if (rc < 0) { rc 883 lib/lrmd/lrmd_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%d): %d", op, timeout, rc); rc 887 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 891 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 893 lib/lrmd/lrmd_client.c if (crm_element_value_int(op_reply, F_LRMD_RC, &rc) != 0) { rc 894 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 912 lib/lrmd/lrmd_client.c return rc; rc 918 lib/lrmd/lrmd_client.c int rc; rc 923 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_POKE, data, NULL, 0, 0, rc 927 lib/lrmd/lrmd_client.c return rc < 0 ? rc : pcmk_ok; rc 934 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 947 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_CHECK, data, NULL, 0, 0, rc 950 lib/lrmd/lrmd_client.c return (rc < 0)? pcmk_legacy2rc(rc) : pcmk_rc_ok; rc 956 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 971 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, hello, -1, &reply); rc 973 lib/lrmd/lrmd_client.c if (rc < 0) { rc 974 lib/lrmd/lrmd_client.c crm_perror(LOG_DEBUG, "Couldn't complete registration with the executor API: %d", rc); rc 975 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 978 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 984 lib/lrmd/lrmd_client.c crm_element_value_int(reply, F_LRMD_RC, &rc); rc 986 lib/lrmd/lrmd_client.c if (rc == -EPROTO) { rc 994 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 998 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 1003 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 1010 lib/lrmd/lrmd_client.c if (rc != pcmk_ok) { rc 1013 lib/lrmd/lrmd_client.c return rc; rc 1019 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1036 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 1045 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 1048 lib/lrmd/lrmd_client.c return rc; rc 1182 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1197 lib/lrmd/lrmd_client.c rc = read_gnutls_key(location, key); rc 1198 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1199 lib/lrmd/lrmd_client.c return rc; rc 1319 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd_t * lrmd, int rc) rc 1327 lib/lrmd/lrmd_client.c event.connection_rc = rc; rc 1352 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1374 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1375 lib/lrmd/lrmd_client.c rc = pcmk_legacy2rc(rc); rc 1378 lib/lrmd/lrmd_client.c return rc; rc 1382 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock) rc 1390 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1394 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1395 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1405 lib/lrmd/lrmd_client.c rc = lrmd__init_remote_key(&psk_key); rc 1406 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1409 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1411 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1441 lib/lrmd/lrmd_client.c rc = add_tls_to_mainloop(lrmd, true); rc 1442 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1448 lib/lrmd/lrmd_client.c int rc; rc 1454 lib/lrmd/lrmd_client.c rc = pcmk__connect_remote(native->server, native->port, timeout, &timer_id, rc 1456 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1459 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1460 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 1469 lib/lrmd/lrmd_client.c int rc; rc 1477 lib/lrmd/lrmd_client.c rc = pcmk__connect_remote(native->server, native->port, 0, NULL, rc 1479 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1482 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1487 lib/lrmd/lrmd_client.c rc = lrmd__init_remote_key(&psk_key); rc 1488 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1490 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 1529 lib/lrmd/lrmd_client.c int rc = -ENOTCONN; rc 1534 lib/lrmd/lrmd_client.c rc = lrmd_ipc_connect(lrmd, fd); rc 1538 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect(lrmd, fd); rc 1544 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1547 lib/lrmd/lrmd_client.c if (rc == pcmk_ok) { rc 1548 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1551 lib/lrmd/lrmd_client.c return rc; rc 1557 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1566 lib/lrmd/lrmd_client.c rc = lrmd_api_connect(lrmd, name, NULL); rc 1567 lib/lrmd/lrmd_client.c if (!rc) { rc 1568 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1573 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect_async(lrmd, timeout); rc 1574 lib/lrmd/lrmd_client.c if (rc) { rc 1576 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1583 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1586 lib/lrmd/lrmd_client.c return rc; rc 1649 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1666 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1674 lib/lrmd/lrmd_client.c return rc; rc 1683 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1701 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_REG, data, NULL, 0, options, TRUE); rc 1704 lib/lrmd/lrmd_client.c return rc; rc 1710 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1715 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_UNREG, data, NULL, 0, options, TRUE); rc 1718 lib/lrmd/lrmd_client.c return rc; rc 1810 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1823 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_GET_RECURRING, data, &output_xml, rc 1830 lib/lrmd/lrmd_client.c if ((rc != pcmk_ok) || (output_xml == NULL)) { rc 1831 lib/lrmd/lrmd_client.c return rc; rc 1834 lib/lrmd/lrmd_client.c (rsc_xml != NULL) && (rc == pcmk_ok); rc 1848 lib/lrmd/lrmd_client.c rc = -ENOMEM; rc 1861 lib/lrmd/lrmd_client.c return rc; rc 1908 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1916 lib/lrmd/lrmd_client.c rc = stonith_api->cmds->metadata(stonith_api, st_opt_sync_call, type, rc 1918 lib/lrmd/lrmd_client.c if ((rc == pcmk_ok) && (*output == NULL)) { rc 1919 lib/lrmd/lrmd_client.c rc = -EIO; rc 1922 lib/lrmd/lrmd_client.c return rc; rc 1966 lib/lrmd/lrmd_client.c if (action->rc != PCMK_OCF_UNKNOWN) { rc 1998 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2015 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_EXEC, data, NULL, timeout, options, TRUE); rc 2019 lib/lrmd/lrmd_client.c return rc; rc 2027 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2041 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_ALERT_EXEC, data, NULL, timeout, rc 2046 lib/lrmd/lrmd_client.c return rc; rc 2053 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2060 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_CANCEL, data, NULL, 0, 0, TRUE); rc 2062 lib/lrmd/lrmd_client.c return rc; rc 2068 lib/lrmd/lrmd_client.c int rc = 0; rc 2082 lib/lrmd/lrmd_client.c rc++; rc 2089 lib/lrmd/lrmd_client.c return rc; rc 2096 lib/lrmd/lrmd_client.c int rc = 0; rc 2108 lib/lrmd/lrmd_client.c rc++; rc 2121 lib/lrmd/lrmd_client.c rc += stonith_count; rc 2124 lib/lrmd/lrmd_client.c if (rc == 0) { rc 2126 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 2128 lib/lrmd/lrmd_client.c return rc; rc 2151 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2163 lib/lrmd/lrmd_client.c rc++; rc 2168 lib/lrmd/lrmd_client.c return rc; rc 2174 lib/lrmd/lrmd_client.c int rc = 0; rc 2182 lib/lrmd/lrmd_client.c rc++; rc 2187 lib/lrmd/lrmd_client.c rc++; rc 2191 lib/lrmd/lrmd_client.c return rc; rc 2356 lib/lrmd/lrmd_client.c lrmd__set_result(lrmd_event_data_t *event, enum ocf_exitcode rc, int op_status, rc 2363 lib/lrmd/lrmd_client.c event->rc = rc; rc 89 lib/lrmd/lrmd_output.c int rc; rc 92 lib/lrmd/lrmd_output.c rc = default_list(out, list, title); rc 94 lib/lrmd/lrmd_output.c return rc; rc 256 lib/lrmd/proxy_common.c int rc = 0; rc 268 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 5000, NULL); rc 270 lib/lrmd/proxy_common.c if(rc < 0) { rc 274 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 279 lib/lrmd/proxy_common.c crm_xml_add_int(op_reply, "rc", rc); rc 290 lib/lrmd/proxy_common.c int rc = pcmk_ok; rc 297 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 10000, &op_reply); rc 298 lib/lrmd/proxy_common.c if(rc < 0) { rc 300 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 282 lib/pacemaker/libpacemaker_private.h guint interval_ms, int rc); rc 36 lib/pacemaker/pcmk_cluster_queries.c int rc; rc 62 lib/pacemaker/pcmk_cluster_queries.c data->rc = ETIMEDOUT; rc 74 lib/pacemaker/pcmk_cluster_queries.c data->rc = ECONNRESET; // For unexpected disconnects rc 97 lib/pacemaker/pcmk_cluster_queries.c if (data->rc == ECONNRESET) { // Unexpected rc 118 lib/pacemaker/pcmk_cluster_queries.c data->rc = EBADMSG; rc 126 lib/pacemaker/pcmk_cluster_queries.c data->rc = EBADMSG; rc 150 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_ok; rc 168 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_ok; rc 188 lib/pacemaker/pcmk_cluster_queries.c if (data->rc == ECONNRESET) { // Unexpected rc 233 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_ok; rc 243 lib/pacemaker/pcmk_cluster_queries.c int rc; rc 248 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk_new_ipc_api(&api, server); rc 252 lib/pacemaker/pcmk_cluster_queries.c pcmk_rc_str(rc)); rc 253 lib/pacemaker/pcmk_cluster_queries.c data->rc = rc; rc 259 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk_connect_ipc(api, pcmk_ipc_dispatch_main); rc 260 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 263 lib/pacemaker/pcmk_cluster_queries.c pcmk_rc_str(rc)); rc 264 lib/pacemaker/pcmk_cluster_queries.c data->rc = rc; rc 277 lib/pacemaker/pcmk_cluster_queries.c .rc = pcmk_rc_ok, rc 284 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_controld_api_ping(controld_api, dest_node); rc 285 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 286 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); rc 287 lib/pacemaker/pcmk_cluster_queries.c data.rc = rc; rc 295 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 302 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 304 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); rc 305 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 306 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 311 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__controller_status(out, dest_node, (guint) message_timeout_ms); rc 312 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); rc 313 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 322 lib/pacemaker/pcmk_cluster_queries.c .rc = pcmk_rc_ok, rc 329 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_controld_api_ping(controld_api, NULL); rc 330 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 331 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); rc 332 lib/pacemaker/pcmk_cluster_queries.c data.rc = rc; rc 340 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 347 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 349 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); rc 350 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 351 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 356 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__designated_controller(out, (guint) message_timeout_ms); rc 357 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); rc 358 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 367 lib/pacemaker/pcmk_cluster_queries.c .rc = pcmk_rc_ok, rc 374 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_pacemakerd_api_ping(pacemakerd_api, ipc_name); rc 375 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 376 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); rc 377 lib/pacemaker/pcmk_cluster_queries.c data.rc = rc; rc 385 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 392 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 394 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); rc 395 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 396 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 401 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__pacemakerd_status(out, ipc_name, (guint) message_timeout_ms); rc 402 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); rc 403 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 436 lib/pacemaker/pcmk_cluster_queries.c int rc; rc 438 lib/pacemaker/pcmk_cluster_queries.c rc = cib__signon_query(NULL, &xml_node); rc 440 lib/pacemaker/pcmk_cluster_queries.c if (rc == pcmk_rc_ok) { rc 483 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 490 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 492 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); rc 493 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 494 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 499 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__list_nodes(out, node_types, FALSE); rc 500 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); rc 501 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 44 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 64 lib/pacemaker/pcmk_fence.c rc = st->cmds->register_level_full(st, st_opts, node, pattern, rc 68 lib/pacemaker/pcmk_fence.c rc = st->cmds->remove_level_full(st, st_opts, node, pattern, rc 72 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 146 lib/pacemaker/pcmk_fence.c int rc = stonith_api_connect_retry(st, async_fence_data.name, 10); rc 148 lib/pacemaker/pcmk_fence.c if (rc != pcmk_ok) { rc 151 lib/pacemaker/pcmk_fence.c PCMK_EXEC_NOT_CONNECTED, pcmk_strerror(rc)); rc 186 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 211 lib/pacemaker/pcmk_fence.c rc = stonith__result2rc(&async_fence_data.result); rc 213 lib/pacemaker/pcmk_fence.c return rc; rc 232 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 250 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, opts, rc 257 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 288 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 296 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 298 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 299 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 300 lib/pacemaker/pcmk_fence.c return rc; rc 307 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_history(out, st, target, timeout, verbose, broadcast, cleanup); rc 308 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 309 lib/pacemaker/pcmk_fence.c return rc; rc 316 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 318 lib/pacemaker/pcmk_fence.c rc = st->cmds->list_agents(st, st_opt_sync_call, NULL, &devices, timeout/1000); rc 320 lib/pacemaker/pcmk_fence.c if (rc < 0) { rc 321 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 338 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 340 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 341 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 342 lib/pacemaker/pcmk_fence.c return rc; rc 347 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_installed(out, st, timeout); rc 348 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 349 lib/pacemaker/pcmk_fence.c return rc; rc 374 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 376 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 377 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 378 lib/pacemaker/pcmk_fence.c return rc; rc 383 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_last(out, target, as_nodeid); rc 384 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 385 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 = st->cmds->list(st, st_opts, device_id, &lists, timeout/1000); rc 397 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 398 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 411 lib/pacemaker/pcmk_fence.c return rc; rc 419 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 421 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 422 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 423 lib/pacemaker/pcmk_fence.c return rc; rc 428 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_list_targets(out, st, device_id, timeout); rc 429 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 430 lib/pacemaker/pcmk_fence.c return rc; rc 438 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, rc 441 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 442 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 447 lib/pacemaker/pcmk_fence.c return rc; rc 455 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 457 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 458 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 459 lib/pacemaker/pcmk_fence.c return rc; rc 464 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); rc 465 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 466 lib/pacemaker/pcmk_fence.c return rc; rc 474 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 476 lib/pacemaker/pcmk_fence.c rc = st->cmds->query(st, st_opts, target, &devices, timeout/1000); rc 478 lib/pacemaker/pcmk_fence.c if (rc < 0) { rc 479 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 501 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 503 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 504 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 505 lib/pacemaker/pcmk_fence.c return rc; rc 510 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_registered(out, st, target, timeout); rc 511 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 512 lib/pacemaker/pcmk_fence.c return rc; rc 548 lib/pacemaker/pcmk_fence.c int rc; rc 550 lib/pacemaker/pcmk_fence.c rc = st->cmds->validate(st, st_opt_sync_call, id, NULL, agent, params, rc 552 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); rc 553 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 562 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 564 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); rc 565 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 566 lib/pacemaker/pcmk_fence.c return rc; rc 571 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); rc 572 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); rc 573 lib/pacemaker/pcmk_fence.c return rc; rc 581 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 584 lib/pacemaker/pcmk_fence.c rc = ENOTCONN; rc 586 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, st_opt_sync_call, NULL, stonith_history, 120); rc 588 lib/pacemaker/pcmk_fence.c rc = pcmk_legacy2rc(rc); rc 589 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 590 lib/pacemaker/pcmk_fence.c return rc; rc 599 lib/pacemaker/pcmk_fence.c return rc; rc 813 lib/pacemaker/pcmk_graph_consumer.c int status, int rc, const char *exit_reason) rc 831 lib/pacemaker/pcmk_graph_consumer.c lrmd__set_result(op, rc, status, exit_reason); rc 91 lib/pacemaker/pcmk_injections.c guint interval_ms, int rc) rc 93 lib/pacemaker/pcmk_injections.c if (rc == 0) { rc 96 lib/pacemaker/pcmk_injections.c } else if ((rc == 7) && (interval_ms == 0)) { rc 125 lib/pacemaker/pcmk_injections.c int rc = pcmk_ok; rc 128 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, NULL, rc 131 lib/pacemaker/pcmk_injections.c if (rc == -ENXIO) { // Only add if not already existing rc 224 lib/pacemaker/pcmk_injections.c int rc = pcmk_ok; rc 232 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 244 lib/pacemaker/pcmk_injections.c if (rc == -ENXIO) { rc 261 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 263 lib/pacemaker/pcmk_injections.c crm_trace("Injecting node state for %s (rc=%d)", node, rc); rc 267 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_ok); rc 426 lib/pacemaker/pcmk_injections.c int rc = pcmk_ok; rc 442 lib/pacemaker/pcmk_injections.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 445 lib/pacemaker/pcmk_injections.c if (rc != pcmk_ok) { rc 461 lib/pacemaker/pcmk_injections.c return rc; rc 480 lib/pacemaker/pcmk_injections.c int rc = pcmk_rc_ok; rc 485 lib/pacemaker/pcmk_injections.c rc = find_ticket_state(out, cib, ticket_id, &ticket_state_xml); rc 486 lib/pacemaker/pcmk_injections.c rc = pcmk_legacy2rc(rc); rc 488 lib/pacemaker/pcmk_injections.c if (rc == pcmk_rc_ok) { // Ticket state found, use it rc 493 lib/pacemaker/pcmk_injections.c } else if (rc == ENXIO) { // No ticket state, create it rc 502 lib/pacemaker/pcmk_injections.c return rc; rc 510 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, rc 512 lib/pacemaker/pcmk_injections.c rc = pcmk_legacy2rc(rc); rc 515 lib/pacemaker/pcmk_injections.c return rc; rc 531 lib/pacemaker/pcmk_injections.c int rc; rc 554 lib/pacemaker/pcmk_injections.c rc = sscanf(spec, "%[^@]@%[^=]=%d", key, node, &outcome); rc 555 lib/pacemaker/pcmk_injections.c if (rc != 3) { rc 557 lib/pacemaker/pcmk_injections.c spec, rc); rc 590 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 592 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_ok); rc 612 lib/pacemaker/pcmk_injections.c int rc = pcmk_ok; rc 625 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call|cib_scope_local); rc 626 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_ok); rc 630 lib/pacemaker/pcmk_injections.c rc = cib__update_node_attr(out, cib, cib_sync_call|cib_scope_local, rc 634 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_rc_ok); rc 645 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 647 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_ok); rc 660 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 662 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_ok); rc 687 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 689 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_ok); rc 698 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", true, cib); rc 699 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_rc_ok); rc 707 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", false, cib); rc 708 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_rc_ok); rc 716 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", true, cib); rc 717 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_rc_ok); rc 725 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", false, cib); rc 726 lib/pacemaker/pcmk_injections.c CRM_ASSERT(rc == pcmk_rc_ok); rc 78 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 90 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "locations"); rc 104 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 107 lib/pacemaker/pcmk_output.c return rc; rc 360 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 363 lib/pacemaker/pcmk_output.c return rc; rc 371 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resources %s is colocated with", rsc->id); rc 395 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 396 lib/pacemaker/pcmk_output.c return rc; rc 405 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 408 lib/pacemaker/pcmk_output.c return rc; rc 429 lib/pacemaker/pcmk_output.c return rc; rc 438 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 441 lib/pacemaker/pcmk_output.c return rc; rc 449 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resources colocated with %s", rsc->id); rc 473 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 474 lib/pacemaker/pcmk_output.c return rc; rc 483 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 486 lib/pacemaker/pcmk_output.c return rc; rc 507 lib/pacemaker/pcmk_output.c return rc; rc 517 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 528 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Locations"); rc 535 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 536 lib/pacemaker/pcmk_output.c return rc; rc 886 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 900 lib/pacemaker/pcmk_output.c return rc; rc 948 lib/pacemaker/pcmk_output.c CRM_CHECK(next != NULL, return rc); rc 957 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Migrate", rsc, current, rc 961 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Reload", rsc, current, rc 968 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Re-promote", rsc, rc 976 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Stop", rsc, current, rc 981 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", pcmk_is_set(rsc->flags, pe_rsc_failed)? "Recover" : "Move", rc 985 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Recover", rsc, current, rc 990 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Restart", rsc, current, rc 996 lib/pacemaker/pcmk_output.c return rc; rc 1022 lib/pacemaker/pcmk_output.c rc = pcmk_rc_ok; rc 1031 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Recover", rsc, current, rc 1036 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Move", rsc, current, next, rc 1041 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Reload", rsc, current, next, rc 1045 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Restart", rsc, current, rc 1051 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Demote", rsc, current, rc 1056 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Promote", rsc, current, rc 1060 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Start", rsc, current, next, rc 1064 lib/pacemaker/pcmk_output.c return rc; rc 1513 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 1516 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "cluster-summary", data_set, rc 1520 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "node-list", data_set->nodes, unames, rc 1521 lib/pacemaker/pcmk_output.c resources, show_opts, rc == pcmk_rc_ok)); rc 1526 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "resource-list", data_set, show_opts, rc 1527 lib/pacemaker/pcmk_output.c TRUE, unames, resources, rc == pcmk_rc_ok)); rc 1532 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "node-attribute-list", data_set, rc 1533 lib/pacemaker/pcmk_output.c show_opts, rc == pcmk_rc_ok, unames, resources)); rc 1540 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "node-summary", data_set, unames, rc 1541 lib/pacemaker/pcmk_output.c resources, section_opts, show_opts, rc == pcmk_rc_ok)); rc 1548 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "failed-action-list", data_set, unames, rc 1549 lib/pacemaker/pcmk_output.c resources, show_opts, rc == pcmk_rc_ok)); rc 1559 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "failed-fencing-list", stonith_history, unames, rc 1560 lib/pacemaker/pcmk_output.c section_opts, rc == pcmk_rc_ok)); rc 1563 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); rc 1575 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "ticket-list", data_set, rc == pcmk_rc_ok)); rc 1580 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "ban-list", data_set, prefix, resources, rc 1581 lib/pacemaker/pcmk_output.c show_opts, rc == pcmk_rc_ok)); rc 1588 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); rc 1599 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "fencing-list", hp, unames, rc 1600 lib/pacemaker/pcmk_output.c section_opts, rc == pcmk_rc_ok)); rc 1606 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "pending-fencing-list", hp, unames, rc 1607 lib/pacemaker/pcmk_output.c section_opts, rc == pcmk_rc_ok)); rc 1612 lib/pacemaker/pcmk_output.c return rc; rc 23 lib/pacemaker/pcmk_output_utils.c int rc = pcmk_rc_ok; rc 30 lib/pacemaker/pcmk_output_utils.c rc = pcmk__output_new(out, "xml", NULL, NULL); rc 31 lib/pacemaker/pcmk_output_utils.c if (rc != pcmk_rc_ok) { rc 32 lib/pacemaker/pcmk_output_utils.c return rc; rc 35 lib/pacemaker/pcmk_output_utils.c return rc; rc 59 lib/pacemaker/pcmk_output_utils.c int rc = pcmk_rc_ok; rc 68 lib/pacemaker/pcmk_output_utils.c rc = pcmk__output_new(&out, "log", NULL, (char**)argv); rc 69 lib/pacemaker/pcmk_output_utils.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 71 lib/pacemaker/pcmk_output_utils.c pcmk_rc_str(rc)); rc 92 lib/pacemaker/pcmk_resource.c int rc = pcmk_rc_ok; rc 118 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); rc 121 lib/pacemaker/pcmk_resource.c return rc; rc 130 lib/pacemaker/pcmk_resource.c int rc = pcmk_rc_ok; rc 132 lib/pacemaker/pcmk_resource.c rc = pcmk__out_prologue(&out, xml); rc 133 lib/pacemaker/pcmk_resource.c if (rc != pcmk_rc_ok) { rc 134 lib/pacemaker/pcmk_resource.c return rc; rc 137 lib/pacemaker/pcmk_resource.c rc = pcmk__resource_digests(out, rsc, node, overrides, data_set); rc 138 lib/pacemaker/pcmk_resource.c pcmk__out_epilogue(out, xml, rc); rc 139 lib/pacemaker/pcmk_resource.c return rc; rc 988 lib/pacemaker/pcmk_sched_actions.c magic = crm_strdup_printf("%d:%d;%s", op->op_status, op->rc, rc 1003 lib/pacemaker/pcmk_sched_actions.c crm_xml_add_int(xml_op, XML_LRM_ATTR_RC, op->rc); rc 1322 lib/pacemaker/pcmk_sched_actions.c return (digest_data->rc != RSC_DIGEST_MATCH) && (digest_secure != NULL) rc 1496 lib/pacemaker/pcmk_sched_actions.c switch (digest_data->rc) { rc 60 lib/pacemaker/pcmk_sched_allocate.c switch (digest_data->rc) { rc 100 lib/pacemaker/pcmk_sched_clone.c int rc = 0; rc 189 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 195 lib/pacemaker/pcmk_sched_clone.c rc = 1; rc 202 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 222 lib/pacemaker/pcmk_sched_clone.c rc = 1; rc 227 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 233 lib/pacemaker/pcmk_sched_clone.c rc = 1; rc 238 lib/pacemaker/pcmk_sched_clone.c rc = -1; rc 249 lib/pacemaker/pcmk_sched_clone.c return rc; rc 255 lib/pacemaker/pcmk_sched_clone.c int rc = 0; rc 408 lib/pacemaker/pcmk_sched_clone.c rc = order_instance_by_colocation(resource1, resource2, data_set); rc 409 lib/pacemaker/pcmk_sched_clone.c if (rc != 0) { rc 410 lib/pacemaker/pcmk_sched_clone.c return rc; rc 414 lib/pacemaker/pcmk_sched_clone.c rc = strcmp(resource1->id, resource2->id); rc 415 lib/pacemaker/pcmk_sched_clone.c crm_trace("%s %c %s: default", resource1->id, rc < 0 ? '<' : '>', resource2->id); rc 416 lib/pacemaker/pcmk_sched_clone.c return rc; rc 399 lib/pacemaker/pcmk_sched_colocation.c int rc = pcmk_rc_ok; rc 408 lib/pacemaker/pcmk_sched_colocation.c rc = pcmk__xe_get_bool_attr(set1, "sequential", &sequential); rc 409 lib/pacemaker/pcmk_sched_colocation.c if (rc != pcmk_rc_ok || sequential) { rc 417 lib/pacemaker/pcmk_sched_colocation.c rc = pcmk__xe_get_bool_attr(set2, "sequential", &sequential); rc 418 lib/pacemaker/pcmk_sched_colocation.c if (rc != pcmk_rc_ok || sequential) { rc 126 lib/pacemaker/pcmk_sched_ordering.c int rc = pcmk_rc_ok; rc 137 lib/pacemaker/pcmk_sched_ordering.c rc = pcmk__xe_get_bool_attr(xml_obj, XML_CONS_ATTR_SYMMETRICAL, &symmetric); rc 139 lib/pacemaker/pcmk_sched_ordering.c if (rc != pcmk_rc_ok && parent_symmetrical_s != NULL) { rc 141 lib/pacemaker/pcmk_sched_ordering.c rc = pcmk_rc_ok; rc 144 lib/pacemaker/pcmk_sched_ordering.c if (rc == pcmk_rc_ok) { rc 259 lib/pacemaker/pcmk_sched_promotable.c int rc; rc 272 lib/pacemaker/pcmk_sched_promotable.c rc = sort_rsc_index(a, b); rc 273 lib/pacemaker/pcmk_sched_promotable.c if (rc != 0) { rc 274 lib/pacemaker/pcmk_sched_promotable.c crm_trace("%s %c %s (index)", resource1->id, rc < 0 ? '<' : '>', resource2->id); rc 275 lib/pacemaker/pcmk_sched_promotable.c return rc; rc 595 lib/pacemaker/pcmk_sched_resource.c int rc = 0; rc 609 lib/pacemaker/pcmk_sched_resource.c rc = -1; rc 613 lib/pacemaker/pcmk_sched_resource.c rc = 1; rc 646 lib/pacemaker/pcmk_sched_resource.c rc = -1; rc 650 lib/pacemaker/pcmk_sched_resource.c rc = 1; rc 662 lib/pacemaker/pcmk_sched_resource.c rc = -1; rc 666 lib/pacemaker/pcmk_sched_resource.c rc = 1; rc 676 lib/pacemaker/pcmk_sched_resource.c ((rc < 0)? '>' : ((rc > 0)? '<' : '=')), rc 687 lib/pacemaker/pcmk_sched_resource.c return rc; rc 491 lib/pacemaker/pcmk_simulate.c int rc; rc 618 lib/pacemaker/pcmk_simulate.c rc = sscanf(spec, "%*[^=]=%d", (int *) &op->rc); rc 619 lib/pacemaker/pcmk_simulate.c if (rc != 1) { rc 626 lib/pacemaker/pcmk_simulate.c action->id, op->rc); rc 630 lib/pacemaker/pcmk_simulate.c op->interval_ms, op->rc); rc 636 lib/pacemaker/pcmk_simulate.c rc = fake_cib->cmds->modify(fake_cib, XML_CIB_TAG_STATUS, cib_node, rc 638 lib/pacemaker/pcmk_simulate.c CRM_ASSERT(rc == pcmk_ok); rc 688 lib/pacemaker/pcmk_simulate.c int rc = pcmk_ok; rc 697 lib/pacemaker/pcmk_simulate.c rc = fake_cib->cmds->replace(fake_cib, XML_CIB_TAG_STATUS, cib_node, rc 699 lib/pacemaker/pcmk_simulate.c CRM_ASSERT(rc == pcmk_ok); rc 765 lib/pacemaker/pcmk_simulate.c int rc = fake_cib->cmds->query(fake_cib, NULL, &cib_object, rc 768 lib/pacemaker/pcmk_simulate.c CRM_ASSERT(rc == pcmk_ok); rc 783 lib/pacemaker/pcmk_simulate.c int rc = pcmk_rc_ok; rc 787 lib/pacemaker/pcmk_simulate.c rc = cib__signon_query(&cib, &input); rc 788 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 835 lib/pacemaker/pcmk_simulate.c rc = cib->cmds->query(cib, NULL, &input, cib_sync_call); rc 836 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 837 lib/pacemaker/pcmk_simulate.c rc = pcmk_legacy2rc(rc); rc 847 lib/pacemaker/pcmk_simulate.c rc = write_xml_file(input, input_file, FALSE); rc 848 lib/pacemaker/pcmk_simulate.c if (rc < 0) { rc 849 lib/pacemaker/pcmk_simulate.c rc = pcmk_legacy2rc(rc); rc 885 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_error; rc 904 lib/pacemaker/pcmk_simulate.c rc = write_xml_file(data_set->graph, graph_file, FALSE); rc 905 lib/pacemaker/pcmk_simulate.c if (rc < 0) { rc 906 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_graph_error; rc 912 lib/pacemaker/pcmk_simulate.c rc = write_sim_dotfile(data_set, dot_file, rc 915 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 916 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_dot_error; rc 926 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_ok; rc 935 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_invalid_transition; rc 957 lib/pacemaker/pcmk_simulate.c return rc; rc 967 lib/pacemaker/pcmk_simulate.c int rc = pcmk_rc_ok; rc 969 lib/pacemaker/pcmk_simulate.c rc = pcmk__out_prologue(&out, xml); rc 970 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 971 lib/pacemaker/pcmk_simulate.c return rc; rc 977 lib/pacemaker/pcmk_simulate.c rc = pcmk__simulate(data_set, out, injections, flags, section_opts, rc 979 lib/pacemaker/pcmk_simulate.c pcmk__out_epilogue(out, xml, rc); rc 980 lib/pacemaker/pcmk_simulate.c return rc; rc 27 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 33 lib/pacemaker/pcmk_status.c return rc; rc 38 lib/pacemaker/pcmk_status.c rc = cib->cmds->signon(cib, crm_system_name, cib_query); rc 39 lib/pacemaker/pcmk_status.c rc = pcmk_legacy2rc(rc); rc 41 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 43 lib/pacemaker/pcmk_status.c pcmk_rc_str(rc)); rc 44 lib/pacemaker/pcmk_status.c return rc; rc 47 lib/pacemaker/pcmk_status.c rc = cib->cmds->query(cib, NULL, current_cib, rc 49 lib/pacemaker/pcmk_status.c rc = pcmk_legacy2rc(rc); rc 51 lib/pacemaker/pcmk_status.c return rc; rc 58 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 64 lib/pacemaker/pcmk_status.c rc = st->cmds->connect(st, crm_system_name, NULL); rc 65 lib/pacemaker/pcmk_status.c if (rc == pcmk_rc_ok) { rc 99 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 103 lib/pacemaker/pcmk_status.c rc = pcmk_new_ipc_api(&pacemakerd_api, pcmk_ipc_pacemakerd); rc 106 lib/pacemaker/pcmk_status.c pcmk_rc_str(rc)); rc 107 lib/pacemaker/pcmk_status.c return rc; rc 112 lib/pacemaker/pcmk_status.c rc = pcmk_connect_ipc(pacemakerd_api, pcmk_ipc_dispatch_sync); rc 113 lib/pacemaker/pcmk_status.c if (rc == EREMOTEIO) { rc 115 lib/pacemaker/pcmk_status.c } else if (rc != pcmk_rc_ok) { rc 117 lib/pacemaker/pcmk_status.c pcmk_rc_str(rc)); rc 119 lib/pacemaker/pcmk_status.c return rc; rc 122 lib/pacemaker/pcmk_status.c rc = pcmk_pacemakerd_api_ping(pacemakerd_api, crm_system_name); rc 124 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 127 lib/pacemaker/pcmk_status.c rc = pcmk_rc_ok; rc 129 lib/pacemaker/pcmk_status.c rc = ENOTCONN; rc 131 lib/pacemaker/pcmk_status.c rc = EAGAIN; rc 135 lib/pacemaker/pcmk_status.c return rc; rc 151 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 155 lib/pacemaker/pcmk_status.c rc = pcmk_rc_schema_validation; rc 156 lib/pacemaker/pcmk_status.c out->err(out, "Upgrade failed: %s", pcmk_rc_str(rc)); rc 157 lib/pacemaker/pcmk_status.c return rc; rc 189 lib/pacemaker/pcmk_status.c rc = pcmk__output_simple_status(out, data_set); rc 202 lib/pacemaker/pcmk_status.c return rc; rc 210 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 220 lib/pacemaker/pcmk_status.c rc = pcmk__out_prologue(&out, xml); rc 221 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 223 lib/pacemaker/pcmk_status.c return rc; rc 230 lib/pacemaker/pcmk_status.c rc = pcmk__status(out, cib, pcmk__fence_history_full, pcmk_section_all, rc 232 lib/pacemaker/pcmk_status.c pcmk__out_epilogue(out, xml, rc); rc 235 lib/pacemaker/pcmk_status.c return rc; rc 244 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 253 lib/pacemaker/pcmk_status.c rc = pcmk_rc_ok; rc 255 lib/pacemaker/pcmk_status.c rc = pacemakerd_status(out); rc 259 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 260 lib/pacemaker/pcmk_status.c return rc; rc 271 lib/pacemaker/pcmk_status.c rc = cib_connect(out, cib, ¤t_cib); rc 272 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 276 lib/pacemaker/pcmk_status.c rc = pcmk__output_cluster_status(out, st, cib, current_cib, fence_history, show, show_opts, rc 289 lib/pacemaker/pcmk_status.c return rc; rc 33 lib/pengine/bundle.c int rc = sscanf(last_ip, "%u.%u.%u.%u", &oct1, &oct2, &oct3, &oct4); rc 35 lib/pengine/bundle.c if (rc != 4) { rc 1499 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1508 lib/pengine/bundle.c return rc; rc 1540 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "bundle", 6, rc 1547 lib/pengine/bundle.c CRM_ASSERT(rc == pcmk_rc_ok); rc 1551 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "replica", 1, "id", id); rc 1553 lib/pengine/bundle.c CRM_ASSERT(rc == pcmk_rc_ok); rc 1582 lib/pengine/bundle.c return rc; rc 1623 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1631 lib/pengine/bundle.c return rc; rc 1662 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1698 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1709 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1710 lib/pengine/bundle.c return rc; rc 1751 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1759 lib/pengine/bundle.c return rc; rc 1790 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1826 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", rc 1837 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1838 lib/pengine/bundle.c return rc; rc 83 lib/pengine/clone.c clone_header(pcmk__output_t *out, int *rc, pe_resource_t *rsc, clone_variant_data_t *clone_data) rc 105 lib/pengine/clone.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Clone Set: %s [%s] (%s)", rc 110 lib/pengine/clone.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Clone Set: %s [%s]", rc 704 lib/pengine/clone.c int rc = pcmk_rc_no_output; rc 709 lib/pengine/clone.c return rc; rc 731 lib/pengine/clone.c rc = pe__name_and_nvpairs_xml(out, true, "clone", 8, rc 740 lib/pengine/clone.c CRM_ASSERT(rc == pcmk_rc_ok); rc 752 lib/pengine/clone.c return rc; rc 775 lib/pengine/clone.c int rc = pcmk_rc_no_output; rc 781 lib/pengine/clone.c return rc; rc 869 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data); rc 880 lib/pengine/clone.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 900 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data); rc 924 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data); rc 984 lib/pengine/clone.c int rc; rc 986 lib/pengine/clone.c pcmk__scan_min_int(crm_element_value(probe_op, XML_LRM_ATTR_RC), &rc, 0); rc 988 lib/pengine/clone.c crm_strdup_printf("Stopped (%s)", services_ocf_exitcode_str(rc))); rc 1001 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data); rc 1024 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data); rc 1025 lib/pengine/clone.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1026 lib/pengine/clone.c return rc; rc 1030 lib/pengine/clone.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1031 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 43 lib/pengine/group.c group_header(pcmk__output_t *out, int *rc, pe_resource_t *rsc, int n_inactive, bool show_inactive) rc 63 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Resource Group: %s (%s)", rc 67 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Resource Group: %s", rsc->id); rc 271 lib/pengine/group.c int rc = pcmk_rc_no_output; rc 278 lib/pengine/group.c return rc; rc 288 lib/pengine/group.c if (rc == pcmk_rc_no_output) { rc 289 lib/pengine/group.c rc = pe__name_and_nvpairs_xml(out, true, "group", 4 rc 295 lib/pengine/group.c CRM_ASSERT(rc == pcmk_rc_ok); rc 302 lib/pengine/group.c if (rc == pcmk_rc_ok) { rc 306 lib/pengine/group.c return rc; rc 318 lib/pengine/group.c int rc = pcmk_rc_no_output; rc 327 lib/pengine/group.c return rc; rc 334 lib/pengine/group.c group_header(out, &rc, rsc, !active && partially_active ? inactive_resources(rsc) : 0, rc 338 lib/pengine/group.c rc = pcmk_rc_ok; rc 350 lib/pengine/group.c group_header(out, &rc, rsc, !active && partially_active ? inactive_resources(rsc) : 0, rc 357 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 359 lib/pengine/group.c return rc; rc 607 lib/pengine/native.c int rc; rc 609 lib/pengine/native.c pcmk__scan_min_int(crm_element_value(probe_op, XML_LRM_ATTR_RC), &rc, 0); rc 610 lib/pengine/native.c g_string_append_printf(outstr, " (%s) ", services_ocf_exitcode_str(rc)); rc 924 lib/pengine/native.c int rc = pcmk_rc_no_output; rc 944 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, true, "resource", 12, rc 959 lib/pengine/native.c CRM_ASSERT(rc == pcmk_rc_ok); rc 967 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, false, "node", 3, rc 971 lib/pengine/native.c CRM_ASSERT(rc == pcmk_rc_ok); rc 976 lib/pengine/native.c return rc; rc 1274 lib/pengine/native.c int rc = pcmk_rc_no_output; rc 1331 lib/pengine/native.c rc = pcmk_rc_ok; rc 1338 lib/pengine/native.c rc = pcmk_rc_ok; rc 1358 lib/pengine/native.c return rc; rc 414 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_MATCH; rc 422 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_RESTART; rc 426 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_UNKNOWN; rc 436 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_ALL; rc 532 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_UNKNOWN; rc 539 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_MATCH; rc 547 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_MATCH; rc 558 lib/pengine/pe_digest.c data->rc = RSC_DIGEST_ALL; rc 119 lib/pengine/pe_health.c int rc = 1; rc 125 lib/pengine/pe_health.c return rc; rc 140 lib/pengine/pe_health.c rc = 0; rc 150 lib/pengine/pe_health.c rc = 0; rc 154 lib/pengine/pe_health.c return rc; rc 25 lib/pengine/pe_output.c int rc; rc 27 lib/pengine/pe_output.c rc = strcmp((const char *)a, (const char *)b); rc 29 lib/pengine/pe_output.c return rc; rc 204 lib/pengine/pe_output.c int rc, gboolean print_timing) { rc 251 lib/pengine/pe_output.c rc, services_ocf_exitcode_str(rc)); rc 319 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 323 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 336 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 347 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 352 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 359 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 363 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 367 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 371 lib/pengine/pe_output.c return rc; rc 381 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 385 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 399 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 410 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 415 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); rc 426 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 432 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 436 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 440 lib/pengine/pe_output.c return rc; rc 616 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 635 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Negative Location Constraints"); rc 641 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 642 lib/pengine/pe_output.c return rc; rc 1121 lib/pengine/pe_output.c const char *op_key, const char *node_name, int rc, rc 1153 lib/pengine/pe_output.c services_ocf_exitcode_str(rc)); rc 1197 lib/pengine/pe_output.c const char *op_key, const char *node_name, int rc, rc 1203 lib/pengine/pe_output.c const char *exit_status = services_ocf_exitcode_str(rc); rc 1224 lib/pengine/pe_output.c op_key, node_name, exit_status, rc, call_id, lrm_status); rc 1262 lib/pengine/pe_output.c int rc; rc 1265 lib/pengine/pe_output.c pcmk__scan_min_int(crm_element_value(xml_op, XML_LRM_ATTR_RC), &rc, 0); rc 1278 lib/pengine/pe_output.c failed_action_technical(out, xml_op, op_key, node_name, rc, status, rc 1281 lib/pengine/pe_output.c failed_action_friendly(out, xml_op, op_key, node_name, rc, status, rc 1294 lib/pengine/pe_output.c int rc; rc 1303 lib/pengine/pe_output.c pcmk__scan_min_int(crm_element_value(xml_op, XML_LRM_ATTR_RC), &rc, 0); rc 1307 lib/pengine/pe_output.c rc_s = pcmk__itoa(rc); rc 1312 lib/pengine/pe_output.c "exitstatus", services_ocf_exitcode_str(rc), rc 1360 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1365 lib/pengine/pe_output.c return rc; rc 1393 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Resource Actions"); rc 1397 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1398 lib/pengine/pe_output.c return rc; rc 1479 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1488 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resources"); rc 1495 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1936 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1964 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Node Attributes"); rc 1988 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1989 lib/pengine/pe_output.c return rc; rc 2039 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2078 lib/pengine/pe_output.c if (rc == pcmk_rc_no_output) { rc 2079 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 2095 lib/pengine/pe_output.c if (rc == pcmk_rc_no_output) { rc 2096 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 2106 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2107 lib/pengine/pe_output.c return rc; rc 2119 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2129 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Node List"); rc 2134 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2135 lib/pengine/pe_output.c return rc; rc 2160 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2172 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer == TRUE, rc, "Node List"); rc 2238 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2239 lib/pengine/pe_output.c return rc; rc 2281 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2284 lib/pengine/pe_output.c return rc; rc 2300 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, rc 2307 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2308 lib/pengine/pe_output.c return rc; rc 2358 lib/pengine/pe_output.c int rc = va_arg(args, int); rc 2361 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, rc 2376 lib/pengine/pe_output.c int rc = va_arg(args, int); rc 2379 lib/pengine/pe_output.c char *rc_s = pcmk__itoa(rc); rc 2384 lib/pengine/pe_output.c "rc_text", services_ocf_exitcode_str(rc), rc 2568 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2576 lib/pengine/pe_output.c return rc; rc 2588 lib/pengine/pe_output.c rc = pe__rscs_brief_output(out, rscs, show_opts); rc 2635 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 2639 lib/pengine/pe_output.c if (print_summary && rc != pcmk_rc_ok) { rc 2659 lib/pengine/pe_output.c return rc; rc 2674 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2694 lib/pengine/pe_output.c if (rc == pcmk_rc_no_output) { rc 2701 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 2712 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2713 lib/pengine/pe_output.c return rc; rc 178 lib/pengine/rules.c int rc = pcmk_rc_undetermined; rc 192 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 194 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 196 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 201 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 203 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 205 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 209 lib/pengine/rules.c rc = time_field <= high ? pcmk_rc_within_range : pcmk_rc_after_range; rc 212 lib/pengine/rules.c rc = time_field >= low ? pcmk_rc_within_range : pcmk_rc_before_range; rc 216 lib/pengine/rules.c if (rc == pcmk_rc_within_range) { rc 222 lib/pengine/rules.c return rc; rc 226 lib/pengine/rules.c check_passes(int rc) { rc 232 lib/pengine/rules.c return rc == pcmk_rc_within_range || rc == pcmk_rc_undetermined; rc 1147 lib/pengine/rules.c int rc = pcmk_rc_undetermined; rc 1171 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 1174 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 1176 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 1185 lib/pengine/rules.c rc = pe_cron_range_satisfied(rule_data->now, date_spec); rc 1192 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 1194 lib/pengine/rules.c rc = pcmk_rc_before_range; rc 1205 lib/pengine/rules.c rc = pcmk_rc_within_range; rc 1208 lib/pengine/rules.c rc = pcmk_rc_after_range; rc 1214 lib/pengine/rules.c return rc; rc 1151 lib/pengine/unpack.c int rc = pcmk_rc_ok; rc 1240 lib/pengine/unpack.c rc = EAGAIN; // Other node histories might depend on this one rc 1242 lib/pengine/unpack.c return rc; rc 2287 lib/pengine/unpack.c const char *rc = crm_element_value(rsc_op, XML_LRM_ATTR_RC); rc 2289 lib/pengine/unpack.c if (pcmk__strcase_any_of(rc, "0", "8", NULL)) { rc 2584 lib/pengine/unpack.c int rc = PCMK_OCF_UNKNOWN_ERROR; rc 2587 lib/pengine/unpack.c crm_element_value_int(xml, XML_LRM_ATTR_RC, &rc); rc 2589 lib/pengine/unpack.c if ((rc != PCMK_OCF_OK) || (status != PCMK_EXEC_DONE)) { rc 2993 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 3016 lib/pengine/unpack.c && (rc == PCMK_OCF_NOT_INSTALLED)) { rc 3019 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc 3022 lib/pengine/unpack.c last_change_str(xml_op), rc, ID(xml_op)); rc 3026 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc 3029 lib/pengine/unpack.c last_change_str(xml_op), rc, ID(xml_op)); rc 3031 lib/pengine/unpack.c if (is_probe && (rc != PCMK_OCF_OK) rc 3032 lib/pengine/unpack.c && (rc != PCMK_OCF_NOT_RUNNING) rc 3033 lib/pengine/unpack.c && (rc != PCMK_OCF_RUNNING_PROMOTED)) { rc 3071 lib/pengine/unpack.c } else if(rc == PCMK_OCF_NOT_RUNNING) { rc 3084 lib/pengine/unpack.c if(is_probe && rc == PCMK_OCF_NOT_INSTALLED) { rc 3162 lib/pengine/unpack.c int target_rc, int *rc, int *status) { rc 3170 lib/pengine/unpack.c int remapped_rc = pcmk__effective_rc(*rc); rc 3172 lib/pengine/unpack.c if (*rc != remapped_rc) { rc 3173 lib/pengine/unpack.c crm_trace("Remapping monitor result %d to %d", *rc, remapped_rc); rc 3178 lib/pengine/unpack.c *rc = remapped_rc; rc 3184 lib/pengine/unpack.c *rc = PCMK_OCF_NOT_RUNNING; rc 3225 lib/pengine/unpack.c } else if (target_rc != *rc) { rc 3230 lib/pengine/unpack.c *rc, services_ocf_exitcode_str(*rc), rc 3234 lib/pengine/unpack.c switch (*rc) { rc 3245 lib/pengine/unpack.c if (is_probe || (target_rc == *rc) rc 3258 lib/pengine/unpack.c if (is_probe && (*rc != target_rc)) { rc 3298 lib/pengine/unpack.c node->details->uname, services_ocf_exitcode_str(*rc), rc 3300 lib/pengine/unpack.c last_change_str(xml_op), *rc, ID(xml_op)); rc 3311 lib/pengine/unpack.c *rc, task, rsc->id, node->details->uname, rc 3342 lib/pengine/unpack.c switch (digest_data->rc) { rc 3438 lib/pengine/unpack.c check_operation_expiry(pe_resource_t *rsc, pe_node_t *node, int rc, rc 3538 lib/pengine/unpack.c switch(rc) { rc 3578 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, rc 3586 lib/pengine/unpack.c if (rc == PCMK_OCF_NOT_INSTALLED || (!pe_rsc_is_bundled(rsc) && pcmk_xe_mask_probe_failure(xml_op))) { rc 3589 lib/pengine/unpack.c } else if (rc == PCMK_OCF_NOT_RUNNING) { rc 3679 lib/pengine/unpack.c int rc = 0; rc 3704 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_RC, &rc); rc 3724 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); rc 3745 lib/pengine/unpack.c && check_operation_expiry(rsc, node, rc, xml_op, data_set)) { rc 3749 lib/pengine/unpack.c old_rc = rc; rc 3753 lib/pengine/unpack.c &rc, &status); rc 3764 lib/pengine/unpack.c } else if (expired && (rc != target_rc)) { rc 3770 lib/pengine/unpack.c task_key, node->details->uname, rc, target_rc, magic); rc 3786 lib/pengine/unpack.c task_key, node->details->uname, rc, target_rc, magic); rc 3853 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); rc 3862 lib/pengine/unpack.c task, rsc->id, node->details->uname, status, rc, rc 3868 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); rc 3906 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), rc 3908 lib/pengine/unpack.c node->details->uname, last_change_str(xml_op), rc, rc 3924 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, rc 3928 lib/pengine/unpack.c do_crm_log(rc != PCMK_OCF_NOT_INSTALLED?LOG_ERR:LOG_NOTICE, rc 3932 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc 3934 lib/pengine/unpack.c rc, ID(xml_op)); rc 3940 lib/pengine/unpack.c parent->id, services_ocf_exitcode_str(rc), rc 3942 lib/pengine/unpack.c rc, ID(xml_op)); rc 2178 lib/pengine/utils.c if(data->rc == RSC_DIGEST_ALL) { rc 261 lib/services/services.c int rc = pcmk_rc_ok; rc 304 lib/services/services.c rc = services__ocf_prepare(op); rc 307 lib/services/services.c rc = services__lsb_prepare(op); rc 311 lib/services/services.c rc = services__systemd_prepare(op); rc 315 lib/services/services.c rc = services__upstart_prepare(op); rc 319 lib/services/services.c rc = services__nagios_prepare(op); rc 323 lib/services/services.c rc = ENOENT; rc 326 lib/services/services.c if (rc != pcmk_rc_ok) { rc 328 lib/services/services.c action, name, strerror(rc)); rc 329 lib/services/services.c services__handle_exec_error(op, rc); rc 343 lib/services/services.c if (op == NULL || op->rc != 0) { rc 348 lib/services/services.c op->rc = PCMK_OCF_OK; rc 1022 lib/services/services.c gboolean rc = TRUE; rc 1039 lib/services/services.c rc = (execute_metadata_action(op) == pcmk_rc_ok); rc 1041 lib/services/services.c rc = (execute_action(op) == pcmk_rc_ok); rc 1044 lib/services/services.c op->rsc, op->action, op->interval_ms, op->opaque->exec, op->rc); rc 1051 lib/services/services.c return rc; rc 1180 lib/services/services.c gboolean rc = FALSE; rc 1186 lib/services/services.c rc = TRUE; rc 1191 lib/services/services.c if (rc == FALSE) { rc 1195 lib/services/services.c rc = FALSE; rc 1202 lib/services/services.c rc = TRUE; rc 1207 lib/services/services.c rc = TRUE; rc 1210 lib/services/services.c if (rc == FALSE) { rc 1216 lib/services/services.c rc = TRUE; rc 1219 lib/services/services.c rc = TRUE; rc 1224 lib/services/services.c rc = TRUE; rc 1227 lib/services/services.c rc = FALSE; rc 1231 lib/services/services.c rc = services__ocf_agent_exists(provider, agent); rc 1234 lib/services/services.c rc = services__lsb_agent_exists(agent); rc 1238 lib/services/services.c rc = systemd_unit_exists(agent); rc 1243 lib/services/services.c rc = upstart_job_exists(agent); rc 1248 lib/services/services.c rc = services__nagios_agent_exists(agent); rc 1252 lib/services/services.c rc = FALSE; rc 1258 lib/services/services.c return rc; rc 1278 lib/services/services.c action->rc = agent_status; rc 1312 lib/services/services.c action->rc = agent_status; rc 160 lib/services/services_linux.c int rc; rc 170 lib/services/services_linux.c rc = pcmk__set_nonblocking(data->pipe_fd[0]); rc 171 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 173 lib/services/services_linux.c pcmk_rc_str(rc), rc); rc 175 lib/services/services_linux.c rc = pcmk__set_nonblocking(data->pipe_fd[1]); rc 176 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 178 lib/services/services_linux.c pcmk_rc_str(rc), rc); rc 260 lib/services/services_linux.c int rc = 0, len = 0; rc 285 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); rc 286 lib/services/services_linux.c if (rc > 0) { rc 287 lib/services/services_linux.c buf[rc] = 0; rc 288 lib/services/services_linux.c crm_trace("Got %d chars: %.80s", rc, buf); rc 289 lib/services/services_linux.c data = pcmk__realloc(data, len + rc + 1); rc 296 lib/services/services_linux.c rc = FALSE; rc 300 lib/services/services_linux.c } while (rc == buf_read_len || rc < 0); rc 308 lib/services/services_linux.c return rc; rc 383 lib/services/services_linux.c int rc; rc 386 lib/services/services_linux.c rc = setenv(key, value, 1); rc 388 lib/services/services_linux.c rc = unsetenv(key); rc 391 lib/services/services_linux.c if (rc < 0) { rc 914 lib/services/services_linux.c int rc; rc 955 lib/services/services_linux.c rc = pcmk__substitute_secrets(op->rsc, op->params); rc 956 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 960 lib/services/services_linux.c op->rsc, pcmk_rc_str(rc)); rc 964 lib/services/services_linux.c op->rsc, pcmk_rc_str(rc)); rc 1007 lib/services/services_linux.c rc = errno; rc 1008 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1009 lib/services/services_linux.c crm_err("Unable to execute %s: %s", op->id, strerror(rc)); rc 1010 lib/services/services_linux.c exit_child(op, op->rc, "Child process was unable to execute file"); rc 1127 lib/services/services_linux.c crm_info("%s[%d] exited with status %d", op->id, op->pid, op->rc); rc 1173 lib/services/services_linux.c int rc; rc 1179 lib/services/services_linux.c rc = errno; rc 1181 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 1182 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1187 lib/services/services_linux.c rc = errno; rc 1189 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 1190 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1195 lib/services/services_linux.c rc = errno; rc 1200 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 1201 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1207 lib/services/services_linux.c rc = errno; rc 1213 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 1214 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1232 lib/services/services_linux.c rc = errno; rc 1238 lib/services/services_linux.c op->opaque->exec, pcmk_strerror(rc), rc); rc 1239 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1294 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdout_fd); rc 1295 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1298 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1302 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stderr_fd); rc 1303 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1306 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1313 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdin_fd); rc 1314 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1317 lib/services/services_linux.c pcmk_rc_str(rc), op->opaque->stdin_fd, rc); rc 1354 lib/services/services_linux.c return (op->rc == PCMK_OCF_OK)? pcmk_rc_ok : pcmk_rc_error; rc 253 lib/services/services_lsb.c bool rc = FALSE; rc 257 lib/services/services_lsb.c rc = (stat(path, &st) == 0); rc 259 lib/services/services_lsb.c return rc; rc 158 lib/services/services_nagios.c gboolean rc = FALSE; rc 162 lib/services/services_nagios.c return rc; rc 167 lib/services/services_nagios.c rc = TRUE; rc 171 lib/services/services_nagios.c return rc; rc 177 lib/services/services_nagios.c int rc = pcmk_ok; rc 202 lib/services/services_nagios.c rc = -EIO; rc 213 lib/services/services_nagios.c rc = -EIO; rc 219 lib/services/services_nagios.c return rc; rc 87 lib/services/services_ocf.c gboolean rc = FALSE; rc 95 lib/services/services_ocf.c return rc; rc 102 lib/services/services_ocf.c rc = TRUE; rc 111 lib/services/services_ocf.c return rc; rc 468 lib/services/systemd.c int rc = pcmk_rc_ok; rc 476 lib/services/systemd.c rc = ENOENT; rc 483 lib/services/systemd.c rc = ENOMEM; rc 490 lib/services/systemd.c return rc; rc 811 lib/services/systemd.c int rc = pcmk__build_path(override_dir, 0755); rc 813 lib/services/systemd.c if (rc != pcmk_rc_ok) { rc 815 lib/services/systemd.c override_dir, pcmk_rc_str(rc)); rc 845 lib/services/systemd.c int rc = fprintf(file_strm, "%s\n", override); rc 848 lib/services/systemd.c if (rc < 0) { rc 864 lib/services/systemd.c int rc = unlink(override_file); rc 866 lib/services/systemd.c if (rc < 0) { rc 1090 lib/services/systemd.c return (op->rc == PCMK_OCF_OK)? pcmk_rc_ok : pcmk_rc_error; rc 117 lib/services/upstart.c bool rc = false; rc 155 lib/services/upstart.c rc = true; rc 161 lib/services/upstart.c return rc; rc 558 lib/services/upstart.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 693 lib/services/upstart.c return (op->rc == PCMK_OCF_OK)? pcmk_rc_ok : pcmk_rc_error; rc 540 maint/gnulib/lib/exclude.c int rc; rc 553 maint/gnulib/lib/exclude.c rc = 1; rc 559 maint/gnulib/lib/exclude.c rc = regcomp (&patopts->v.re, tmp, cflags); rc 564 maint/gnulib/lib/exclude.c rc = regcomp (&patopts->v.re, pattern, cflags); rc 566 maint/gnulib/lib/exclude.c if (rc) rc 683 maint/gnulib/lib/exclude.c int rc = add_exclude_fp (call_addfn, ex, in, options, line_end, &add_func); rc 688 maint/gnulib/lib/exclude.c return rc; rc 175 maint/gnulib/lib/gc-gnulib.c Gc_rc rc = GC_OK; rc 195 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 209 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 222 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 238 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 244 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 247 maint/gnulib/lib/gc-gnulib.c if (rc == GC_OK) rc 252 maint/gnulib/lib/gc-gnulib.c return rc; rc 288 maint/gnulib/lib/gc-gnulib.c rijndael_rc rc; rc 295 maint/gnulib/lib/gc-gnulib.c rc = rijndaelMakeKey (&ctx->aesEncKey, RIJNDAEL_DIR_ENCRYPT, rc 297 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 300 maint/gnulib/lib/gc-gnulib.c rc = rijndaelMakeKey (&ctx->aesDecKey, RIJNDAEL_DIR_DECRYPT, rc 302 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 305 maint/gnulib/lib/gc-gnulib.c rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_ECB, NULL); rc 306 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 346 maint/gnulib/lib/gc-gnulib.c rijndael_rc rc; rc 353 maint/gnulib/lib/gc-gnulib.c rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_CBC, rc 355 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 561 maint/gnulib/lib/gc-gnulib.c Gc_rc rc = GC_OK; rc 619 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_HASH; rc 623 maint/gnulib/lib/gc-gnulib.c if (rc == GC_OK) rc 628 maint/gnulib/lib/gc-gnulib.c return rc; rc 273 maint/gnulib/lib/gc-libgcrypt.c Gc_rc rc = GC_OK; rc 336 maint/gnulib/lib/gc-libgcrypt.c rc = GC_INVALID_HASH; rc 350 maint/gnulib/lib/gc-libgcrypt.c rc = GC_INVALID_HASH; rc 353 maint/gnulib/lib/gc-libgcrypt.c if (rc == GC_OK && gcryalg != GCRY_MD_NONE) rc 357 maint/gnulib/lib/gc-libgcrypt.c rc = GC_INVALID_HASH; rc 360 maint/gnulib/lib/gc-libgcrypt.c if (rc == GC_OK) rc 365 maint/gnulib/lib/gc-libgcrypt.c return rc; rc 43 maint/gnulib/lib/gc-pbkdf2.c int rc; rc 78 maint/gnulib/lib/gc-pbkdf2.c rc = prf (P, Plen, tmp, tmplen, U); rc 81 maint/gnulib/lib/gc-pbkdf2.c rc = prf (P, Plen, U, hLen, U); rc 83 maint/gnulib/lib/gc-pbkdf2.c if (rc != GC_OK) rc 86 maint/gnulib/lib/gc-pbkdf2.c return rc; rc 3808 maint/gnulib/lib/mini-gmp.c mp_limb_t uc, vc, rc; rc 3826 maint/gnulib/lib/mini-gmp.c rc = uc & vc; rc 3830 maint/gnulib/lib/mini-gmp.c rx = -rc; rc 3835 maint/gnulib/lib/mini-gmp.c rp = MPZ_REALLOC (r, rn + (mp_size_t) rc); rc 3849 maint/gnulib/lib/mini-gmp.c rl = ( (ul & vl) ^ rx) + rc; rc 3850 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3861 maint/gnulib/lib/mini-gmp.c rl = ( (ul & vx) ^ rx) + rc; rc 3862 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3865 maint/gnulib/lib/mini-gmp.c if (rc) rc 3866 maint/gnulib/lib/mini-gmp.c rp[rn++] = rc; rc 3880 maint/gnulib/lib/mini-gmp.c mp_limb_t uc, vc, rc; rc 3898 maint/gnulib/lib/mini-gmp.c rc = uc | vc; rc 3902 maint/gnulib/lib/mini-gmp.c rx = -rc; rc 3908 maint/gnulib/lib/mini-gmp.c rp = MPZ_REALLOC (r, rn + (mp_size_t) rc); rc 3922 maint/gnulib/lib/mini-gmp.c rl = ( (ul | vl) ^ rx) + rc; rc 3923 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3934 maint/gnulib/lib/mini-gmp.c rl = ( (ul | vx) ^ rx) + rc; rc 3935 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3938 maint/gnulib/lib/mini-gmp.c if (rc) rc 3939 maint/gnulib/lib/mini-gmp.c rp[rn++] = rc; rc 3953 maint/gnulib/lib/mini-gmp.c mp_limb_t uc, vc, rc; rc 3971 maint/gnulib/lib/mini-gmp.c rc = uc ^ vc; rc 3975 maint/gnulib/lib/mini-gmp.c rx = -rc; rc 3977 maint/gnulib/lib/mini-gmp.c rp = MPZ_REALLOC (r, un + (mp_size_t) rc); rc 3991 maint/gnulib/lib/mini-gmp.c rl = (ul ^ vl ^ rx) + rc; rc 3992 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 4003 maint/gnulib/lib/mini-gmp.c rl = (ul ^ ux) + rc; rc 4004 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 4007 maint/gnulib/lib/mini-gmp.c if (rc) rc 4008 maint/gnulib/lib/mini-gmp.c rp[un++] = rc; rc 483 maint/gnulib/lib/mountlist.c int rc, mntroot_s; rc 485 maint/gnulib/lib/mountlist.c rc = sscanf(line, "%*u " /* id - discarded */ rc 492 maint/gnulib/lib/mountlist.c if (rc != 2 && rc != 3) /* 3 if %n included in count. */ rc 123 maint/gnulib/lib/pipe-filter-ii.c ULONG rc = (ULONG) -1; rc 140 maint/gnulib/lib/pipe-filter-ii.c rc = DosWaitMuxWaitSem (hmux, ms, &ulUser); rc 147 maint/gnulib/lib/pipe-filter-ii.c if (rc) rc 374 maint/gnulib/lib/poll.c int maxfd, rc; rc 447 maint/gnulib/lib/poll.c rc = select (maxfd + 1, &rfds, &wfds, &efds, ptv); rc 448 maint/gnulib/lib/poll.c if (rc < 0) rc 449 maint/gnulib/lib/poll.c return rc; rc 452 maint/gnulib/lib/poll.c rc = 0; rc 459 maint/gnulib/lib/poll.c rc += pfd[i].revents != 0; rc 462 maint/gnulib/lib/poll.c return rc; rc 472 maint/gnulib/lib/poll.c int rc = 0; rc 622 maint/gnulib/lib/poll.c rc++; rc 625 maint/gnulib/lib/poll.c if (!rc && timeout == INFTIM) rc 631 maint/gnulib/lib/poll.c return rc; rc 279 maint/gnulib/lib/select.c int i, fd, rc; rc 423 maint/gnulib/lib/select.c rc = 0; rc 429 maint/gnulib/lib/select.c rc = select (0, &handle_rfds, &handle_wfds, &handle_xfds, &tv0); rc 430 maint/gnulib/lib/select.c if (rc == 0) rc 471 maint/gnulib/lib/select.c if (rc == 0 && nsock > 0) rc 472 maint/gnulib/lib/select.c rc = select (0, &handle_rfds, &handle_wfds, &handle_xfds, &tv0); rc 492 maint/gnulib/lib/select.c rc++; rc 496 maint/gnulib/lib/select.c if (rc == 0 rc 515 maint/gnulib/lib/select.c if (timeout && wait_timeout == 0 && rc == 0) rc 555 maint/gnulib/lib/select.c return rc; rc 5795 maint/gnulib/lib/vasnprintf.c size_t rc; rc 5796 maint/gnulib/lib/vasnprintf.c for (rc = count; rc > 0; rc--, rp++) rc 35 maint/gnulib/tests/test-gc-arcfour.c Gc_rc rc; rc 37 maint/gnulib/tests/test-gc-arcfour.c rc = gc_init (); rc 38 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 44 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_open (GC_ARCFOUR40, GC_STREAM, &ctx); rc 45 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 48 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_setkey (ctx, sizeof (key_1), key_1); rc 49 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 53 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_encrypt_inline (ctx, sizeof (plaintext_1), scratch); rc 54 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 72 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_setkey (ctx, sizeof (key_1), key_1); rc 73 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 76 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_decrypt_inline (ctx, sizeof (plaintext_1), scratch); rc 77 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 34 maint/gnulib/tests/test-gc-arctwo.c Gc_rc rc; rc 36 maint/gnulib/tests/test-gc-arctwo.c rc = gc_init (); rc 37 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 43 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_open (GC_ARCTWO40, GC_ECB, &ctx); rc 44 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 47 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_setkey (ctx, sizeof (key), key); rc 48 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 52 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_encrypt_inline (ctx, sizeof (plaintext), scratch); rc 53 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 71 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_setkey (ctx, sizeof (key), key); rc 72 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 75 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_decrypt_inline (ctx, sizeof (plaintext), scratch); rc 76 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-des.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-des.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 52 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_open (GC_DES, GC_ECB, &ctx); rc 53 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 56 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_setkey (ctx, 8, key); rc 57 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 61 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_encrypt_inline (ctx, 8, temp1); rc 62 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 66 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_encrypt_inline (ctx, 8, temp2); rc 67 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 70 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_setkey (ctx, 8, temp2); rc 71 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 75 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_decrypt_inline (ctx, 8, temp3); rc 76 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-md5.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-md5.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-md5.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-sha1.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-sha1.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-sha1.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-sha256.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-sha256.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-sha256.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-sha512.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-sha512.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-sha512.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-md2.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-md2.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-md2.c if (rc != GC_OK) rc 92 maint/gnulib/tests/test-gc-md2.c if ((rc = gc_hash_open (GC_MD2, 0, &h)) != GC_OK) rc 94 maint/gnulib/tests/test-gc-md2.c printf ("gc_hash_open(GC_MD2) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-md4.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-md4.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-md4.c if (rc != GC_OK) rc 94 maint/gnulib/tests/test-gc-md4.c if ((rc = gc_hash_open (GC_MD4, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-md4.c printf ("gc_hash_open(GC_MD4) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-md5.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-md5.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-md5.c if (rc != GC_OK) rc 94 maint/gnulib/tests/test-gc-md5.c if ((rc = gc_hash_open (GC_MD5, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-md5.c printf ("gc_hash_open(GC_MD5) failed (%d)\n", rc); rc 84 maint/gnulib/tests/test-gc-pbkdf2-sha1.c int rc; rc 89 maint/gnulib/tests/test-gc-pbkdf2-sha1.c rc = gc_pbkdf2_sha1 (pkcs5[i].password, strlen (pkcs5[i].password), rc 92 maint/gnulib/tests/test-gc-pbkdf2-sha1.c if (rc != GC_OK) rc 95 maint/gnulib/tests/test-gc-pbkdf2-sha1.c (unsigned long) i, rc); rc 99 maint/gnulib/tests/test-gc-pbkdf2.c int rc; rc 102 maint/gnulib/tests/test-gc-pbkdf2.c rc = gc_pbkdf2_hmac (GC_MD2, "p", 1, "s", 1, 42, out, 17); rc 104 maint/gnulib/tests/test-gc-pbkdf2.c if (rc != GC_INVALID_HASH) rc 106 maint/gnulib/tests/test-gc-pbkdf2.c printf ("PBKDF2 accepts invalid MD2 hash %d\n", rc); rc 112 maint/gnulib/tests/test-gc-pbkdf2.c rc = gc_pbkdf2_hmac (pkcs5[i].hash, rc 116 maint/gnulib/tests/test-gc-pbkdf2.c if (rc != GC_OK) rc 119 maint/gnulib/tests/test-gc-pbkdf2.c (unsigned long) i, rc); rc 28 maint/gnulib/tests/test-gc-rijndael.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-rijndael.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 48 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_open (GC_AES128, GC_ECB, &ctx); rc 49 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 52 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_setkey (ctx, 16, key); rc 53 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 60 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_encrypt_inline (ctx, 16, buf); rc 61 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 63 maint/gnulib/tests/test-gc-rijndael.c printf ("encrypt failed %d\n", rc); rc 83 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_decrypt_inline (ctx, 16, buf); rc 84 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 86 maint/gnulib/tests/test-gc-rijndael.c printf ("decrypt failed %d\n", rc); rc 121 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_open (GC_AES128, GC_CBC, &ctx); rc 122 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 125 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_setkey (ctx, 16, key); rc 126 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 129 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_setiv (ctx, 16, iv); rc 130 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 137 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_encrypt_inline (ctx, 16, buf); rc 138 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 140 maint/gnulib/tests/test-gc-rijndael.c printf ("encrypt failed %d\n", rc); rc 28 maint/gnulib/tests/test-gc-sha1.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sha1.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sha1.c if (rc != GC_OK) rc 65 maint/gnulib/tests/test-gc-sha1.c rc = gc_hash_buffer (GC_SHA1, "abcdefgh", 8, out); rc 66 maint/gnulib/tests/test-gc-sha1.c if (rc != GC_OK) rc 68 maint/gnulib/tests/test-gc-sha1.c printf ("gc_hash_buffer(sha1) call failed: %d\n", rc); rc 91 maint/gnulib/tests/test-gc-sha1.c if ((rc = gc_hash_open (GC_SHA1, 0, &h)) != GC_OK) rc 93 maint/gnulib/tests/test-gc-sha1.c printf ("gc_hash_open(GC_SHA1) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-sha256.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sha256.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sha256.c if (rc != GC_OK) rc 66 maint/gnulib/tests/test-gc-sha256.c rc = gc_hash_buffer (GC_SHA256, "abcdefghijklmnopqrstuvwxyz", 26, out); rc 67 maint/gnulib/tests/test-gc-sha256.c if (rc != GC_OK) rc 69 maint/gnulib/tests/test-gc-sha256.c printf ("gc_hash_buffer(sha256) call failed: %d\n", rc); rc 92 maint/gnulib/tests/test-gc-sha256.c if ((rc = gc_hash_open (GC_SHA256, 0, &h)) != GC_OK) rc 94 maint/gnulib/tests/test-gc-sha256.c printf ("gc_hash_open(GC_SHA256) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-sha512.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sha512.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sha512.c if (rc != GC_OK) rc 68 maint/gnulib/tests/test-gc-sha512.c rc = gc_hash_buffer (GC_SHA512, "abcdefghijklmnopqrstuvwxyz", 26, out); rc 69 maint/gnulib/tests/test-gc-sha512.c if (rc != GC_OK) rc 71 maint/gnulib/tests/test-gc-sha512.c printf ("gc_hash_buffer(sha512) call failed: %d\n", rc); rc 94 maint/gnulib/tests/test-gc-sha512.c if ((rc = gc_hash_open (GC_SHA512, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-sha512.c printf ("gc_hash_open(GC_SHA512) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-sm3.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sm3.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sm3.c if (rc != GC_OK) rc 68 maint/gnulib/tests/test-gc-sm3.c rc = gc_hash_buffer (GC_SM3, "abc", 3, out); rc 69 maint/gnulib/tests/test-gc-sm3.c if (rc != GC_OK) rc 71 maint/gnulib/tests/test-gc-sm3.c printf ("gc_hash_buffer(sm3) call failed: %u\n", rc); rc 94 maint/gnulib/tests/test-gc-sm3.c if ((rc = gc_hash_open (GC_SM3, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-sm3.c printf ("gc_hash_open(GC_SM3) failed (%u)\n", rc); rc 28 maint/gnulib/tests/test-gc.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc.c if (rc != GC_OK) rc 38 maint/gnulib/tests/test-getdomainname.c int rc; rc 48 maint/gnulib/tests/test-getdomainname.c rc = getdomainname (buf, sizeof (buf)); rc 50 maint/gnulib/tests/test-getdomainname.c if (rc != 0) rc 52 maint/gnulib/tests/test-getdomainname.c printf ("getdomainname failed, rc %d errno %d\n", rc, errno); rc 39 maint/gnulib/tests/test-gethostname.c int rc; rc 49 maint/gnulib/tests/test-gethostname.c rc = gethostname (buf, sizeof (buf)); rc 51 maint/gnulib/tests/test-gethostname.c if (rc != 0) rc 53 maint/gnulib/tests/test-gethostname.c printf ("gethostname failed, rc %d errno %d\n", rc, errno); rc 79 maint/gnulib/tests/test-pipe-filter-gi2-main.c int rc; rc 85 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_write (f, "", 1); rc 86 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == 127 || rc == -1); rc 87 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_close (f); rc 88 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == 127 || rc == -1); rc 106 maint/gnulib/tests/test-pipe-filter-gi2-main.c int rc; rc 113 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_write (f, " ", 1); /* write to a closed pipe */ rc 114 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == -1 && errno == EPIPE); rc 117 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_close (f); rc 118 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == -1 && errno == EPIPE); rc 97 maint/gnulib/tests/test-pipe-filter-ii2-main.c int rc; rc 104 maint/gnulib/tests/test-pipe-filter-ii2-main.c rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, true, false, rc 108 maint/gnulib/tests/test-pipe-filter-ii2-main.c ASSERT (rc == 127 || rc == -1); rc 116 maint/gnulib/tests/test-pipe-filter-ii2-main.c int rc; rc 123 maint/gnulib/tests/test-pipe-filter-ii2-main.c rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, false, false, rc 127 maint/gnulib/tests/test-pipe-filter-ii2-main.c ASSERT (rc == 1); rc 135 maint/gnulib/tests/test-pipe-filter-ii2-main.c int rc; rc 142 maint/gnulib/tests/test-pipe-filter-ii2-main.c rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, false, true, rc 146 maint/gnulib/tests/test-pipe-filter-ii2-main.c ASSERT (rc == 0); rc 28 maint/gnulib/tests/test-rijndael.c int rc; rc 39 maint/gnulib/tests/test-rijndael.c rc = rijndaelMakeKey (&key, RIJNDAEL_DIR_ENCRYPT, rc 41 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 42 maint/gnulib/tests/test-rijndael.c printf ("makeKey failed %d\n", rc); rc 44 maint/gnulib/tests/test-rijndael.c rc = rijndaelCipherInit (&cipher, RIJNDAEL_MODE_ECB, NULL); rc 45 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 46 maint/gnulib/tests/test-rijndael.c printf ("cipherInit failed %d\n", rc); rc 52 maint/gnulib/tests/test-rijndael.c rc = rijndaelBlockEncrypt (&cipher, &key, in, 128, out); rc 53 maint/gnulib/tests/test-rijndael.c if (rc < 0) rc 54 maint/gnulib/tests/test-rijndael.c printf ("blockEncrypt failed %d\n", rc); rc 72 maint/gnulib/tests/test-rijndael.c rc = rijndaelMakeKey (&key, RIJNDAEL_DIR_DECRYPT, rc 74 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 75 maint/gnulib/tests/test-rijndael.c printf ("makeKey failed %d\n", rc); rc 77 maint/gnulib/tests/test-rijndael.c rc = rijndaelCipherInit (&cipher, RIJNDAEL_MODE_ECB, NULL); rc 78 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 79 maint/gnulib/tests/test-rijndael.c printf ("cipherInit failed %d\n", rc); rc 85 maint/gnulib/tests/test-rijndael.c rc = rijndaelBlockDecrypt (&cipher, &key, in, 128, out); rc 86 maint/gnulib/tests/test-rijndael.c if (rc < 0) rc 87 maint/gnulib/tests/test-rijndael.c printf ("blockEncrypt failed %d\n", rc); rc 203 tools/attrd_updater.c int rc = pcmk_rc_ok; rc 221 tools/attrd_updater.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 222 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 225 tools/attrd_updater.c args->output_ty, pcmk_rc_str(rc)); rc 243 tools/attrd_updater.c int rc = do_query(out, options.attr_name, options.attr_node, options.query_all); rc 244 tools/attrd_updater.c exit_code = pcmk_rc2exitc(rc); rc 294 tools/attrd_updater.c int rc = pcmk_rc_ok; rc 314 tools/attrd_updater.c rc = ENOTCONN; rc 316 tools/attrd_updater.c rc = crm_ipc_send(ipc, query, crm_ipc_client_response, 0, reply); rc 317 tools/attrd_updater.c if (rc > 0) { rc 318 tools/attrd_updater.c rc = pcmk_rc_ok; rc 325 tools/attrd_updater.c return(rc); rc 340 tools/attrd_updater.c int rc = pcmk_rc_ok; rc 344 tools/attrd_updater.c rc = pcmk_rc_schema_validation; rc 345 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 348 tools/attrd_updater.c return rc; rc 354 tools/attrd_updater.c rc = ENXIO; rc 355 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 358 tools/attrd_updater.c return rc; rc 364 tools/attrd_updater.c rc = pcmk_rc_schema_validation; rc 365 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 368 tools/attrd_updater.c return rc; rc 426 tools/attrd_updater.c int rc = pcmk_rc_ok; rc 439 tools/attrd_updater.c rc = send_attrd_query(attr_name, attr_node, &reply); rc 440 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 441 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not query value of %s: %s (%d)", rc 442 tools/attrd_updater.c attr_name, pcmk_strerror(rc), rc); rc 443 tools/attrd_updater.c return rc; rc 447 tools/attrd_updater.c rc = validate_attrd_reply(reply, attr_name); rc 448 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 452 tools/attrd_updater.c return rc; rc 457 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 472 tools/attrd_updater.c int rc = pcmk__node_attr_request(NULL, command, attr_node, attr_name, rc 475 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 476 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not update %s=%s: %s (%d)", rc 477 tools/attrd_updater.c attr_name, attr_value, pcmk_rc_str(rc), rc); rc 479 tools/attrd_updater.c return rc; rc 37 tools/cibadmin.c void cibadmin_op_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 423 tools/cibadmin.c int rc = pcmk_ok; rc 734 tools/cibadmin.c rc = do_init(); rc 735 tools/cibadmin.c if (rc != pcmk_ok) { rc 739 tools/cibadmin.c crm_exit(crm_errno2exit(rc)); rc 742 tools/cibadmin.c rc = do_work(input, command_options, &output); rc 743 tools/cibadmin.c if (rc > 0) { rc 747 tools/cibadmin.c request_id = rc; rc 759 tools/cibadmin.c } else if ((rc == -pcmk_err_schema_unchanged) rc 763 tools/cibadmin.c } else if (rc < 0) { rc 764 tools/cibadmin.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 765 tools/cibadmin.c fprintf(stderr, "Call failed: %s\n", pcmk_strerror(rc)); rc 767 tools/cibadmin.c if (rc == -pcmk_err_schema_validation) { rc 770 tools/cibadmin.c int version = 0, rc = 0; rc 772 tools/cibadmin.c rc = the_cib->cmds->query(the_cib, NULL, &obj, command_options); rc 773 tools/cibadmin.c if (rc == pcmk_ok) { rc 781 tools/cibadmin.c exit_code = crm_errno2exit(rc); rc 786 tools/cibadmin.c rc = pcmk__acl_annotate_permissions(acl_cred, output->doc, &acl_evaled_doc); rc 787 tools/cibadmin.c if (rc == pcmk_rc_ok) { rc 820 tools/cibadmin.c fprintf(stderr, "Could not evaluate access per request (%s, error: %s)\n", acl_cred, pcmk_rc_str(rc)); rc 833 tools/cibadmin.c rc = cib__clean_up_connection(&the_cib); rc 835 tools/cibadmin.c exit_code = pcmk_rc2exitc(rc); rc 869 tools/cibadmin.c int rc = pcmk_ok; rc 872 tools/cibadmin.c rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 873 tools/cibadmin.c if (rc != pcmk_ok) { rc 874 tools/cibadmin.c crm_err("Could not connect to the CIB: %s", pcmk_strerror(rc)); rc 876 tools/cibadmin.c pcmk_strerror(rc)); rc 879 tools/cibadmin.c return rc; rc 883 tools/cibadmin.c cibadmin_op_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 885 tools/cibadmin.c exit_code = crm_errno2exit(rc); rc 887 tools/cibadmin.c if (rc == -pcmk_err_schema_unchanged) { rc 890 tools/cibadmin.c } else if (rc != pcmk_ok) { rc 891 tools/cibadmin.c crm_warn("Call %s failed (%d): %s", cib_action, rc, pcmk_strerror(rc)); rc 892 tools/cibadmin.c fprintf(stderr, "Call %s failed (%d): %s\n", cib_action, rc, pcmk_strerror(rc)); rc 343 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 346 tools/crm_attribute.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 348 tools/crm_attribute.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not connect to controller: %s", rc 349 tools/crm_attribute.c pcmk_rc_str(rc)); rc 350 tools/crm_attribute.c return rc; rc 355 tools/crm_attribute.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_sync); rc 356 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 357 tools/crm_attribute.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not connect to controller: %s", rc 358 tools/crm_attribute.c pcmk_rc_str(rc)); rc 360 tools/crm_attribute.c return rc; rc 363 tools/crm_attribute.c rc = pcmk_controld_api_node_info(controld_api, 0); rc 365 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 366 tools/crm_attribute.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not ping controller: %s", rc 367 tools/crm_attribute.c pcmk_rc_str(rc)); rc 376 tools/crm_attribute.c rc = pcmk_rc_error; rc 381 tools/crm_attribute.c return rc; rc 438 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 455 tools/crm_attribute.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 456 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 459 tools/crm_attribute.c args->output_ty, pcmk_rc_str(rc)); rc 487 tools/crm_attribute.c rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 488 tools/crm_attribute.c rc = pcmk_legacy2rc(rc); rc 490 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 491 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 493 tools/crm_attribute.c "Could not connect to the CIB: %s", pcmk_rc_str(rc)); rc 535 tools/crm_attribute.c rc = get_node_name_from_controller(); rc 537 tools/crm_attribute.c if (rc == pcmk_rc_error) { rc 542 tools/crm_attribute.c } else if (rc != pcmk_rc_ok) { rc 546 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 551 tools/crm_attribute.c rc = query_node_uuid(the_cib, options.dest_uname, &options.dest_node, &is_remote_node); rc 552 tools/crm_attribute.c rc = pcmk_legacy2rc(rc); rc 554 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 555 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 602 tools/crm_attribute.c rc = cib__delete_node_attr(out, the_cib, cib_opts, options.type, options.dest_node, rc 606 tools/crm_attribute.c if (rc == ENXIO) { rc 611 tools/crm_attribute.c rc = pcmk_rc_ok; rc 619 tools/crm_attribute.c rc = cib__update_node_attr(out, the_cib, cib_opts, options.type, options.dest_node, rc 635 tools/crm_attribute.c rc = cib__read_node_attr(out, the_cib, options.type, options.dest_node, rc 639 tools/crm_attribute.c if (rc == ENXIO && options.attr_default) { rc 641 tools/crm_attribute.c rc = pcmk_rc_ok; rc 647 tools/crm_attribute.c if (rc == ENOTUNIQ) { rc 649 tools/crm_attribute.c rc = pcmk_rc_ok; rc 658 tools/crm_attribute.c if (rc == ENOTUNIQ) { rc 659 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 663 tools/crm_attribute.c } else if (rc != pcmk_rc_ok) { rc 664 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 666 tools/crm_attribute.c "Error performing operation: %s", pcmk_strerror(rc)); rc 119 tools/crm_diff.c int rc; rc 122 tools/crm_diff.c rc = xml_apply_patchset(output, patch, as_cib); rc 123 tools/crm_diff.c if (rc != pcmk_ok) { rc 124 tools/crm_diff.c fprintf(stderr, "Could not apply patch: %s\n", pcmk_strerror(rc)); rc 126 tools/crm_diff.c return rc; rc 45 tools/crm_error.c get_strings(int rc, const char **name, const char **str) rc 48 tools/crm_error.c *str = crm_exit_str((crm_exit_t) rc); rc 49 tools/crm_error.c *name = crm_exit_name(rc); rc 51 tools/crm_error.c *str = pcmk_rc_str(rc); rc 52 tools/crm_error.c *name = pcmk_rc_name(rc); rc 54 tools/crm_error.c *str = pcmk_strerror(rc); rc 55 tools/crm_error.c *name = pcmk_errorname(rc); rc 73 tools/crm_error.c int rc = pcmk_rc_ok; rc 113 tools/crm_error.c for (rc = start; rc < end; rc++) { rc 114 tools/crm_error.c if (rc == (pcmk_rc_error + 1)) { rc 116 tools/crm_error.c rc = pcmk_rc_ok; rc 118 tools/crm_error.c get_strings(rc, &name, &desc); rc 122 tools/crm_error.c printf("% .*d: %-26s %s\n", width, rc, name, desc); rc 124 tools/crm_error.c printf("% .*d: %s\n", width, rc, desc); rc 139 tools/crm_error.c pcmk__scan_min_int(processed_args[lpc], &rc, INT_MIN); rc 140 tools/crm_error.c get_strings(rc, &name, &desc); rc 138 tools/crm_mon.c static void clean_up_on_connection_failure(int rc); rc 290 tools/crm_mon.c gboolean rc = TRUE; rc 297 tools/crm_mon.c rc = apply_include(s+10, error); rc 299 tools/crm_mon.c rc = apply_include(s+3, error); rc 301 tools/crm_mon.c rc = apply_exclude(s+10, error); rc 303 tools/crm_mon.c rc = apply_exclude(s+3, error); rc 306 tools/crm_mon.c if (rc != TRUE) { rc 313 tools/crm_mon.c return rc; rc 442 tools/crm_mon.c int rc = crm_get_msec(optarg); rc 444 tools/crm_mon.c if (rc == -1) { rc 463 tools/crm_mon.c gboolean rc = user_include_exclude_cb("--include", s, data, err); rc 465 tools/crm_mon.c return rc; rc 743 tools/crm_mon.c int rc = pcmk_ok; rc 750 tools/crm_mon.c return rc; rc 753 tools/crm_mon.c rc = st->cmds->connect(st, crm_system_name, NULL); rc 754 tools/crm_mon.c if (rc == pcmk_ok) { rc 769 tools/crm_mon.c return rc; rc 775 tools/crm_mon.c int rc = pcmk_rc_ok; rc 781 tools/crm_mon.c return rc; rc 786 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->signon(cib, crm_system_name, cib_query)); rc 787 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 789 tools/crm_mon.c pcmk_rc_str(rc)); rc 790 tools/crm_mon.c return rc; rc 798 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->query(cib, NULL, ¤t_cib, rc 801 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 802 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->set_connection_dnotify(cib, rc 804 tools/crm_mon.c if (rc == EPROTONOSUPPORT) { rc 811 tools/crm_mon.c rc = pcmk_rc_ok; rc 814 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 817 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->add_notify_callback(cib, rc 821 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 827 tools/crm_mon.c return rc; rc 913 tools/crm_mon.c int rc = pcmk_rc_ok; rc 919 tools/crm_mon.c return rc; rc 933 tools/crm_mon.c return rc; rc 935 tools/crm_mon.c rc = pcmk_new_ipc_api(&pacemakerd_api, pcmk_ipc_pacemakerd); rc 938 tools/crm_mon.c pcmk_rc_str(rc)); rc 940 tools/crm_mon.c return rc; rc 943 tools/crm_mon.c rc = pcmk_connect_ipc(pacemakerd_api, pcmk_ipc_dispatch_poll); rc 944 tools/crm_mon.c switch (rc) { rc 946 tools/crm_mon.c rc = pcmk_pacemakerd_api_ping(pacemakerd_api, crm_system_name); rc 947 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 948 tools/crm_mon.c rc = pcmk_poll_ipc(pacemakerd_api, options.reconnect_ms/2); rc 949 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 951 tools/crm_mon.c rc = ENOTCONN; rc 956 tools/crm_mon.c rc = pcmk_rc_ok; rc 967 tools/crm_mon.c rc = pcmk_rc_ok; rc 981 tools/crm_mon.c rc = pcmk_rc_ok; rc 985 tools/crm_mon.c rc = pcmk_rc_ok; rc 995 tools/crm_mon.c rc = pcmk_rc_ok; rc 1008 tools/crm_mon.c return (rc == pcmk_rc_ok)?rc:ENOTCONN; rc 1308 tools/crm_mon.c clean_up_on_connection_failure(int rc) rc 1312 tools/crm_mon.c pcmk_rc_str(rc)); rc 1314 tools/crm_mon.c } else if (rc == ENOTCONN) { rc 1321 tools/crm_mon.c g_set_error(&error, PCMK__EXITC_ERROR, CRM_EX_ERROR, "Connection to cluster failed: %s", pcmk_rc_str(rc)); rc 1324 tools/crm_mon.c clean_up(pcmk_rc2exitc(rc)); rc 1330 tools/crm_mon.c int rc = pcmk__status(out, cib, fence_history, show, show_opts, rc 1335 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 1336 tools/crm_mon.c clean_up(pcmk_rc2exitc(rc)); rc 1338 tools/crm_mon.c clean_up_on_connection_failure(rc); rc 1357 tools/crm_mon.c int rc = pcmk_rc_ok; rc 1480 tools/crm_mon.c rc = pcmk__output_new(&out, "text", args->output_dest, argv); rc 1482 tools/crm_mon.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 1485 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1487 tools/crm_mon.c args->output_ty, pcmk_rc_str(rc)); rc 1591 tools/crm_mon.c rc = pacemakerd_status(); rc 1592 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 1594 tools/crm_mon.c rc = cib_connect(); rc 1597 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1609 tools/crm_mon.c } while (rc == ENOTCONN); rc 1611 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1612 tools/crm_mon.c clean_up_on_connection_failure(rc); rc 1652 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, rc 1658 tools/crm_mon.c char *rc_s = pcmk__itoa(rc); rc 1697 tools/crm_mon.c int rc = -1; rc 1734 tools/crm_mon.c if (!decode_transition_magic(magic, NULL, NULL, NULL, &status, &rc, rc 1770 tools/crm_mon.c if ((status == PCMK_EXEC_DONE) && (target_rc == rc)) { rc 1772 tools/crm_mon.c if (rc == PCMK_OCF_NOT_RUNNING) { rc 1777 tools/crm_mon.c desc = services_ocf_exitcode_str(rc); rc 1786 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); rc 1931 tools/crm_mon.c int rc = -1; rc 1939 tools/crm_mon.c rc = xml_apply_patchset(current_cib, diff, TRUE); rc 1941 tools/crm_mon.c switch (rc) { rc 1944 tools/crm_mon.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 1951 tools/crm_mon.c crm_notice("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 1991 tools/crm_mon.c int rc = pcmk_rc_ok; rc 2009 tools/crm_mon.c rc = pcmk__output_cluster_status(out, st, cib, current_cib, fence_history, rc 2014 tools/crm_mon.c if (output_format == mon_output_monitor && rc != pcmk_rc_ok) { rc 2017 tools/crm_mon.c } else if (rc == pcmk_rc_schema_validation) { rc 295 tools/crm_mon_curses.c int rc = OK; rc 305 tools/crm_mon_curses.c rc = echo(); rc 308 tools/crm_mon_curses.c if (rc == OK) { rc 320 tools/crm_mon_curses.c rc = scanw((NCURSES_CONST char *) "%1023s", *dest); rc 324 tools/crm_mon_curses.c if (rc < 1) { rc 445 tools/crm_mon_curses.c int rc = pcmk_rc_no_output; rc 448 tools/crm_mon_curses.c rc = pcmk__cluster_status_text(out, args); rc 450 tools/crm_mon_curses.c return rc; rc 268 tools/crm_node.c int rc; rc 274 tools/crm_node.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 275 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 277 tools/crm_node.c pcmk_rc_str(rc)); rc 283 tools/crm_node.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_main); rc 284 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 286 tools/crm_node.c pcmk_rc_str(rc)); rc 287 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 292 tools/crm_node.c rc = pcmk_controld_api_list_nodes(controld_api); rc 294 tools/crm_node.c rc = pcmk_controld_api_node_info(controld_api, nodeid); rc 296 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 298 tools/crm_node.c pcmk_rc_str(rc)); rc 300 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 332 tools/crm_node.c int rc; rc 356 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_NODES, node, cib_sync_call); rc 357 tools/crm_node.c if (rc != pcmk_ok) { rc 359 tools/crm_node.c name, id, pcmk_strerror(rc)); rc 361 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, node_state, cib_sync_call); rc 362 tools/crm_node.c if (rc != pcmk_ok) { rc 364 tools/crm_node.c name, id, pcmk_strerror(rc)); rc 368 tools/crm_node.c return rc; rc 375 tools/crm_node.c int rc; rc 378 tools/crm_node.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 379 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 381 tools/crm_node.c pcmk_rc_str(rc)); rc 386 tools/crm_node.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_sync); rc 387 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 389 tools/crm_node.c pcmk_rc_str(rc)); rc 391 tools/crm_node.c return rc; rc 394 tools/crm_node.c rc = pcmk_ipc_purge_node(controld_api, node_name, nodeid); rc 395 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 398 tools/crm_node.c pcmk_rc_str(rc)); rc 408 tools/crm_node.c int rc = -1; rc 447 tools/crm_node.c rc = crm_ipc_send(conn, cmd, 0, 0, NULL); rc 449 tools/crm_node.c target, node_name, nodeid, rc); rc 451 tools/crm_node.c if (rc > 0) { rc 453 tools/crm_node.c rc = cib_remove_node(nodeid, node_name); rc 461 tools/crm_node.c return rc > 0 ? 0 : rc; rc 467 tools/crm_node.c int rc; rc 488 tools/crm_node.c rc = controller_remove_node(node_name, nodeid); rc 489 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 490 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 948 tools/crm_resource.c int rc = pcmk_rc_ok; rc 957 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, rc 976 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, rc 980 tools/crm_resource.c rc = EINVAL; rc 991 tools/crm_resource.c rc = EINVAL; rc 999 tools/crm_resource.c return rc; rc 1005 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1013 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, options.operation, rc 1016 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !out->is_quiet(out)) { rc 1021 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1034 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1041 tools/crm_resource.c rc = cli_resource_clear_all_expired(data_set->input, cib_conn, options.cib_options, rc 1048 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1052 tools/crm_resource.c return rc; rc 1054 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, dest->details->uname, NULL, rc 1058 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, NULL, data_set->nodes, rc 1063 tools/crm_resource.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_xml_copy, cib_scope_local | cib_sync_call); rc 1064 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1066 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1067 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1068 tools/crm_resource.c "Could not get modified CIB: %s\n", pcmk_strerror(rc)); rc 1072 tools/crm_resource.c return rc; rc 1090 tools/crm_resource.c return rc; rc 1096 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1100 tools/crm_resource.c rc = ENXIO; rc 1101 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1103 tools/crm_resource.c return rc; rc 1109 tools/crm_resource.c rc = cib_conn->cmds->remove(cib_conn, XML_CIB_TAG_RESOURCES, msg_data, rc 1111 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1113 tools/crm_resource.c return rc; rc 1119 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1124 tools/crm_resource.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 1125 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1133 tools/crm_resource.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, agent_spec, provider); rc 1135 tools/crm_resource.c if (rc > 0) { rc 1136 tools/crm_resource.c rc = out->message(out, "agents-list", list, agent_spec, provider); rc 1138 tools/crm_resource.c rc = pcmk_rc_error; rc 1142 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1144 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1147 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1154 tools/crm_resource.c return rc; rc 1160 tools/crm_resource.c int rc; rc 1165 tools/crm_resource.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 1166 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1172 tools/crm_resource.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, agent_spec, &list); rc 1174 tools/crm_resource.c if (rc > 0) { rc 1175 tools/crm_resource.c rc = out->message(out, "alternatives-list", list, agent_spec); rc 1177 tools/crm_resource.c rc = pcmk_rc_error; rc 1183 tools/crm_resource.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 1185 tools/crm_resource.c if (rc > 0) { rc 1186 tools/crm_resource.c rc = out->message(out, "standards-list", list); rc 1188 tools/crm_resource.c rc = pcmk_rc_error; rc 1194 tools/crm_resource.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, agent_spec, &list); rc 1196 tools/crm_resource.c if (rc > 0) { rc 1197 tools/crm_resource.c rc = out->message(out, "providers-list", list, agent_spec); rc 1199 tools/crm_resource.c rc = pcmk_rc_error; rc 1211 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1213 tools/crm_resource.c rc = ENXIO; rc 1214 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1218 tools/crm_resource.c rc = ENXIO; rc 1219 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1225 tools/crm_resource.c return rc; rc 1231 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1236 tools/crm_resource.c rc = pcmk_rc_cib_corrupt; rc 1239 tools/crm_resource.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_xml_copy, cib_scope_local | cib_sync_call); rc 1240 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1243 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1246 tools/crm_resource.c rc = ENOMEM; rc 1251 tools/crm_resource.c rc = update_working_set_xml(data_set, cib_xml_copy); rc 1255 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1258 tools/crm_resource.c return rc; rc 1268 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1278 tools/crm_resource.c rc = ENXIO; rc 1279 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1282 tools/crm_resource.c return rc; rc 1292 tools/crm_resource.c rc = pcmk_rc_ok; rc 1293 tools/crm_resource.c return rc; rc 1298 tools/crm_resource.c rc = pcmk__node_attr_request_clear(NULL, options.host_uname, rc 1307 tools/crm_resource.c return rc; rc 1313 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1321 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, NULL, rc 1324 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !out->is_quiet(out)) { rc 1329 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1337 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1343 tools/crm_resource.c rc = ENXIO; rc 1344 tools/crm_resource.c return rc; rc 1349 tools/crm_resource.c rc = ENXIO; rc 1350 tools/crm_resource.c return rc; rc 1359 tools/crm_resource.c rc = cib_conn->cmds->modify(cib_conn, XML_CIB_TAG_RESOURCES, msg_data, rc 1361 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1364 tools/crm_resource.c return rc; rc 1370 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1377 tools/crm_resource.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 1378 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1379 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1382 tools/crm_resource.c return rc; rc 1385 tools/crm_resource.c rc = crm_parse_agent_spec(agent_spec, &standard, &provider, &type); rc 1386 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1388 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1389 tools/crm_resource.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, standard, rc 1392 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1403 tools/crm_resource.c rc = ENXIO; rc 1404 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1406 tools/crm_resource.c agent_spec, pcmk_rc_str(rc)); rc 1409 tools/crm_resource.c rc = ENXIO; rc 1410 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1415 tools/crm_resource.c return rc; rc 1536 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1558 tools/crm_resource.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 1559 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1562 tools/crm_resource.c args->output_ty, pcmk_rc_str(rc)); rc 1597 tools/crm_resource.c int rc = sscanf(*s, "%[^=]=%s", name, value); rc 1599 tools/crm_resource.c if (rc == 2) { rc 1730 tools/crm_resource.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 1731 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1732 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1733 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1735 tools/crm_resource.c "Could not connect to the CIB: %s", pcmk_rc_str(rc)); rc 1742 tools/crm_resource.c rc = populate_working_set(&cib_xml_copy); rc 1743 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1744 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1787 tools/crm_resource.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 1788 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1789 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1791 tools/crm_resource.c "Error connecting to the controller: %s", pcmk_rc_str(rc)); rc 1796 tools/crm_resource.c rc = pcmk_connect_ipc(controld_api, pcmk_ipc_dispatch_main); rc 1797 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1798 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1800 tools/crm_resource.c "Error connecting to the controller: %s", pcmk_rc_str(rc)); rc 1813 tools/crm_resource.c rc = out->message(out, "resource-list", data_set, rc 1818 tools/crm_resource.c if (rc == pcmk_rc_no_output) { rc 1819 tools/crm_resource.c rc = ENXIO; rc 1825 tools/crm_resource.c rc = out->message(out, "resource-names-list", data_set->resources); rc 1827 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1828 tools/crm_resource.c rc = ENXIO; rc 1836 tools/crm_resource.c rc = list_providers(out, options.agent_spec); rc 1840 tools/crm_resource.c rc = list_agents(out, options.agent_spec); rc 1844 tools/crm_resource.c rc = show_metadata(out, options.agent_spec); rc 1853 tools/crm_resource.c rc = cli_resource_restart(out, rsc, node, options.move_lifetime, rc 1860 tools/crm_resource.c rc = wait_till_stable(out, options.timeout_ms, cib_conn); rc 1881 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1883 tools/crm_resource.c rc = pcmk__resource_digests(out, rsc, node, rc 1889 tools/crm_resource.c rc = out->message(out, "stacks-constraints", rsc, data_set, false); rc 1893 tools/crm_resource.c rc = out->message(out, "stacks-constraints", rsc, data_set, true); rc 1897 tools/crm_resource.c rc = pcmk_rc_ok; rc 1903 tools/crm_resource.c rc = cli_resource_fail(controld_api, options.host_uname, rc 1905 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1911 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rc 1917 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rc 1924 tools/crm_resource.c rc = out->message(out, "resource-search-list", nodes, options.rsc_id); rc 1930 tools/crm_resource.c rc = cli_resource_print(rsc, data_set, TRUE); rc 1934 tools/crm_resource.c rc = cli_resource_print(rsc, data_set, FALSE); rc 1939 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1941 tools/crm_resource.c rc = out->message(out, "resource-reasons-list", cib_conn, rc 1947 tools/crm_resource.c rc = clear_constraints(out, &cib_xml_copy); rc 1952 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); rc 1954 tools/crm_resource.c rc = cli_resource_move(rsc, options.rsc_id, options.host_uname, rc 1961 tools/crm_resource.c if (rc == EINVAL) { rc 1970 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); rc 1972 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1974 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, rc 1980 tools/crm_resource.c if (rc == EINVAL) { rc 1988 tools/crm_resource.c rc = out->message(out, "property-list", rsc, options.prop_name); rc 1989 tools/crm_resource.c if (rc == pcmk_rc_no_output) { rc 1990 tools/crm_resource.c rc = ENXIO; rc 1996 tools/crm_resource.c rc = set_property(); rc 2027 tools/crm_resource.c rc = out->message(out, "attribute-list", rsc, options.prop_name, params); rc 2043 tools/crm_resource.c rc = cli_resource_update_attribute(rsc, options.rsc_id, rc 2056 tools/crm_resource.c rc = cli_resource_delete_attribute(rsc, options.rsc_id, rc 2067 tools/crm_resource.c rc = cli_cleanup_all(controld_api, options.host_uname, rc 2070 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 2080 tools/crm_resource.c rc = refresh(out); rc 2087 tools/crm_resource.c rc = delete(); rc 2098 tools/crm_resource.c if (rc != pcmk_rc_ok && rc != pcmk_rc_no_output) { rc 2099 tools/crm_resource.c if (rc == pcmk_rc_no_quorum) { rc 2103 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 82 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 88 tools/crm_resource_ban.c for(; n && rc == pcmk_rc_ok; n = n->next) { rc 91 tools/crm_resource_ban.c rc = cli_resource_ban(out, rsc_id, target->details->uname, move_lifetime, rc 94 tools/crm_resource_ban.c return rc; rc 150 tools/crm_resource_ban.c rc = cib_conn->cmds->update(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 151 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 155 tools/crm_resource_ban.c return rc; rc 165 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 216 tools/crm_resource_ban.c rc = cib_conn->cmds->update(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 217 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 221 tools/crm_resource_ban.c return rc; rc 248 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 254 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, xpath_string, NULL, cib_xpath | cib_options); rc 255 tools/crm_resource_ban.c if (rc == -ENXIO) { rc 256 tools/crm_resource_ban.c rc = pcmk_rc_ok; rc 258 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 262 tools/crm_resource_ban.c return rc; rc 270 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 288 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 289 tools/crm_resource_ban.c if (rc == -ENXIO) { rc 290 tools/crm_resource_ban.c rc = pcmk_rc_ok; rc 292 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 296 tools/crm_resource_ban.c return rc; rc 304 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 311 tools/crm_resource_ban.c rc = resource_clear_node_in_expr(rsc_id, host, cib_conn, cib_options); rc 317 tools/crm_resource_ban.c if (rc == pcmk_rc_ok) { rc 318 tools/crm_resource_ban.c rc = resource_clear_node_in_location(rsc_id, host, cib_conn, rc 332 tools/crm_resource_ban.c rc = cli_resource_clear(rsc_id, target->details->uname, NULL, rc 335 tools/crm_resource_ban.c if (rc != pcmk_rc_ok) { rc 341 tools/crm_resource_ban.c return rc; rc 425 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 461 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, XML_CIB_TAG_CONSTRAINTS, rc 463 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 465 tools/crm_resource_ban.c if (rc != pcmk_rc_ok) { rc 480 tools/crm_resource_ban.c return rc; rc 93 tools/crm_resource_print.c int rc = pcmk_rc_no_output; rc 97 tools/crm_resource_print.c return rc; rc 101 tools/crm_resource_print.c rc = pcmk_rc_ok; rc 109 tools/crm_resource_print.c return rc; rc 164 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 177 tools/crm_resource_print.c type, (int) rc, services_ocf_exitcode_str((int) rc), rc 209 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 212 tools/crm_resource_print.c char *exit_str = pcmk__itoa(rc); rc 217 tools/crm_resource_print.c "message", services_ocf_exitcode_str((int) rc), rc 332 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 354 tools/crm_resource_print.c type, rc, exit_reason); rc 371 tools/crm_resource_print.c out->subprocess_output(out, rc, stdout_data, stderr_data); rc 391 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 427 tools/crm_resource_print.c type, rc, exit_reason); rc 439 tools/crm_resource_print.c out->subprocess_output(out, rc, stdout_data, stderr_data); rc 453 tools/crm_resource_print.c int rc = pcmk_rc_no_output; rc 483 tools/crm_resource_print.c rc = pcmk_rc_ok; rc 486 tools/crm_resource_print.c return rc; rc 527 tools/crm_resource_print.c int rc = pcmk_rc_no_output; rc 531 tools/crm_resource_print.c return rc; rc 540 tools/crm_resource_print.c rc = pcmk_rc_ok; rc 564 tools/crm_resource_print.c return rc; rc 21 tools/crm_resource_runtime.c resource_checks_t *rc = calloc(1, sizeof(resource_checks_t)); rc 27 tools/crm_resource_runtime.c rc->flags |= rsc_remain_stopped; rc 30 tools/crm_resource_runtime.c rc->flags |= rsc_unpromotable; rc 35 tools/crm_resource_runtime.c rc->flags |= rsc_unmanaged; rc 39 tools/crm_resource_runtime.c rc->lock_node = rsc->lock_node->details->uname; rc 42 tools/crm_resource_runtime.c rc->rsc = rsc; rc 43 tools/crm_resource_runtime.c return rc; rc 110 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 156 tools/crm_resource_runtime.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 158 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 160 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 168 tools/crm_resource_runtime.c rc = ENOTUNIQ; rc 186 tools/crm_resource_runtime.c return rc; rc 197 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 212 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, rc 216 tools/crm_resource_runtime.c if((0 == depth) || (pcmk_rc_ok == rc)) { rc 234 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 245 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 247 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, rsc_id, attr_set_type, rc 251 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 262 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, rc 265 tools/crm_resource_runtime.c if(rc == pcmk_rc_ok) { rc 293 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 309 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, uber_parent(rsc)->id, rc 312 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok && !out->is_quiet(out)) { rc 319 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 346 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, rc 349 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 353 tools/crm_resource_runtime.c } else if (rc != ENXIO) { rc 357 tools/crm_resource_runtime.c return rc; rc 386 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, XML_CIB_TAG_RESOURCES, xml_top, cib_options); rc 387 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 389 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 432 tools/crm_resource_runtime.c return rc; rc 444 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 467 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, rc 470 tools/crm_resource_runtime.c if (rc == ENXIO) { rc 472 tools/crm_resource_runtime.c rc = pcmk_rc_ok; rc 475 tools/crm_resource_runtime.c } else if (rc != pcmk_rc_ok) { rc 478 tools/crm_resource_runtime.c return rc; rc 489 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, XML_CIB_TAG_RESOURCES, xml_obj, cib_options); rc 490 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 492 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 503 tools/crm_resource_runtime.c return rc; rc 604 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 611 tools/crm_resource_runtime.c rc = send_lrm_rsc_op(controld_api, false, host_uname, rsc_id, data_set); rc 612 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 613 tools/crm_resource_runtime.c return rc; rc 622 tools/crm_resource_runtime.c return rc; rc 631 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 697 tools/crm_resource_runtime.c rc = clear_rsc_history(controld_api, node_name, failed_id, data_set); rc 698 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 699 tools/crm_resource_runtime.c return rc; rc 703 tools/crm_resource_runtime.c return rc; rc 711 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 718 tools/crm_resource_runtime.c rc = pcmk__node_attr_request_clear(NULL, node->details->uname, rsc_name, rc 722 tools/crm_resource_runtime.c return rc; rc 733 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 745 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, host_uname, child, operation, rc 748 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 749 tools/crm_resource_runtime.c return rc; rc 780 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, node->details->uname, rc 784 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 786 tools/crm_resource_runtime.c return rc; rc 814 tools/crm_resource_runtime.c rc = clear_rsc_fail_attrs(rsc, operation, interval_spec, node); rc 815 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 817 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_rc_str(rc)); rc 818 tools/crm_resource_runtime.c return rc; rc 822 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, host_uname, rsc->id, operation, rc 825 tools/crm_resource_runtime.c rc = clear_rsc_history(controld_api, host_uname, rsc->id, data_set); rc 827 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 829 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_strerror(rc)); rc 833 tools/crm_resource_runtime.c return rc; rc 843 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 850 tools/crm_resource_runtime.c return rc; rc 865 tools/crm_resource_runtime.c rc = pcmk__node_attr_request_clear(NULL, node_name, NULL, operation, rc 867 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 869 tools/crm_resource_runtime.c display_name, pcmk_rc_str(rc)); rc 870 tools/crm_resource_runtime.c return rc; rc 874 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node_name, NULL, rc 876 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 878 tools/crm_resource_runtime.c node_name, pcmk_strerror(rc)); rc 879 tools/crm_resource_runtime.c return rc; rc 885 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node->details->uname, NULL, rc 887 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 889 tools/crm_resource_runtime.c pcmk_strerror(rc)); rc 890 tools/crm_resource_runtime.c return rc; rc 896 tools/crm_resource_runtime.c return rc; rc 905 tools/crm_resource_runtime.c int rc = pcmk_rc_no_output; rc 917 tools/crm_resource_runtime.c rc = out->message(out, "resource-check-list", checks); rc 923 tools/crm_resource_runtime.c return rc; rc 1100 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1102 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 1103 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 1105 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1106 tools/crm_resource_runtime.c out->err(out, "Could not obtain the current CIB: %s (%d)", pcmk_strerror(rc), rc); rc 1107 tools/crm_resource_runtime.c return rc; rc 1109 tools/crm_resource_runtime.c rc = update_working_set_xml(data_set, &cib_xml_copy); rc 1110 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1113 tools/crm_resource_runtime.c return rc; rc 1116 tools/crm_resource_runtime.c return rc; rc 1126 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1132 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); rc 1133 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1134 tools/crm_resource_runtime.c return rc; rc 1146 tools/crm_resource_runtime.c rc = ENXIO; rc 1150 tools/crm_resource_runtime.c rc = write_xml_file(data_set->input, shadow_file, FALSE); rc 1152 tools/crm_resource_runtime.c if (rc < 0) { rc 1153 tools/crm_resource_runtime.c out->err(out, "Could not populate shadow cib: %s (%d)", pcmk_strerror(rc), rc); rc 1157 tools/crm_resource_runtime.c rc = shadow_cib->cmds->signon(shadow_cib, crm_system_name, cib_command); rc 1158 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 1160 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1161 tools/crm_resource_runtime.c out->err(out, "Could not connect to shadow cib: %s (%d)", pcmk_strerror(rc), rc); rc 1173 tools/crm_resource_runtime.c rc = update_dataset(shadow_cib, data_set, false); rc 1189 tools/crm_resource_runtime.c return rc; rc 1274 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1367 tools/crm_resource_runtime.c rc = ENOMEM; rc 1372 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, false); rc 1374 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1375 tools/crm_resource_runtime.c out->err(out, "Could not get new resource list: %s (%d)", pcmk_strerror(rc), rc); rc 1387 tools/crm_resource_runtime.c rc = cli_resource_ban(out, lookup_id, host, move_lifetime, NULL, cib, rc 1398 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, rc 1403 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1404 tools/crm_resource_runtime.c out->err(out, "Could not set target-role for %s: %s (%d)", rsc_id, pcmk_strerror(rc), rc); rc 1416 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, true); rc 1417 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1443 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); rc 1444 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1466 tools/crm_resource_runtime.c rc = ETIME; rc 1473 tools/crm_resource_runtime.c rc = cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); rc 1476 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, rc 1483 tools/crm_resource_runtime.c rc = cli_resource_delete_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, rc 1488 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1489 tools/crm_resource_runtime.c out->err(out, "Could not unset target-role for %s: %s (%d)", rsc_id, pcmk_strerror(rc), rc); rc 1518 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, false); rc 1519 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1543 tools/crm_resource_runtime.c rc = ETIME; rc 1549 tools/crm_resource_runtime.c rc = pcmk_rc_ok; rc 1582 tools/crm_resource_runtime.c return rc; rc 1663 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1685 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { /* this avoids sleep on first loop iteration */ rc 1691 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); rc 1692 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1694 tools/crm_resource_runtime.c return rc; rc 1721 tools/crm_resource_runtime.c return rc; rc 1851 tools/crm_resource_runtime.c if (op->rc != PCMK_OCF_UNKNOWN) { rc 1852 tools/crm_resource_runtime.c exit_code = op->rc; rc 1860 tools/crm_resource_runtime.c enum ocf_exitcode ocf_code = services_result2ocf(class, action, op->rc); rc 1945 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 2019 tools/crm_resource_runtime.c rc = cli_resource_prefer(out, rsc_id, dest->details->uname, move_lifetime, rc 2049 tools/crm_resource_runtime.c return rc; rc 173 tools/crm_rule.c int rc = pcmk_rc_ok; rc 193 tools/crm_rule.c rc = ENXIO; rc 194 tools/crm_rule.c g_set_error(&error, PCMK__RC_ERROR, rc, "No rule found with ID=%s", rule_id); rc 197 tools/crm_rule.c rc = ENXIO; rc 198 tools/crm_rule.c g_set_error(&error, PCMK__RC_ERROR, rc, "More than one rule with ID=%s found", rule_id); rc 211 tools/crm_rule.c rc = EOPNOTSUPP; rc 212 tools/crm_rule.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 235 tools/crm_rule.c rc = ENXIO; rc 236 tools/crm_rule.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 250 tools/crm_rule.c rc = eval_date_expression(match, effective_date, NULL); rc 251 tools/crm_rule.c out->message(out, "rule-check", rule_id, rc); rc 256 tools/crm_rule.c return rc; rc 282 tools/crm_rule.c int rc = pcmk_rc_ok; rc 300 tools/crm_rule.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 301 tools/crm_rule.c if (rc != pcmk_rc_ok) { rc 304 tools/crm_rule.c args->output_ty, pcmk_rc_str(rc)); rc 365 tools/crm_rule.c rc = cib__signon_query(NULL, &input); rc 367 tools/crm_rule.c if (rc != pcmk_rc_ok) { rc 368 tools/crm_rule.c exit_code = pcmk_rc2exitc(rc); rc 370 tools/crm_rule.c "CIB query failed: %s", pcmk_rc_str(rc)); rc 399 tools/crm_rule.c rc = last_rc; rc 403 tools/crm_rule.c exit_code = pcmk_rc2exitc(rc); rc 247 tools/crm_shadow.c int rc = pcmk_ok; rc 415 tools/crm_shadow.c rc = real_cib->cmds->signon(real_cib, crm_system_name, cib_command); rc 416 tools/crm_shadow.c if (rc != pcmk_ok) { rc 418 tools/crm_shadow.c pcmk_strerror(rc)); rc 419 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 425 tools/crm_shadow.c rc = stat(shadow_file, &buf); rc 427 tools/crm_shadow.c if (rc == 0 && force_flag == FALSE) { rc 434 tools/crm_shadow.c } else if (rc < 0) { rc 445 tools/crm_shadow.c rc = real_cib->cmds->query(real_cib, NULL, &output, command_options); rc 446 tools/crm_shadow.c if (rc != pcmk_ok) { rc 448 tools/crm_shadow.c pcmk_strerror(rc)); rc 449 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 462 tools/crm_shadow.c rc = write_xml_file(output, shadow_file, FALSE); rc 465 tools/crm_shadow.c if (rc < 0) { rc 468 tools/crm_shadow.c shadow, pcmk_strerror(rc)); rc 469 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 510 tools/crm_shadow.c rc = real_cib->cmds->query(real_cib, NULL, &old_config, command_options); rc 512 tools/crm_shadow.c if (rc != pcmk_ok) { rc 513 tools/crm_shadow.c fprintf(stderr, "Could not query the CIB: %s\n", pcmk_strerror(rc)); rc 514 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 542 tools/crm_shadow.c rc = real_cib->cmds->replace(real_cib, section, section_xml, rc 544 tools/crm_shadow.c if (rc != pcmk_ok) { rc 546 tools/crm_shadow.c shadow, pcmk_strerror(rc)); rc 547 tools/crm_shadow.c exit_code = crm_errno2exit(rc); rc 347 tools/crm_simulate.c int rc = pcmk_rc_ok; rc 353 tools/crm_simulate.c rc = cib__signon_query(NULL, &cib_object); rc 354 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 355 tools/crm_simulate.c g_set_error(error, PCMK__RC_ERROR, rc, rc 356 tools/crm_simulate.c "CIB query failed: %s", pcmk_rc_str(rc)); rc 357 tools/crm_simulate.c return rc; rc 390 tools/crm_simulate.c rc = write_xml_file(cib_object, output, FALSE); rc 394 tools/crm_simulate.c if (rc < 0) { rc 395 tools/crm_simulate.c rc = pcmk_legacy2rc(rc); rc 397 tools/crm_simulate.c "Could not create '%s': %s", output, pcmk_rc_str(rc)); rc 398 tools/crm_simulate.c return rc; rc 452 tools/crm_simulate.c int rc = pcmk_rc_ok; rc 465 tools/crm_simulate.c rc = ENOMEM; rc 480 tools/crm_simulate.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 481 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 483 tools/crm_simulate.c args->output_ty, pcmk_rc_str(rc)); rc 518 tools/crm_simulate.c rc = ENOMEM; rc 519 tools/crm_simulate.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not allocate working set"); rc 534 tools/crm_simulate.c rc = pcmk_rc_ok; rc 538 tools/crm_simulate.c rc = setup_input(options.xml_file, options.store ? options.xml_file : options.output_file, &error); rc 539 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 543 tools/crm_simulate.c rc = pcmk__simulate(data_set, out, options.injections, options.flags, section_opts, rc 574 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 575 tools/crm_simulate.c exit_code = pcmk_rc2exitc(rc); rc 346 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 363 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 365 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 367 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 383 tools/crm_ticket.c return rc; rc 390 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 415 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 417 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 419 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 428 tools/crm_ticket.c return rc; rc 434 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 437 tools/crm_ticket.c rc = find_ticket_state(the_cib, ticket_id, &state_xml); rc 440 tools/crm_ticket.c return rc; rc 453 tools/crm_ticket.c return rc; rc 459 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 463 tools/crm_ticket.c rc = find_ticket_constraints(the_cib, ticket_id, &cons_xml); rc 466 tools/crm_ticket.c return rc; rc 474 tools/crm_ticket.c return rc; rc 579 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 592 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 593 tools/crm_ticket.c if (rc == pcmk_rc_ok) { rc 598 tools/crm_ticket.c } else if (rc != ENXIO) { rc 599 tools/crm_ticket.c return rc; rc 637 tools/crm_ticket.c rc = cib->cmds->replace(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); rc 638 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 642 tools/crm_ticket.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); rc 643 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 647 tools/crm_ticket.c return rc; rc 655 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 657 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 659 tools/crm_ticket.c if (rc == ENXIO) { rc 662 tools/crm_ticket.c } else if (rc != pcmk_rc_ok) { rc 663 tools/crm_ticket.c return rc; rc 668 tools/crm_ticket.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); rc 669 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 671 tools/crm_ticket.c if (rc == pcmk_rc_ok) { rc 676 tools/crm_ticket.c return rc; rc 737 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 779 tools/crm_ticket.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 780 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 782 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 783 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 785 tools/crm_ticket.c pcmk_rc_str(rc)); rc 793 tools/crm_ticket.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 794 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 796 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 797 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 799 tools/crm_ticket.c pcmk_rc_str(rc)); rc 846 tools/crm_ticket.c rc = dump_ticket_xml(cib_conn, options.ticket_id); rc 847 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 849 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 851 tools/crm_ticket.c "Could not query ticket XML: %s", pcmk_rc_str(rc)); rc 855 tools/crm_ticket.c rc = dump_constraints(cib_conn, options.ticket_id); rc 856 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 858 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 860 tools/crm_ticket.c "Could not show ticket constraints: %s", pcmk_rc_str(rc)); rc 873 tools/crm_ticket.c rc = get_ticket_state_attr(options.ticket_id, options.get_attr_name, &value, data_set); rc 874 tools/crm_ticket.c if (rc == pcmk_rc_ok) { rc 876 tools/crm_ticket.c } else if (rc == ENXIO && options.attr_default) { rc 878 tools/crm_ticket.c rc = pcmk_rc_ok; rc 880 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 908 tools/crm_ticket.c rc = delete_ticket_state(options.ticket_id, cib_conn); rc 909 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 911 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 913 tools/crm_ticket.c "Could not clean up ticket: %s", pcmk_rc_str(rc)); rc 947 tools/crm_ticket.c rc = modify_ticket_state(options.ticket_id, cib_conn, data_set); rc 948 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 950 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 952 tools/crm_ticket.c "Could not modify ticket: %s", pcmk_rc_str(rc)); rc 1003 tools/crm_ticket.c if (rc == pcmk_rc_no_quorum) { rc 1004 tools/crm_ticket.c g_set_error(&error, PCMK__RC_ERROR, rc, "Use --force to ignore quorum"); rc 111 tools/crm_verify.c int rc = pcmk_rc_ok; rc 131 tools/crm_verify.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 132 tools/crm_verify.c if (rc != pcmk_rc_ok) { rc 135 tools/crm_verify.c args->output_ty, pcmk_rc_str(rc)); rc 150 tools/crm_verify.c rc = cib__signon_query(NULL, &cib_object); rc 152 tools/crm_verify.c if (rc != pcmk_rc_ok) { rc 153 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, "CIB query failed: %s", pcmk_rc_str(rc)); rc 160 tools/crm_verify.c rc = ENODATA; rc 161 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, "Couldn't parse input file: %s", options.xml_file); rc 168 tools/crm_verify.c rc = ENODATA; rc 169 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, "Couldn't parse input string: %s", options.xml_string); rc 175 tools/crm_verify.c rc = ENODATA; rc 176 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, "Couldn't parse input from STDIN."); rc 181 tools/crm_verify.c rc = ENODATA; rc 182 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 189 tools/crm_verify.c rc = EBADMSG; rc 190 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 220 tools/crm_verify.c rc = errno; rc 243 tools/crm_verify.c rc = pcmk_rc_schema_validation; rc 246 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 249 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 254 tools/crm_verify.c rc = pcmk_rc_schema_validation; rc 257 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 260 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 273 tools/crm_verify.c exit_code = pcmk_rc2exitc(rc); rc 176 tools/crmadmin.c int rc; rc 196 tools/crmadmin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 197 tools/crmadmin.c if (rc != pcmk_rc_ok) { rc 200 tools/crmadmin.c args->output_ty, pcmk_rc_str(rc)); rc 238 tools/crmadmin.c rc = pcmk__controller_status(out, options.optarg, options.timeout); rc 241 tools/crmadmin.c rc = pcmk__pacemakerd_status(out, options.ipc_name, options.timeout); rc 244 tools/crmadmin.c rc = pcmk__list_nodes(out, options.optarg, options.BASH_EXPORT); rc 247 tools/crmadmin.c rc = pcmk__designated_controller(out, options.timeout); rc 250 tools/crmadmin.c rc = pcmk_rc_error; rc 254 tools/crmadmin.c if (rc != pcmk_rc_ok) { rc 255 tools/crmadmin.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); rc 256 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 276 tools/stonith_admin.c int rc = 0; rc 281 tools/stonith_admin.c rc = pcmk__scan_nvpair(optarg, &name, &value); rc 283 tools/stonith_admin.c if (rc != 2) { rc 284 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 285 tools/stonith_admin.c g_set_error(error, PCMK__RC_ERROR, rc, "Invalid option: -o %s: %s", optarg, pcmk_rc_str(rc)); rc 340 tools/stonith_admin.c int rc = pcmk__request_fencing(st, target, command, name, rc 345 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 346 tools/stonith_admin.c const char *rc_str = pcmk_rc_str(rc); rc 355 tools/stonith_admin.c g_set_error(error, PCMK__RC_ERROR, rc, rc 363 tools/stonith_admin.c return rc; rc 369 tools/stonith_admin.c int rc = 0; rc 399 tools/stonith_admin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 400 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 403 tools/stonith_admin.c args->output_ty, pcmk_rc_str(rc)); rc 531 tools/stonith_admin.c rc = -ENOMEM; rc 533 tools/stonith_admin.c rc = st->cmds->connect(st, name, NULL); rc 535 tools/stonith_admin.c if (rc < 0) { rc 536 tools/stonith_admin.c out->err(out, "Could not connect to fencer: %s", pcmk_strerror(rc)); rc 543 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); rc 544 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 545 tools/stonith_admin.c out->err(out, "Failed to list installed devices: %s", pcmk_strerror(rc)); rc 551 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); rc 552 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 553 tools/stonith_admin.c out->err(out, "Failed to list registered devices: %s", pcmk_strerror(rc)); rc 559 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); rc 560 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 561 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); rc 563 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 567 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); rc 568 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 569 tools/stonith_admin.c out->err(out, "Couldn't list targets: %s", pcmk_strerror(rc)); rc 575 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, rc 577 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 581 tools/stonith_admin.c rc = st->cmds->remove_device(st, st_opts, device); rc 582 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 586 tools/stonith_admin.c rc = pcmk__fence_unregister_level(st, target, options.fence_level); rc 590 tools/stonith_admin.c rc = pcmk__fence_register_level(st, target, options.fence_level, options.devices); rc 594 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); rc 595 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 596 tools/stonith_admin.c out->err(out, "Can't get fence agent meta-data: %s", pcmk_strerror(rc)); rc 602 tools/stonith_admin.c rc = st->cmds->confirm(st, st_opts, target); rc 603 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 607 tools/stonith_admin.c rc = request_fencing(st, target, "reboot", &error); rc 611 tools/stonith_admin.c rc = request_fencing(st, target, "off", &error); rc 615 tools/stonith_admin.c rc = request_fencing(st, target, "on", &error); rc 619 tools/stonith_admin.c rc = pcmk__fence_last(out, target, options.as_nodeid); rc 623 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, rc 629 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, rc 634 tools/stonith_admin.c crm_info("Command returned: %s (%d)", pcmk_rc_str(rc), rc); rc 635 tools/stonith_admin.c exit_code = pcmk_rc2exitc(rc);