rc 275 attrd/attrd_common.c int rc; rc 290 attrd/attrd_common.c rc = regcomp(regex, pattern, REG_EXTENDED|REG_NOSUB); rc 293 attrd/attrd_common.c return (rc == 0)? pcmk_ok : -EINVAL; rc 90 attrd/attrd_common_alerts.c config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 94 attrd/attrd_common_alerts.c if (rc == -ENXIO) { rc 97 attrd/attrd_common_alerts.c } else if (rc != pcmk_ok) { rc 98 attrd/attrd_common_alerts.c crm_notice("Could not query local CIB: %s", pcmk_strerror(rc)); rc 448 attrd/commands.c ssize_t rc; rc 475 attrd/commands.c if ((rc = crm_ipcs_send(client, id, reply, flags)) < 0) { rc 477 attrd/commands.c origin, pcmk_strerror(-rc), -rc); rc 536 attrd/commands.c enum election_result rc = 0; rc 539 attrd/commands.c rc = election_count_vote(writer, xml, TRUE); rc 540 attrd/commands.c switch(rc) { rc 877 attrd/commands.c enum election_result rc = election_state(writer); rc 878 attrd/commands.c if(rc == election_won) { rc 881 attrd/commands.c } else if(rc == election_in_progress) { rc 889 attrd/commands.c crm_trace("%s will write out %s, we are in state %d", peer_writer, a->id, rc); rc 933 attrd/commands.c attrd_cib_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 949 attrd/commands.c if (rc == pcmk_ok && call_id < 0) { rc 950 attrd/commands.c rc = call_id; rc 953 attrd/commands.c switch (rc) { rc 967 attrd/commands.c do_crm_log(level, "Update %d for %s: %s (%d)", call_id, name, pcmk_strerror(rc), rc); rc 971 attrd/commands.c do_crm_log(level, "Update %d for %s[%s]=%s: %s (%d)", call_id, a->id, peer, v->requested, pcmk_strerror(rc), rc); rc 974 attrd/commands.c if (rc != pcmk_ok) { rc 1063 attrd/commands.c int rc = 0; rc 1070 attrd/commands.c rc = attrd_send_attribute_alert(at->nodename, at->nodeid, rc 1073 attrd/commands.c a->id, at->nodename, at->current, at->nodeid, rc); rc 273 attrd/legacy.c remote_clear_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 276 attrd/legacy.c if (rc == 0) { rc 280 attrd/legacy.c pcmk_strerror(rc), call_id, (char *) user_data, rc); rc 342 attrd/legacy.c int rc = pcmk_ok; rc 393 attrd/legacy.c rc = the_cib->cmds->delete(the_cib, xpath, NULL, cib_xpath|cib_multiple); rc 394 attrd/legacy.c register_cib_callback(rc, xpath, remote_clear_callback, free); rc 569 attrd/legacy.c int rc = -ENOTCONN; rc 573 attrd/legacy.c rc = local_conn->cmds->signon(local_conn, T_ATTRD, cib_command); rc 576 attrd/legacy.c if (rc != pcmk_ok && attempts > max_retry) { rc 577 attrd/legacy.c crm_err("Signon to CIB failed: %s", pcmk_strerror(rc)); rc 580 attrd/legacy.c } else if (rc != pcmk_ok) { rc 589 attrd/legacy.c int rc = local_conn->cmds->set_connection_dnotify(local_conn, attrd_cib_connection_destroy); rc 591 attrd/legacy.c if (rc != pcmk_ok) { rc 774 attrd/legacy.c attrd_cib_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 779 attrd/legacy.c if (data->value == NULL && rc == -ENXIO) { rc 780 attrd/legacy.c rc = pcmk_ok; rc 787 attrd/legacy.c switch (rc) { rc 806 attrd/legacy.c call_id, data->attr, data->value, pcmk_strerror(rc)); rc 810 attrd/legacy.c call_id, data->attr, data->value, pcmk_strerror(rc)); rc 817 attrd/legacy.c int rc = pcmk_ok; rc 839 attrd/legacy.c rc = delete_attr_delegate(the_cib, cib_none, hash_entry->section, attrd_uuid, NULL, rc 843 attrd/legacy.c if (rc >= 0 && hash_entry->stored_value) { rc 845 attrd/legacy.c rc, attrd_uuid, hash_entry->id, rc 849 attrd/legacy.c } else if (rc < 0 && rc != -ENXIO) { rc 853 attrd/legacy.c hash_entry->set, hash_entry->section, pcmk_strerror(rc), rc); rc 857 attrd/legacy.c rc, attrd_uuid, hash_entry->id, rc 863 attrd/legacy.c rc = update_attr_delegate(the_cib, cib_none, hash_entry->section, rc 866 attrd/legacy.c if (rc < 0) { rc 868 attrd/legacy.c hash_entry->value, pcmk_strerror(rc), rc); rc 870 attrd/legacy.c crm_notice("Sent update %d: %s=%s", rc, hash_entry->id, hash_entry->value); rc 872 attrd/legacy.c crm_trace("Sent update %d: %s=%s", rc, hash_entry->id, hash_entry->value); rc 883 attrd/legacy.c register_cib_callback(rc, data, attrd_cib_callback, free_attrd_callback); rc 978 attrd/legacy.c remote_attr_callback(xmlNode *msg, int id, int rc, xmlNode *output, void *data) rc 980 attrd/legacy.c if (rc == pcmk_ok) { rc 984 attrd/legacy.c (char *) data, pcmk_strerror(rc), id, rc); rc 1008 attrd/legacy.c int rc = pcmk_ok; rc 1020 attrd/legacy.c rc = -EINVAL; rc 1022 attrd/legacy.c rc = -ENOTCONN; rc 1024 attrd/legacy.c if (rc != pcmk_ok) { rc 1025 attrd/legacy.c remote_attr_callback(NULL, rc, rc, NULL, desc); rc 1031 attrd/legacy.c rc = delete_attr_delegate(the_cib, cib_none, section, rc 1035 attrd/legacy.c rc = update_attr_delegate(the_cib, cib_none, section, rc 1042 attrd/legacy.c crm_trace("%s submitted as CIB call %d", desc, rc); rc 1043 attrd/legacy.c register_cib_callback(rc, desc, remote_attr_callback, free); rc 1178 attrd/legacy.c int rc = regexec(®ex, hash_entry->id, 0, NULL, 0); rc 1180 attrd/legacy.c if (rc == 0) { rc 125 attrd/main.c attrd_erase_cb(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 128 attrd/main.c do_crm_log_unlikely((rc? LOG_NOTICE : LOG_DEBUG), rc 131 attrd/main.c pcmk_strerror(rc), (char *) user_data, rc); rc 171 attrd/main.c int rc = -ENOTCONN; rc 185 attrd/main.c rc = the_cib->cmds->signon(the_cib, T_ATTRD, cib_command); rc 187 attrd/main.c } while(rc != pcmk_ok && attempts < max_retry); rc 189 attrd/main.c if (rc != pcmk_ok) { rc 190 attrd/main.c crm_err("Signon to CIB failed: %s (%d)", pcmk_strerror(rc), rc); rc 196 attrd/main.c rc = the_cib->cmds->set_connection_dnotify(the_cib, attrd_cib_destroy_cb); rc 197 attrd/main.c if (rc != pcmk_ok) { rc 202 attrd/main.c rc = the_cib->cmds->add_notify_callback(the_cib, T_CIB_REPLACE_NOTIFY, attrd_cib_replaced_cb); rc 203 attrd/main.c if(rc != pcmk_ok) { rc 208 attrd/main.c rc = the_cib->cmds->add_notify_callback(the_cib, T_CIB_DIFF_NOTIFY, attrd_cib_updated_cb); rc 209 attrd/main.c if (rc != pcmk_ok) { rc 947 cib/callbacks.c int rc = pcmk_ok; rc 996 cib/callbacks.c rc = cib_get_operation_id(op, &call_type); rc 997 cib/callbacks.c if (rc != pcmk_ok) { rc 999 cib/callbacks.c crm_err("Pre-processing of command failed: %s", pcmk_strerror(rc)); rc 1046 cib/callbacks.c rc = cib_status; rc 1056 cib/callbacks.c crm_xml_add_int(op_reply, F_CIB_RC, rc); rc 1071 cib/callbacks.c rc = cib_process_command(request, &op_reply, &result_diff, privileged); rc 1077 cib/callbacks.c switch (rc) { rc 1090 cib/callbacks.c } else if (rc != pcmk_ok && is_update) { rc 1097 cib/callbacks.c op, section ? section : "'all'", pcmk_strerror(rc), rc, rc 1130 cib/callbacks.c rc == pcmk_ok && result_diff != NULL && !(call_options & cib_inhibit_bcast)) { rc 1160 cib/callbacks.c } else if (rc != pcmk_ok) { rc 1161 cib/callbacks.c crm_trace("Request not broadcast: call failed: %s", pcmk_strerror(rc)); rc 1201 cib/callbacks.c int rc = pcmk_ok; rc 1224 cib/callbacks.c rc = cib_get_operation_id(op, &call_type); rc 1226 cib/callbacks.c if (rc == pcmk_ok && privileged == FALSE) { rc 1227 cib/callbacks.c rc = cib_op_can_run(call_type, call_options, privileged, global_update); rc 1231 cib/callbacks.c if (rc == pcmk_ok) { rc 1232 cib/callbacks.c rc = rc2; rc 1235 cib/callbacks.c if (rc != pcmk_ok) { rc 1236 cib/callbacks.c crm_trace("Call setup failed: %s", pcmk_strerror(rc)); rc 1240 cib/callbacks.c rc = cib_perform_op(op, call_options, cib_op_func(call_type), TRUE, rc 1260 cib/callbacks.c if (rc == pcmk_ok) { rc 1276 cib/callbacks.c rc = cib_perform_op(op, call_options, cib_op_func(call_type), FALSE, rc 1302 cib/callbacks.c if (rc == pcmk_ok && is_not_set(call_options, cib_dryrun)) { rc 1309 cib/callbacks.c rc = activateCibXml(result_cib, config_changed, op); rc 1311 cib/callbacks.c crm_element_value(current_cib, XML_ATTR_NUMUPDATES), rc); rc 1314 cib/callbacks.c if (rc == pcmk_ok && cib_internal_config_changed(*cib_diff)) { rc 1339 cib/callbacks.c } else if (rc == -pcmk_err_schema_validation) { rc 1350 cib/callbacks.c crm_trace("Not activating %d %d %s", rc, is_set(call_options, cib_dryrun), crm_element_value(result_cib, XML_ATTR_NUMUPDATES)); rc 1360 cib/callbacks.c cib_diff_notify(call_options, client, call_id, op, input, rc, *cib_diff); rc 1366 cib/callbacks.c cib_replace_notify(origin, the_cib, rc, *cib_diff); rc 1380 cib/callbacks.c crm_xml_add_int(*reply, F_CIB_RC, rc); rc 1402 cib/callbacks.c return rc; rc 1515 cib/callbacks.c int rc = 0; rc 1525 cib/callbacks.c rc = (*ccm_api_handle_event) (ccm_token); rc 1526 cib/callbacks.c if (0 == rc) { rc 1530 cib/callbacks.c crm_err("CCM connection appears to have failed: rc=%d.", rc); rc 201 cib/cibmon.c int rc = -1; rc 214 cib/cibmon.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 218 cib/cibmon.c if (rc < pcmk_ok) { rc 220 cib/cibmon.c do_crm_log(log_level, "[%s] %s ABORTED: %s", event, op, pcmk_strerror(rc)); rc 235 cib/cibmon.c rc = cib_process_diff(op, cib_force_diff, NULL, NULL, diff, cib_last, &cib_copy, NULL); rc 237 cib/cibmon.c if (rc != pcmk_ok) { rc 238 cib/cibmon.c crm_debug("Update didn't apply, requesting full copy: %s", pcmk_strerror(rc)); rc 245 cib/cibmon.c rc = cib->cmds->query(cib, NULL, &cib_copy, cib_scope_local | cib_sync_call); rc 248 cib/cibmon.c if(rc == -EACCES) { rc 249 cib/cibmon.c crm_exit(rc); rc 327 cib/common.c if (rc == pcmk_ok rc 22 cib/common.h extern xmlNode *cib_construct_reply(xmlNode * request, xmlNode * output, int rc); rc 115 cib/io.c int rc = 0; rc 121 cib/io.c rc = errno; rc 122 cib/io.c crm_trace("%s - stat failed: %s (%d)", a->d_name, pcmk_strerror(rc), rc); rc 123 cib/io.c rc = 0; rc 151 cib/io.c rc = 1; rc 155 cib/io.c return rc; rc 161 cib/io.c int rc = 0; rc 181 cib/io.c rc = 1; rc 183 cib/io.c rc = -1; rc 188 cib/io.c b[0]->d_name, (unsigned long)b_age, rc); rc 189 cib/io.c return rc; rc 134 cib/main.c int rc = 0; rc 169 cib/main.c rc = setgid(pwentry->pw_gid); rc 170 cib/main.c if (rc < 0) { rc 175 cib/main.c rc = initgroups(CRM_DAEMON_GROUP, pwentry->pw_gid); rc 176 cib/main.c if (rc < 0) { rc 181 cib/main.c rc = setuid(pwentry->pw_uid); rc 182 cib/main.c if (rc < 0) { rc 241 cib/main.c rc = cib_init(); rc 255 cib/main.c return rc; rc 244 cib/messages.c int rc = pcmk_ok; rc 264 cib/messages.c rc = update_validation(&scratch, &new_version, 0, TRUE, TRUE); rc 268 cib/messages.c rc = pcmk_ok; rc 280 cib/messages.c rc = cib_process_upgrade( rc 289 cib/messages.c } else if(rc == pcmk_ok) { rc 290 cib/messages.c rc = -pcmk_err_schema_unchanged; rc 295 cib/messages.c return rc; rc 311 cib/messages.c int rc = pcmk_ok; rc 341 cib/messages.c rc = cib_process_diff(op, options, section, req, input, existing_cib, result_cib, answer); rc 342 cib/messages.c crm_trace("result: %s (%d), %s", pcmk_strerror(rc), rc, cib_is_master?"master":"slave"); rc 344 cib/messages.c if (rc == -pcmk_err_diff_resync && cib_is_master == FALSE) { rc 349 cib/messages.c } else if (rc == -pcmk_err_diff_resync) { rc 350 cib/messages.c rc = -pcmk_err_diff_failed; rc 355 cib/messages.c } else if ((rc != pcmk_ok) && !cib_is_master && cib_legacy_mode()) { rc 357 cib/messages.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 364 cib/messages.c return rc; rc 373 cib/messages.c int rc = rc 375 cib/messages.c if (rc == pcmk_ok && safe_str_eq(tag, XML_TAG_CIB)) { rc 378 cib/messages.c return rc; rc 143 cib/notify.c ssize_t rc = crm_ipc_prepare(0, xml, &iov, 0); rc 147 cib/notify.c if (rc > 0) { rc 150 cib/notify.c update.iov_size = rc; rc 154 cib/notify.c crm_notice("Notification failed: %s (%d)", pcmk_strerror(rc), rc); rc 97 cib/remote.c int rc; rc 149 cib/remote.c rc = setsockopt(*ssock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); rc 150 cib/remote.c if (rc < 0) { rc 290 cib/remote.c int rc; rc 312 cib/remote.c rc = crm_set_nonblocking(csock); rc 313 cib/remote.c if (rc < 0) { rc 315 cib/remote.c pcmk_strerror(rc), rc); rc 479 cib/remote.c int rc = 0; rc 484 cib/remote.c rc = gnutls_handshake(*client->remote->tls_session); rc 486 cib/remote.c if (rc < 0 && rc != GNUTLS_E_AGAIN) { rc 490 cib/remote.c } while (rc == GNUTLS_E_INTERRUPTED); rc 492 cib/remote.c if (rc == 0) { rc 634 cib/remote.c int rc = 0; rc 652 cib/remote.c rc = pam_start(pam_name, user, &p_conv, &pam_h); rc 653 cib/remote.c if (rc != PAM_SUCCESS) { rc 654 cib/remote.c crm_err("Could not initialize PAM: %s (%d)", pam_strerror(pam_h, rc), rc); rc 658 cib/remote.c rc = pam_authenticate(pam_h, 0); rc 659 cib/remote.c if (rc != PAM_SUCCESS) { rc 660 cib/remote.c crm_err("Authentication failed for %s: %s (%d)", user, pam_strerror(pam_h, rc), rc); rc 669 cib/remote.c rc = pam_get_item(pam_h, PAM_USER, &p_user); rc 670 cib/remote.c if (rc != PAM_SUCCESS) { rc 671 cib/remote.c crm_err("Internal PAM error: %s (%d)", pam_strerror(pam_h, rc), rc); rc 683 cib/remote.c rc = pam_acct_mgmt(pam_h, 0); rc 684 cib/remote.c if (rc != PAM_SUCCESS) { rc 685 cib/remote.c crm_err("Access denied: %s (%d)", pam_strerror(pam_h, rc), rc); rc 691 cib/remote.c pam_end(pam_h, rc); rc 22 crmd/attrd.c gboolean is_remote, char command, int rc) rc 42 crmd/attrd.c display_command, node_type, host, when, pcmk_strerror(rc), rc); rc 45 crmd/attrd.c name, value, node_type, host, when, pcmk_strerror(rc), rc); rc 59 crmd/attrd.c int rc; rc 82 crmd/attrd.c rc = attrd_update_delegate(attrd_ipc, command, host, name, value, rc 87 crmd/attrd.c rc = attrd_clear_delegate(attrd_ipc, host, name, value, interval, rc 91 crmd/attrd.c if (rc == pcmk_ok) { rc 94 crmd/attrd.c } else if (rc != -EAGAIN && rc != -EALREADY) { rc 96 crmd/attrd.c pcmk_strerror(rc), rc); rc 104 crmd/attrd.c if (rc != pcmk_ok) { rc 105 crmd/attrd.c log_attrd_error(host, name, value, is_remote_node, command, rc); rc 47 crmd/cib.c revision_check_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 53 crmd/cib.c if (rc != pcmk_ok) { rc 126 crmd/cib.c int rc = pcmk_ok; rc 133 crmd/cib.c rc = fsa_cib_conn->cmds->signon(fsa_cib_conn, CRM_SYSTEM_CRMD, cib_command_nonblocking); rc 135 crmd/cib.c if (rc != pcmk_ok) { rc 138 crmd/cib.c rc = fsa_cib_conn->cmds->signon(fsa_cib_conn, CRM_SYSTEM_CRMD, cib_command_nonblocking); rc 141 crmd/cib.c if (rc != pcmk_ok) { rc 142 crmd/cib.c crm_info("Could not connect to the CIB service: %s", pcmk_strerror(rc)); rc 253 crmd/control.c crmd_fast_exit(int rc) rc 257 crmd/control.c rc, DAEMON_RESPAWN_STOP); rc 258 crmd/control.c rc = DAEMON_RESPAWN_STOP; rc 261 crmd/control.c if (rc == pcmk_ok && is_set(fsa_input_register, R_IN_RECOVERY)) { rc 263 crmd/control.c rc = pcmk_err_generic; rc 265 crmd/control.c return crm_exit(rc); rc 269 crmd/control.c crmd_exit(int rc) rc 276 crmd/control.c if(in_progress && rc == 0) { rc 278 crmd/control.c return rc; rc 282 crmd/control.c rc, pcmk_strerror(rc)); rc 284 crmd/control.c crmd_fast_exit(rc); rc 288 crmd/control.c crm_trace("Preparing to exit: %d", rc); rc 319 crmd/control.c if (rc == pcmk_ok && crmd_mainloop == NULL) { rc 321 crmd/control.c rc = EPROTO; rc 330 crmd/control.c if(rc != pcmk_ok) { rc 332 crmd/control.c rc, pcmk_strerror(rc)); rc 334 crmd/control.c return crmd_fast_exit(rc); rc 486 crmd/control.c crm_trace("Done %d", rc); rc 497 crmd/control.c return rc; rc 996 crmd/control.c config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 1004 crmd/control.c if (rc != pcmk_ok) { rc 1007 crmd/control.c crm_err("Local CIB query resulted in an error: %s", pcmk_strerror(rc)); rc 1010 crmd/control.c if (rc == -EACCES || rc == -pcmk_err_schema_validation) { rc 86 crmd/corosync.c int rc = update_attr_delegate(fsa_cib_conn, rc 93 crmd/corosync.c if (pcmk_ok > rc) { rc 94 crmd/corosync.c crm_err("Quorum update failed: %s", pcmk_strerror(rc)); rc 191 crmd/corosync.c gboolean rc = FALSE; rc 199 crmd/corosync.c rc = crm_cluster_connect(cluster); rc 202 crmd/corosync.c if (rc && is_corosync_cluster()) { rc 206 crmd/corosync.c if (rc && is_cman_cluster()) { rc 211 crmd/corosync.c return rc; rc 79 crmd/crmd_utils.h int crmd_exit(int rc); rc 80 crmd/crmd_utils.h int crmd_fast_exit(int rc); rc 106 crmd/election.c enum election_result rc = 0; rc 116 crmd/election.c rc = election_count_vote(fsa_election, vote->msg, cur_state != S_STARTING); rc 117 crmd/election.c switch(rc) { rc 138 crmd/election.c crm_err("Unhandled election result: %d", rc); rc 153 crmd/election.c feature_update_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 155 crmd/election.c if (rc != pcmk_ok) { rc 159 crmd/election.c pcmk_strerror(rc), rc); rc 171 crmd/election.c int rc = pcmk_ok; rc 194 crmd/election.c fsa_cib_update(XML_TAG_CIB, cib, cib_quorum_override, rc, NULL); rc 195 crmd/election.c fsa_register_cib_callback(rc, FALSE, NULL, feature_update_callback); rc 81 crmd/fsa.c void dump_rsc_info_callback(const xmlNode * msg, int call_id, int rc, rc 275 crmd/heartbeat.c int rc = 0; rc 284 crmd/heartbeat.c rc = (*ccm_api_handle_event) (ccm_token); rc 286 crmd/heartbeat.c if (rc != 0) { rc 290 crmd/heartbeat.c crm_err("CCM connection appears to have failed: rc=%d.", rc); rc 29 crmd/join_client.c void join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 163 crmd/join_client.c join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 176 crmd/join_client.c if(rc != pcmk_ok || output == NULL) { rc 178 crmd/join_client.c join_id, pcmk_strerror(rc), rc); rc 36 crmd/join_dc.c void finalize_sync_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 406 crmd/join_dc.c int rc = pcmk_ok; rc 455 crmd/join_dc.c rc = fsa_cib_conn->cmds->sync_from(fsa_cib_conn, sync_from, NULL, cib_quorum_override); rc 456 crmd/join_dc.c fsa_register_cib_callback(rc, FALSE, sync_from, finalize_sync_callback); rc 460 crmd/join_dc.c finalize_sync_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 462 crmd/join_dc.c CRM_LOG_ASSERT(-EPERM != rc); rc 464 crmd/join_dc.c if (rc != pcmk_ok) { rc 465 crmd/join_dc.c do_crm_log((rc == -pcmk_err_old_data ? LOG_WARNING : LOG_ERR), rc 466 crmd/join_dc.c "Sync from %s failed: %s", (char *)user_data, pcmk_strerror(rc)); rc 489 crmd/join_dc.c join_update_complete_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 493 crmd/join_dc.c if (rc == pcmk_ok) { rc 45 crmd/lrm.c int rc; rc 232 crmd/lrm.c op->rc, op->op_status); rc 299 crmd/lrm.c op->rc = PCMK_OCF_OK; rc 409 crmd/lrm.c gboolean rc = TRUE; rc 459 crmd/lrm.c rc = FALSE; rc 461 crmd/lrm.c return rc; rc 465 crmd/lrm.c return rc; rc 505 crmd/lrm.c return rc; rc 724 crmd/lrm.c int rc = lrm_state_get_metadata(lrm_state, rsc->class, rc 728 crmd/lrm.c if (rc != pcmk_ok) { rc 766 crmd/lrm.c rsc_id, entry->last->op_type, entry->last->interval, entry->last->rc); rc 767 crmd/lrm.c if (entry->last->rc == PCMK_OCF_OK && safe_str_eq(entry->last->op_type, CRMD_ACTION_STOP)) { rc 770 crmd/lrm.c } else if (entry->last->rc == PCMK_OCF_OK rc 777 crmd/lrm.c } else if (entry->last->rc == PCMK_OCF_NOT_RUNNING) { rc 780 crmd/lrm.c } else if (entry->last->interval == 0 && entry->last->rc == PCMK_OCF_NOT_CONFIGURED) { rc 878 crmd/lrm.c notify_deleted(lrm_state_t * lrm_state, ha_msg_input_t * input, const char *rsc_id, int rc) rc 886 crmd/lrm.c ((rc == pcmk_ok)? "" : " not")); rc 891 crmd/lrm.c if (rc == pcmk_ok) { rc 893 crmd/lrm.c op->rc = PCMK_OCF_OK; rc 896 crmd/lrm.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 923 crmd/lrm.c notify_deleted(event->lrm_state, op->input, event->rsc, event->rc); rc 956 crmd/lrm.c int rc = pcmk_ok; rc 964 crmd/lrm.c rc = cib_internal_op(fsa_cib_conn, CIB_OP_DELETE, NULL, rsc_xpath, rc 968 crmd/lrm.c return rc; rc 973 crmd/lrm.c GHashTableIter * rsc_gIter, int rc, const char *user_name) rc 979 crmd/lrm.c if (rc == pcmk_ok) { rc 994 crmd/lrm.c notify_deleted(lrm_state, input, rsc_id, rc); rc 997 crmd/lrm.c event.rc = rc; rc 1162 crmd/lrm.c int rc = pcmk_ok; rc 1195 crmd/lrm.c rc = lrm_state_cancel(lrm_state, pending->rsc_id, pending->op_type, pending->interval); rc 1196 crmd/lrm.c if (rc == pcmk_ok) { rc 1315 crmd/lrm.c int rc = pcmk_ok; rc 1320 crmd/lrm.c rc = lrm_state_unregister_rsc(lrm_state, id, 0); rc 1323 crmd/lrm.c if (rc == pcmk_ok) { rc 1325 crmd/lrm.c } else if (rc == -EINPROGRESS) { rc 1339 crmd/lrm.c id, sys, user ? user : "internal", host, rc); rc 1342 crmd/lrm.c delete_rsc_entry(lrm_state, request, id, gIter, rc, user); rc 1407 crmd/lrm.c synthesize_lrmd_failure(lrm_state_t *lrm_state, xmlNode *action, int rc) rc 1417 crmd/lrm.c crm_element_value(action, XML_LRM_ATTR_TASK_KEY), rc, target_node, lrm_state); rc 1423 crmd/lrm.c crm_element_value(action, XML_ATTR_TRANSITION_KEY), rc, target_node, lrm_state); rc 1434 crmd/lrm.c op->rc = PCMK_OCF_OK; rc 1438 crmd/lrm.c op->rc = rc; rc 1443 crmd/lrm.c crm_info("Faking result %d for %s_%s_%d on %s (%p)", op->rc, op->rsc_id, op->op_type, op->interval, target_node, lrm_state); rc 1554 crmd/lrm.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 1572 crmd/lrm.c op->rc = PCMK_OCF_OK; rc 1588 crmd/lrm.c int rc = pcmk_ok; rc 1591 crmd/lrm.c fsa_cib_update(XML_CIB_TAG_STATUS, fragment, cib_quorum_override, rc, user_name); rc 1592 crmd/lrm.c crm_info("Forced a local LRM refresh: call=%d", rc); rc 1773 crmd/lrm.c op->rc = PCMK_OCF_INSUFFICIENT_PRIV; rc 1775 crmd/lrm.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 1818 crmd/lrm.c op->rc = -1; rc 2087 crmd/lrm.c op->rc = PCMK_OCF_UNKNOWN; rc 2178 crmd/lrm.c op->rc = CRM_DIRECT_NACK_RC; rc 2220 crmd/lrm.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 2253 crmd/lrm.c op->rc = target_rc; rc 2270 crmd/lrm.c cib_rsc_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 2272 crmd/lrm.c switch (rc) { rc 2276 crmd/lrm.c crm_trace("Resource update %d complete: rc=%d", call_id, rc); rc 2279 crmd/lrm.c crm_warn("Resource update %d failed: (rc=%d) %s", call_id, rc, pcmk_strerror(rc)); rc 2299 crmd/lrm.c int rc = pcmk_ok; rc 2321 crmd/lrm.c rc = -EINVAL; rc 2378 crmd/lrm.c fsa_cib_update(XML_CIB_TAG_STATUS, update, call_opt, rc, NULL); rc 2380 crmd/lrm.c if (rc > 0) { rc 2381 crmd/lrm.c last_resource_update = rc; rc 2385 crmd/lrm.c crm_trace("Sent resource state update message: %d for %s=%d on %s", rc, rc 2387 crmd/lrm.c fsa_register_cib_callback(rc, FALSE, NULL, cib_rsc_callback); rc 2391 crmd/lrm.c return rc; rc 2446 crmd/lrm.c switch(op->rc) { rc 2530 crmd/lrm.c op->rc, services_ocf_exitcode_str(op->rc), rc 2557 crmd/lrm.c if (op->rc) { rc 2567 crmd/lrm.c } else if (op->rc == PCMK_OCF_OK) { rc 90 crmd/lrm_state.c event.rc = PCMK_OCF_CONNECTION_DIED; rc 464 crmd/lrm_state.c remote_config_check(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 466 crmd/lrm_state.c if (rc != pcmk_ok) { rc 467 crmd/lrm_state.c crm_err("Query resulted in an error: %s", pcmk_strerror(rc)); rc 469 crmd/lrm_state.c if (rc == -EACCES || rc == -pcmk_err_schema_validation) { rc 505 crmd/lrm_state.c int rc = fsa_cib_conn->cmds->query(fsa_cib_conn, XML_CIB_TAG_CRMCONFIG, NULL, cib_scope_local); rc 506 crmd/lrm_state.c fsa_cib_conn->cmds->register_callback_full(fsa_cib_conn, rc, 10, FALSE, lrmd, rc 110 crmd/membership.c crmd_node_update_complete(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 116 crmd/membership.c if (rc == pcmk_ok) { rc 125 crmd/membership.c crm_err("Node update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 204 crmd/membership.c remove_conflicting_node_callback(xmlNode * msg, int call_id, int rc, rc 209 crmd/membership.c do_crm_log_unlikely(rc == 0 ? LOG_DEBUG : LOG_NOTICE, rc 211 crmd/membership.c node_uuid, pcmk_strerror(rc), rc); rc 215 crmd/membership.c search_conflicting_node_callback(xmlNode * msg, int call_id, int rc, rc 221 crmd/membership.c if (rc != pcmk_ok) { rc 222 crmd/membership.c if (rc != -ENXIO) { rc 224 crmd/membership.c new_node_uuid, pcmk_strerror(rc), rc); rc 295 crmd/membership.c node_list_update_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 304 crmd/membership.c } else if(rc < pcmk_ok) { rc 305 crmd/membership.c crm_err("Node update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 404 crmd/membership.c cib_quorum_update_complete(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 408 crmd/membership.c if (rc == pcmk_ok) { rc 412 crmd/membership.c crm_err("Quorum update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 64 crmd/misc.c input->rsc_id, input->call_id, input->rc, rc 35 crmd/pengine.c void do_pe_invoke_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 38 crmd/pengine.c save_cib_contents(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 45 crmd/pengine.c if (rc == pcmk_ok) { rc 72 crmd/pengine.c int rc = pcmk_ok; rc 88 crmd/pengine.c rc = fsa_cib_conn->cmds->query(fsa_cib_conn, NULL, NULL, cib_scope_local); rc 89 crmd/pengine.c fsa_register_cib_callback(rc, FALSE, uuid_str, save_cib_contents); rc 284 crmd/pengine.c do_pe_invoke_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 290 crmd/pengine.c if (rc != pcmk_ok) { rc 292 crmd/pengine.c CRM_XS " call=%d", pcmk_strerror(rc), call_id); rc 63 crmd/remote_lrmd_ra.c int rc; rc 297 crmd/remote_lrmd_ra.c if (cmd->rc != PCMK_OCF_OK) { rc 360 crmd/remote_lrmd_ra.c op.rc = cmd->rc; rc 364 crmd/remote_lrmd_ra.c if (cmd->reported_success && cmd->rc != PCMK_OCF_OK) { rc 411 crmd/remote_lrmd_ra.c int rc = -1; rc 423 crmd/remote_lrmd_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->remaining_timeout); rc 426 crmd/remote_lrmd_ra.c if (rc != 0) { rc 427 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 472 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 508 crmd/remote_lrmd_ra.c op.rc = PCMK_OCF_OK; rc 528 crmd/remote_lrmd_ra.c services_ocf_exitcode_str(op->rc), services_lrm_status_str(op->op_status)); rc 600 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_INVALID_PARAM; rc 612 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 617 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; rc 637 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; rc 655 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 711 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; rc 741 crmd/remote_lrmd_ra.c int rc = 0; rc 765 crmd/remote_lrmd_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->timeout); rc 766 crmd/remote_lrmd_ra.c if (rc == 0) { rc 773 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 781 crmd/remote_lrmd_ra.c rc = lrm_state_poke_connection(lrm_state); rc 782 crmd/remote_lrmd_ra.c if (rc < 0) { rc 783 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 787 crmd/remote_lrmd_ra.c rc = -1; rc 789 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_NOT_RUNNING; rc 792 crmd/remote_lrmd_ra.c if (rc == 0) { rc 818 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; rc 823 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; rc 932 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; rc 1066 crmd/remote_lrmd_ra.c int rc = 0; rc 1072 crmd/remote_lrmd_ra.c rc = -EINVAL; rc 1078 crmd/remote_lrmd_ra.c rc = -EINVAL; rc 1114 crmd/remote_lrmd_ra.c return rc; rc 94 crmd/te_actions.c int rc = pcmk_ok; rc 143 crmd/te_actions.c rc = fsa_cib_conn->cmds->update(fsa_cib_conn, XML_CIB_TAG_STATUS, node_state, rc 147 crmd/te_actions.c crm_debug("Sending fencing update %d for %s", rc, target); rc 148 crmd/te_actions.c fsa_register_cib_callback(rc, FALSE, strdup(target), cib_fencing_updated); rc 163 crmd/te_actions.c int rc = 0; rc 197 crmd/te_actions.c rc = stonith_api->cmds->fence(stonith_api, options, target, type, rc 200 crmd/te_actions.c stonith_api->cmds->register_callback(stonith_api, rc, transition_graph->stonith_timeout / 1000, rc 233 crmd/te_actions.c gboolean rc = TRUE; rc 283 crmd/te_actions.c rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_crmd, cmd, TRUE); rc 287 crmd/te_actions.c if (rc == FALSE) { rc 317 crmd/te_actions.c int rc = pcmk_ok; rc 383 crmd/te_actions.c rc = fsa_cib_conn->cmds->update(fsa_cib_conn, XML_CIB_TAG_STATUS, state, call_options); rc 386 crmd/te_actions.c services_lrm_status_str(status), action->id, task_uuid, target, rc); rc 388 crmd/te_actions.c fsa_register_cib_callback(rc, FALSE, NULL, cib_action_updated); rc 393 crmd/te_actions.c if (rc < pcmk_ok) { rc 412 crmd/te_actions.c gboolean rc = TRUE; rc 482 crmd/te_actions.c rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_lrmd, cmd, TRUE); rc 490 crmd/te_actions.c if (rc == FALSE) { rc 367 crmd/te_callbacks.c int rc = -EINVAL; rc 378 crmd/te_callbacks.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 384 crmd/te_callbacks.c } else if (rc < pcmk_ok) { rc 385 crmd/te_callbacks.c crm_trace("Filter rc=%d (%s)", rc, pcmk_strerror(rc)); rc 757 crmd/te_callbacks.c int rc = data->rc; rc 762 crmd/te_callbacks.c pcmk_strerror(rc), rc); rc 791 crmd/te_callbacks.c if (rc == pcmk_ok) { rc 825 crmd/te_callbacks.c call_id, target, pcmk_strerror(rc)); rc 830 crmd/te_callbacks.c if (rc == -ENODEV) { rc 853 crmd/te_callbacks.c cib_fencing_updated(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 855 crmd/te_callbacks.c if (rc < pcmk_ok) { rc 857 crmd/te_callbacks.c call_id, (char *)user_data, pcmk_strerror(rc), rc); rc 867 crmd/te_callbacks.c cib_action_updated(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 869 crmd/te_callbacks.c if (rc < pcmk_ok) { rc 870 crmd/te_callbacks.c crm_err("Update %d FAILED: %s", call_id, pcmk_strerror(rc)); rc 21 crmd/te_callbacks.h extern void cib_fencing_updated(xmlNode * msg, int call_id, int rc, rc 24 crmd/te_callbacks.h extern void cib_action_updated(xmlNode * msg, int call_id, int rc, rc 122 crmd/te_events.c update_failcount(xmlNode * event, const char *event_node_uuid, int rc, rc 138 crmd/te_events.c if ((rc == CRM_DIRECT_NACK_RC) || (rc == target_rc)) { rc 142 crmd/te_events.c id, rc, on_uname); rc 189 crmd/te_events.c rsc_id, on_uname, task, rc, value, now); rc 229 crmd/te_events.c status_from_rc(crm_action_t * action, int orig_status, int rc, int target_rc) rc 231 crmd/te_events.c if (target_rc == rc) { rc 232 crmd/te_events.c crm_trace("Target rc: == %d", rc); rc 234 crmd/te_events.c crm_trace("Re-mapping op status to PCMK_LRM_OP_DONE for rc=%d", rc); rc 239 crmd/te_events.c if (rc != CRM_DIRECT_NACK_RC) { rc 244 crmd/te_events.c action->id, task, uname, target_rc, rc, rc 442 crmd/te_events.c int rc = -1; rc 466 crmd/te_events.c crm_element_value_int(event, XML_LRM_ATTR_RC, &rc); rc 515 crmd/te_events.c match_graph_event(action, event, status, rc, target_rc, ignore_failures); rc 519 crmd/te_events.c if (action && (rc == target_rc)) { rc 522 crmd/te_events.c if (update_failcount(event, event_node, rc, target_rc, rc 529 crmd/te_events.c action_num, id, callid, services_ocf_exitcode_str(rc), desc); rc 396 crmd/te_utils.c int rc = pcmk_ok; rc 411 crmd/te_utils.c rc = stonith_api->cmds->connect(stonith_api, crm_system_name, NULL); rc 413 crmd/te_utils.c if (rc == pcmk_ok) { rc 431 crmd/te_utils.c CRM_CHECK(rc == pcmk_ok, return TRUE); /* If not, we failed 30 times... just get out */ rc 37 crmd/tengine.c global_cib_callback(const xmlNode * msg, int callid, int rc, xmlNode * output) rc 149 crmd/throttle.c int rc = errno; rc 151 crmd/throttle.c crm_warn("Couldn't read %s: %s (%d)", loadfile, pcmk_strerror(rc), rc); rc 159 crmd/throttle.c int rc = 0, pid = 0, ppid = 0, pgrp = 0, session = 0, tty_nr = 0, tpgid = 0; rc 162 crmd/throttle.c rc = sscanf(buffer, "%d %[^ ] %c %d %d %d %d %d %lu %lu %lu %lu %lu %lu %lu", rc 168 crmd/throttle.c if(rc != 15) { rc 169 crmd/throttle.c crm_err("Only %d of 15 fields found in %s", rc, loadfile); rc 216 crmd/throttle.c int rc = errno; rc 217 crmd/throttle.c crm_warn("Couldn't read %s: %s (%d)", loadfile, pcmk_strerror(rc), rc); rc 988 crmd/utils.c erase_xpath_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 992 crmd/utils.c do_crm_log_unlikely(rc == 0 ? LOG_DEBUG : LOG_NOTICE, rc 993 crmd/utils.c "Deletion of \"%s\": %s (rc=%d)", xpath, pcmk_strerror(rc), rc); rc 187 fencing/admin.c int rc; rc 196 fencing/admin.c int rc = 0; rc 200 fencing/admin.c rc = st->cmds->connect(st, async_fence_data.name, NULL); rc 202 fencing/admin.c if (!rc) { rc 225 fencing/admin.c async_fence_data.rc = e->result; rc 233 fencing/admin.c async_fence_data.rc = data->rc; rc 280 fencing/admin.c async_fence_data.rc = -1; rc 288 fencing/admin.c return async_fence_data.rc; rc 352 fencing/admin.c int rc = 0; rc 354 fencing/admin.c rc = st->cmds->history(st, st_opts, rc 398 fencing/admin.c return rc; rc 405 fencing/admin.c int rc = 0; rc 514 fencing/admin.c rc = sscanf(optarg, "%m[^=]=%m[^=]", &name, &value); rc 515 fencing/admin.c if (rc != 2) { rc 562 fencing/admin.c rc = st->cmds->connect(st, async_fence_data.name, NULL); rc 563 fencing/admin.c if (rc < 0) { rc 570 fencing/admin.c rc = st->cmds->list_agents(st, st_opt_sync_call, NULL, &devices, timeout); rc 574 fencing/admin.c if (rc == 0) { rc 577 fencing/admin.c } else if (rc > 0) { rc 578 fencing/admin.c fprintf(stderr, "%d devices found\n", rc); rc 579 fencing/admin.c rc = 0; rc 584 fencing/admin.c rc = st->cmds->query(st, st_opts, target, &devices, timeout); rc 588 fencing/admin.c if (rc == 0) { rc 590 fencing/admin.c } else if (rc > 0) { rc 591 fencing/admin.c fprintf(stderr, "%d devices found\n", rc); rc 592 fencing/admin.c rc = 0; rc 597 fencing/admin.c rc = st->cmds->monitor(st, st_opts, device, timeout); rc 598 fencing/admin.c if (rc < 0) { rc 599 fencing/admin.c rc = st->cmds->list(st, st_opts, device, NULL, timeout); rc 603 fencing/admin.c rc = st->cmds->list(st, st_opts, device, &lists, timeout); rc 604 fencing/admin.c if (rc == 0) { rc 630 fencing/admin.c fprintf(stderr, "List command returned error. rc : %d\n", rc); rc 634 fencing/admin.c rc = st->cmds->register_device(st, st_opts, device, "stonith-ng", agent, params); rc 637 fencing/admin.c rc = st->cmds->remove_device(st, st_opts, device); rc 641 fencing/admin.c rc = handle_level(st, target, fence_level, devices, action == 'r'); rc 650 fencing/admin.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, timeout); rc 651 fencing/admin.c if (rc == pcmk_ok) { rc 658 fencing/admin.c rc = st->cmds->confirm(st, st_opts, target); rc 661 fencing/admin.c rc = mainloop_fencing(st, target, "reboot", timeout, tolerance); rc 664 fencing/admin.c rc = mainloop_fencing(st, target, "off", timeout, tolerance); rc 667 fencing/admin.c rc = mainloop_fencing(st, target, "on", timeout, tolerance); rc 687 fencing/admin.c rc = show_history(st, target, timeout, quiet, verbose); rc 693 fencing/admin.c crm_info("Command returned: %s (%d)", pcmk_strerror(rc), rc); rc 699 fencing/admin.c return rc; rc 78 fencing/commands.c static void st_child_done(GPid pid, int rc, const char *output, gpointer user_data); rc 113 fencing/commands.c void (*done_cb) (GPid pid, int rc, const char *output, gpointer user_data); rc 124 fencing/commands.c xmlNode * data, int rc); rc 625 fencing/commands.c int rc = 1; rc 630 fencing/commands.c rc = sscanf(line + last, "%[a-zA-Z0-9_-.]", entry); rc 635 fencing/commands.c } else if (rc != 1) { rc 704 fencing/commands.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, 10); rc 707 fencing/commands.c if (rc || !buffer) { rc 967 fencing/commands.c void (*done_cb) (GPid pid, int rc, const char *output, rc 1009 fencing/commands.c status_search_cb(GPid pid, int rc, const char *output, gpointer user_data) rc 1025 fencing/commands.c if (rc == 1 /* unknown */ ) { rc 1028 fencing/commands.c } else if (rc == 0 /* active */ || rc == 2 /* inactive */ ) { rc 1034 fencing/commands.c rc); rc 1040 fencing/commands.c dynamic_list_search_cb(GPid pid, int rc, const char *output, gpointer user_data) rc 1062 fencing/commands.c if (rc != 0 && !dev->targets) { rc 1063 fencing/commands.c crm_notice("Disabling port list queries for %s (%d): %s", dev->id, rc, output); rc 1069 fencing/commands.c } else if (!rc) { rc 1481 fencing/commands.c int rc = pcmk_ok; rc 1494 fencing/commands.c rc = -ENODEV; rc 1503 fencing/commands.c rc = -EINPROGRESS; rc 1507 fencing/commands.c rc = -ENODEV; rc 1509 fencing/commands.c return rc; rc 1977 fencing/commands.c log_operation(async_command_t * cmd, int rc, int pid, const char *next, const char *output) rc 1979 fencing/commands.c if (rc == 0) { rc 1984 fencing/commands.c do_crm_log(rc == 0 ? LOG_NOTICE : LOG_ERR, rc 1986 fencing/commands.c cmd->action, pid, cmd->id, cmd->client_name, cmd->victim, cmd->device, rc, rc 1987 fencing/commands.c pcmk_strerror(rc), next ? ". Trying: " : "", next ? next : ""); rc 1989 fencing/commands.c do_crm_log_unlikely(rc == 0 ? LOG_DEBUG : LOG_NOTICE, rc 1991 fencing/commands.c cmd->action, pid, cmd->device, rc, pcmk_strerror(rc), rc 1999 fencing/commands.c crm_log_output(rc == 0 ? LOG_DEBUG : LOG_WARNING, prefix, output); rc 2005 fencing/commands.c stonith_send_async_reply(async_command_t * cmd, const char *output, int rc, GPid pid) rc 2010 fencing/commands.c reply = stonith_construct_async_reply(cmd, output, NULL, rc); rc 2027 fencing/commands.c log_operation(cmd, rc, pid, NULL, output); rc 2048 fencing/commands.c crm_xml_add_int(notify_data, F_STONITH_RC, rc); rc 2056 fencing/commands.c do_stonith_notify(0, T_STONITH_NOTIFY_FENCE, rc, notify_data); rc 2063 fencing/commands.c unfence_cb(GPid pid, int rc, const char *output, gpointer user_data) rc 2068 fencing/commands.c log_operation(cmd, rc, pid, NULL, output); rc 2078 fencing/commands.c if(rc != 0) { rc 2103 fencing/commands.c st_child_done(GPid pid, int rc, const char *output, gpointer user_data) rc 2119 fencing/commands.c if (rc == pcmk_ok && rc 2130 fencing/commands.c cmd->action, cmd->device, rc, g_list_length(cmd->device_next)); rc 2132 fencing/commands.c if (rc == 0) { rc 2145 fencing/commands.c } else if (rc != 0 && cmd->device_next && (is_action_required(cmd->action, device) == FALSE)) { rc 2154 fencing/commands.c log_operation(cmd, rc, pid, cmd->device, output); rc 2162 fencing/commands.c stonith_send_async_reply(cmd, output, rc, pid); rc 2164 fencing/commands.c if (rc != 0) { rc 2209 fencing/commands.c stonith_send_async_reply(cmd_other, output, rc, pid); rc 2313 fencing/commands.c stonith_construct_reply(xmlNode * request, const char *output, xmlNode * data, int rc) rc 2336 fencing/commands.c crm_xml_add_int(reply, F_STONITH_RC, rc); rc 2353 fencing/commands.c stonith_construct_async_reply(async_command_t * cmd, const char *output, xmlNode * data, int rc) rc 2374 fencing/commands.c crm_xml_add_int(reply, F_STONITH_RC, rc); rc 2452 fencing/commands.c int rc = -EOPNOTSUPP; rc 2479 fencing/commands.c rc = stonith_device_action(request, &output); rc 2528 fencing/commands.c rc = -EINPROGRESS; rc 2534 fencing/commands.c rc = stonith_fence(request); rc 2543 fencing/commands.c rc = stonith_manual_ack(request, rop); rc 2561 fencing/commands.c rc = 0; rc 2590 fencing/commands.c rc = -EINPROGRESS; rc 2593 fencing/commands.c rc = -EINPROGRESS; rc 2598 fencing/commands.c rc = stonith_fence_history(request, &data); rc 2603 fencing/commands.c rc = stonith_device_register(request, &device_id, FALSE); rc 2604 fencing/commands.c do_stonith_notify_device(call_options, op, rc, device_id); rc 2610 fencing/commands.c rc = stonith_device_remove(device_id, FALSE); rc 2611 fencing/commands.c do_stonith_notify_device(call_options, op, rc, device_id); rc 2616 fencing/commands.c rc = stonith_level_register(request, &device_id); rc 2617 fencing/commands.c do_stonith_notify_level(call_options, op, rc, device_id); rc 2623 fencing/commands.c rc = stonith_level_remove(request, &device_id); rc 2624 fencing/commands.c do_stonith_notify_level(call_options, op, rc, device_id); rc 2657 fencing/commands.c if (rc != -EINPROGRESS) { rc 2665 fencing/commands.c reply = stonith_construct_reply(request, output, data, rc); rc 2673 fencing/commands.c return rc; rc 2699 fencing/commands.c int rc = 0; rc 2728 fencing/commands.c rc = handle_request(client, id, flags, request, remote_peer); rc 2733 fencing/commands.c rc > 0 ? "" : pcmk_strerror(rc), rc); rc 194 fencing/internal.h int rc); rc 200 fencing/internal.h void do_stonith_notify_device(int options, const char *op, int rc, const char *desc); rc 201 fencing/internal.h void do_stonith_notify_level(int options, const char *op, int rc, const char *desc); rc 222 fencing/internal.h void unfence_cb(GPid pid, int rc, const char *output, gpointer user_data); rc 235 fencing/internal.h void (*done_cb) (GPid pid, int rc, const char *output, rc 334 fencing/main.c int rc = crm_ipcs_send(client, 0, update_msg, crm_ipc_server_event | crm_ipc_server_error); rc 336 fencing/main.c if (rc <= 0) { rc 338 fencing/main.c type, crm_client_name(client), client->id, pcmk_strerror(rc), rc); rc 399 fencing/main.c do_stonith_notify_config(int options, const char *op, int rc, rc 409 fencing/main.c do_stonith_notify(options, op, rc, notify_data); rc 414 fencing/main.c do_stonith_notify_device(int options, const char *op, int rc, const char *desc) rc 416 fencing/main.c do_stonith_notify_config(options, op, rc, desc, g_hash_table_size(device_list)); rc 420 fencing/main.c do_stonith_notify_level(int options, const char *op, int rc, const char *desc) rc 422 fencing/main.c do_stonith_notify_config(options, op, rc, desc, g_hash_table_size(topology)); rc 428 fencing/main.c int rc; rc 436 fencing/main.c rc = stonith_level_remove(data, &desc); rc 437 fencing/main.c do_stonith_notify_level(0, STONITH_OP_LEVEL_DEL, rc, desc); rc 471 fencing/main.c int rc; rc 486 fencing/main.c rc = stonith_level_register(match, &desc); rc 487 fencing/main.c do_stonith_notify_level(0, STONITH_OP_LEVEL_ADD, rc, desc); rc 1026 fencing/main.c int rc = pcmk_ok; rc 1045 fencing/main.c int rc = pcmk_ok; rc 1048 fencing/main.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 1049 fencing/main.c if (rc != pcmk_ok) { rc 1055 fencing/main.c rc = xml_apply_patchset(local_cib, patchset, TRUE); rc 1056 fencing/main.c switch (rc) { rc 1062 fencing/main.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 1067 fencing/main.c crm_warn("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 1075 fencing/main.c rc = cib_api->cmds->query(cib_api, NULL, &local_cib, cib_scope_local | cib_sync_call); rc 1076 fencing/main.c if(rc != pcmk_ok) { rc 1077 fencing/main.c crm_err("Couldn't retrieve the CIB: %s (%d)", pcmk_strerror(rc), rc); rc 1129 fencing/main.c init_cib_cache_cb(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 1204 fencing/main.c int rc, retries = 0; rc 1222 fencing/main.c rc = cib_api->cmds->signon(cib_api, CRM_SYSTEM_STONITHD, cib_command); rc 1223 fencing/main.c } while (rc == -ENOTCONN && ++retries < 5); rc 1225 fencing/main.c if (rc != pcmk_ok) { rc 1226 fencing/main.c crm_err("Could not connect to the CIB service: %s (%d)", pcmk_strerror(rc), rc); rc 1233 fencing/main.c rc = cib_api->cmds->query(cib_api, NULL, NULL, cib_scope_local); rc 1234 fencing/main.c cib_api->cmds->register_callback(cib_api, rc, 120, FALSE, NULL, "init_cib_cache_cb", rc 1288 fencing/main.c int rc = 0; rc 1558 fencing/main.c return crm_exit(rc); rc 87 fencing/remote.c static void remote_op_done(remote_fencing_op_t * op, xmlNode * data, int rc, int dup); rc 346 fencing/remote.c create_op_done_notify(remote_fencing_op_t * op, int rc) rc 351 fencing/remote.c crm_xml_add_int(notify_data, F_STONITH_RC, rc); rc 364 fencing/remote.c bcast_result_to_peers(remote_fencing_op_t * op, int rc) rc 368 fencing/remote.c xmlNode *notify_data = create_op_done_notify(op, rc); rc 385 fencing/remote.c handle_local_reply_and_notify(remote_fencing_op_t * op, xmlNode * data, int rc) rc 396 fencing/remote.c notify_data = create_op_done_notify(op, rc); rc 401 fencing/remote.c reply = stonith_construct_reply(op->request, NULL, data, rc); rc 408 fencing/remote.c do_stonith_notify(0, T_STONITH_NOTIFY_FENCE, rc, notify_data); rc 417 fencing/remote.c handle_duplicates(remote_fencing_op_t * op, xmlNode * data, int rc) rc 428 fencing/remote.c other->originator, other->id, pcmk_strerror(rc)); rc 429 fencing/remote.c remote_op_done(other, data, rc, TRUE); rc 464 fencing/remote.c remote_op_done(remote_fencing_op_t * op, xmlNode * data, int rc, int dup) rc 477 fencing/remote.c op->client_name, op->originator, op->id, op->state, pcmk_strerror(rc)); rc 481 fencing/remote.c if (!op->delegate && data && rc != -ENODEV && rc != -EHOSTUNREACH) { rc 501 fencing/remote.c bcast_result_to_peers(op, rc); rc 505 fencing/remote.c if (rc == pcmk_ok || dup) { rc 514 fencing/remote.c op->client_name, op->originator, op->id, pcmk_strerror(rc)); rc 516 fencing/remote.c handle_local_reply_and_notify(op, data, rc); rc 519 fencing/remote.c handle_duplicates(op, data, rc); rc 1394 fencing/remote.c int rc) rc 1425 fencing/remote.c op->target, op->originator, op->client_name, rc); rc 1431 fencing/remote.c remote_op_done(op, msg, rc, FALSE); rc 1547 fencing/remote.c int rc = -EHOSTUNREACH; rc 1567 fencing/remote.c rc = -ENODEV; rc 1575 fencing/remote.c remote_op_done(op, NULL, rc, FALSE); rc 1909 fencing/remote.c int rc = 0; rc 1923 fencing/remote.c crm_element_value_int(dev, F_STONITH_RC, &rc); rc 1931 fencing/remote.c if (op == NULL && rc == pcmk_ok) { rc 1949 fencing/remote.c return rc; rc 1955 fencing/remote.c pcmk_strerror(rc), rc); rc 1956 fencing/remote.c if (rc == pcmk_ok) { rc 1961 fencing/remote.c remote_op_done(op, msg, rc, FALSE); rc 1969 fencing/remote.c return rc; rc 1977 fencing/remote.c pcmk_strerror(rc), rc); rc 1982 fencing/remote.c remote_op_done(op, msg, rc, FALSE); rc 1983 fencing/remote.c return rc; rc 1986 fencing/remote.c if ((op->phase == 2) && (rc != pcmk_ok)) { rc 1991 fencing/remote.c device, rc, op->target); rc 1992 fencing/remote.c rc = pcmk_ok; rc 1995 fencing/remote.c if (rc == pcmk_ok) { rc 1998 fencing/remote.c advance_op_topology(op, device, msg, rc); rc 1999 fencing/remote.c return rc; rc 2005 fencing/remote.c remote_op_done(op, msg, rc, FALSE); rc 2006 fencing/remote.c return rc; rc 2009 fencing/remote.c } else if (rc == pcmk_ok && op->devices == NULL) { rc 2013 fencing/remote.c remote_op_done(op, msg, rc, FALSE); rc 2014 fencing/remote.c return rc; rc 2015 fencing/remote.c } else if (rc == -ETIME && op->devices == NULL) { rc 2018 fencing/remote.c remote_op_done(op, msg, rc, FALSE); rc 2019 fencing/remote.c return rc; rc 2026 fencing/remote.c op->client_name, rc); rc 2028 fencing/remote.c return rc; rc 2034 fencing/remote.c int rc = 0; rc 2069 fencing/remote.c rc = 0; rc 2083 fencing/remote.c return rc; rc 97 fencing/test.c int rc; rc 102 fencing/test.c rc = poll(&pollfd, 1, timeout); /* wait 10 minutes, -1 forever */ rc 103 fencing/test.c if (rc > 0) { rc 133 fencing/test.c crm_notice("Call id %d completed with rc %d", data->call_id, data->rc); rc 139 fencing/test.c int rc = 0; rc 141 fencing/test.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 142 fencing/test.c crm_debug("Connect: %d", rc); rc 156 fencing/test.c int rc = 0; \ rc 157 fencing/test.c rc = cmd; \ rc 163 fencing/test.c if (rc != expected_rc) { \ rc 164 fencing/test.c crm_err("FAILURE - expected rc %d != %d(%s) for cmd - %s", expected_rc, rc, pcmk_strerror(rc), str); \ rc 172 fencing/test.c crm_info("SUCCESS - %s: %d", str, rc); \ rc 174 fencing/test.c crm_debug("SUCCESS - %s: %d", str, rc); \ rc 286 fencing/test.c int rc = 0; rc 288 fencing/test.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 289 fencing/test.c crm_debug("Connect: %d", rc); rc 308 fencing/test.c int rc = 0; rc 312 fencing/test.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 313 fencing/test.c crm_debug("Connect: %d", rc); rc 317 fencing/test.c rc = st->cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_xvm", params); rc 318 fencing/test.c crm_debug("Register: %d", rc); rc 320 fencing/test.c rc = st->cmds->list(st, st_opts, "test-id", &tmp, 10); rc 321 fencing/test.c crm_debug("List: %d output: %s", rc, tmp ? tmp : "<none>"); rc 323 fencing/test.c rc = st->cmds->monitor(st, st_opts, "test-id", 10); rc 324 fencing/test.c crm_debug("Monitor: %d", rc); rc 326 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node2", 10); rc 327 fencing/test.c crm_debug("Status false_1_node2: %d", rc); rc 329 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 330 fencing/test.c crm_debug("Status false_1_node1: %d", rc); rc 332 fencing/test.c rc = st->cmds->fence(st, st_opts, "unknown-host", "off", 60, 0); rc 333 fencing/test.c crm_debug("Fence unknown-host: %d", rc); rc 335 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 336 fencing/test.c crm_debug("Status false_1_node1: %d", rc); rc 338 fencing/test.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "off", 60, 0); rc 339 fencing/test.c crm_debug("Fence false_1_node1: %d", rc); rc 341 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 342 fencing/test.c crm_debug("Status false_1_node1: %d", rc); rc 344 fencing/test.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); rc 345 fencing/test.c crm_debug("Unfence false_1_node1: %d", rc); rc 347 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 348 fencing/test.c crm_debug("Status false_1_node1: %d", rc); rc 350 fencing/test.c rc = st->cmds->fence(st, st_opts, "some-host", "off", 10, 0); rc 351 fencing/test.c crm_debug("Fence alias: %d", rc); rc 353 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "some-host", 10); rc 354 fencing/test.c crm_debug("Status alias: %d", rc); rc 356 fencing/test.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); rc 357 fencing/test.c crm_debug("Unfence false_1_node1: %d", rc); rc 359 fencing/test.c rc = st->cmds->remove_device(st, st_opts, "test-id"); rc 360 fencing/test.c crm_debug("Remove test-id: %d", rc); rc 371 fencing/test.c callback_rc = data->rc; rc 387 fencing/test.c int rc = 0; rc 398 fencing/test.c rc = st->cmds->fence(st, 0, "true_1_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 399 fencing/test.c if (rc < 0) { rc 400 fencing/test.c crm_err("fence failed with rc %d", rc); rc 403 fencing/test.c register_callback_helper(rc); rc 411 fencing/test.c int rc = 0; rc 431 fencing/test.c rc = st->cmds->fence(st, 0, "custom_timeout_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 432 fencing/test.c if (rc < 0) { rc 433 fencing/test.c crm_err("fence failed with rc %d", rc); rc 436 fencing/test.c register_callback_helper(rc); rc 443 fencing/test.c int rc = 0; rc 454 fencing/test.c rc = st->cmds->fence(st, 0, "false_1_node2", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); rc 455 fencing/test.c if (rc < 0) { rc 456 fencing/test.c crm_err("fence failed with rc %d", rc); rc 459 fencing/test.c register_callback_helper(rc); rc 466 fencing/test.c int rc = 0; rc 477 fencing/test.c rc = st->cmds->monitor(st, 0, "false_1", MAINLOOP_DEFAULT_TIMEOUT); rc 478 fencing/test.c if (rc < 0) { rc 479 fencing/test.c crm_err("monitor failed with rc %d", rc); rc 483 fencing/test.c register_callback_helper(rc); rc 522 fencing/test.c int rc = 0; rc 525 fencing/test.c rc = st->cmds->connect(st, crm_system_name, NULL); rc 527 fencing/test.c if (!rc) { rc 572 fencing/test.c int rc = 0; rc 575 fencing/test.c rc = st->cmds->disconnect(st); rc 576 fencing/test.c crm_info("Disconnect: %d", rc); rc 582 fencing/test.c if (rc) { rc 92 include/crm/cib.h int rc, xmlNode * output)); rc 159 include/crm/cib.h void (*op_callback) (const xmlNode * msg, int call_id, int rc, xmlNode * output); rc 134 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); rc 184 include/crm/common/util.h int crm_exit(int rc); rc 59 include/crm/error.h const char *pcmk_strerror(int rc); rc 60 include/crm/error.h const char *pcmk_errorname(int rc); rc 61 include/crm/error.h const char *bz2_strerror(int rc); rc 37 include/crm/fencing/internal.h void (*done) (GPid pid, int rc, const char *output, rc 227 include/crm/lrmd.h enum ocf_exitcode rc; rc 287 include/crm/pengine/internal.h enum rsc_digest_cmp_val rc; rc 175 include/crm/services.h int rc; rc 116 include/crm/stonith-ng.h int rc; rc 151 include/crm/transition.h int rc); rc 161 include/crm_internal.h long long rc = (word & ~bit); rc 163 include/crm_internal.h if (rc == word) { rc 171 include/crm_internal.h return rc; rc 177 include/crm_internal.h long long rc = (word | bit); rc 179 include/crm_internal.h if (rc == word) { rc 187 include/crm_internal.h return rc; rc 482 lib/ais/plugin.c int rc = WEXITSTATUS(status); rc 484 lib/ais/plugin.c do_ais_log(rc == 0 ? LOG_NOTICE : LOG_ERR, rc 486 lib/ais/plugin.c pid, rc); rc 488 lib/ais/plugin.c if (rc == 100) { rc 575 lib/ais/plugin.c int rc = 0; rc 613 lib/ais/plugin.c rc = getrlimit(RLIMIT_CORE, &cores); rc 614 lib/ais/plugin.c if (rc < 0) { rc 624 lib/ais/plugin.c rc = setrlimit(RLIMIT_CORE, &cores); rc 625 lib/ais/plugin.c if (rc < 0) { rc 645 lib/ais/plugin.c rc = mkdir(CRM_STATE_DIR, 0750); rc 646 lib/ais/plugin.c rc = chown(CRM_STATE_DIR, pcmk_uid, pcmk_gid); rc 654 lib/ais/plugin.c rc = uname(&us); rc 655 lib/ais/plugin.c AIS_ASSERT(rc == 0); rc 1440 lib/ais/plugin.c int rc = send_client_ipc(key, mutable); rc 1444 lib/ais/plugin.c ais_info("Sent message to %s.%d (rc=%d)", ais_dest(&(mutable->host)), pid, rc); rc 1445 lib/ais/plugin.c if (rc != 0) { rc 1447 lib/ais/plugin.c ais_dest(&(mutable->host)), pid, rc); rc 1456 lib/ais/plugin.c int rc = 0; rc 1475 lib/ais/plugin.c rc = 1; rc 1515 lib/ais/plugin.c rc = 1; rc 1539 lib/ais/plugin.c rc = send_client_ipc(conn, mutable); rc 1545 lib/ais/plugin.c rc = send_plugin_msg_raw(mutable); rc 1548 lib/ais/plugin.c if (rc != 0) { rc 1550 lib/ais/plugin.c ais_dest(&(mutable->host)), msg_type2text(dest), reason, rc); rc 1556 lib/ais/plugin.c return rc == 0 ? TRUE : FALSE; rc 1562 lib/ais/plugin.c int rc = 0; rc 1589 lib/ais/plugin.c rc = pcmk_api->totem_mcast(&iovec, 1, TOTEMPG_SAFE); rc 1591 lib/ais/plugin.c if (rc == 0 && mutable->is_compressed == FALSE) { rc 1595 lib/ais/plugin.c AIS_CHECK(rc == 0, ais_err("Message not sent (%d): %.120s", rc, mutable->data)); rc 1598 lib/ais/plugin.c return rc; rc 1606 lib/ais/plugin.c int rc = 0; rc 1664 lib/ais/plugin.c rc = pcmk_api->totem_mcast(&iovec, 1, TOTEMPG_SAFE); rc 1666 lib/ais/plugin.c AIS_CHECK(rc == 0, ais_err("Message not sent (%d)", rc)); rc 81 lib/ais/utils.c int rc = 0; rc 84 lib/ais/utils.c return rc; rc 90 lib/ais/utils.c rc = 1; rc 92 lib/ais/utils.c return rc; rc 456 lib/ais/utils.c int rc = BZ_OK; rc 466 lib/ais/utils.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &new_size, (char *)msg->data, rc 468 lib/ais/utils.c if (rc != BZ_OK) { rc 469 lib/ais/utils.c ais_info("rc=%d, new=%u expected=%u", rc, new_size, msg->size); rc 471 lib/ais/utils.c AIS_ASSERT(rc == BZ_OK); rc 481 lib/ais/utils.c int rc = 0; rc 518 lib/ais/utils.c rc = send_plugin_msg_raw(ais_msg); rc 521 lib/ais/utils.c return rc; rc 529 lib/ais/utils.c int rc = -1; rc 532 lib/ais/utils.c rc = -2; rc 536 lib/ais/utils.c rc = -3; rc 543 lib/ais/utils.c rc = pcmk_api->ipc_dispatch_send(conn, ais_msg, ais_msg->header.size); rc 546 lib/ais/utils.c return rc; rc 553 lib/ais/utils.c int rc = 0; rc 592 lib/ais/utils.c rc = send_client_ipc(conn, ais_msg); rc 594 lib/ais/utils.c if (rc != 0) { rc 595 lib/ais/utils.c ais_warn("Sending message to %s failed: %d", msg_type2text(type), rc); rc 600 lib/ais/utils.c return rc; rc 635 lib/ais/utils.c int rc = 0; rc 639 lib/ais/utils.c rc = config->object_find_next(top_handle, &local_handle); rc 642 lib/ais/utils.c if (rc < 0) { rc 757 lib/ais/utils.c int rc = -1; rc 765 lib/ais/utils.c rc = 0; rc 779 lib/ais/utils.c return rc; rc 62 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 139 lib/cib/cib_attrs.c rc = cib_internal_op(the_cib, CIB_OP_QUERY, NULL, xpath_string, NULL, &xml_search, rc 142 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 145 lib/cib/cib_attrs.c pcmk_strerror(rc)); rc 153 lib/cib/cib_attrs.c rc = -ENOTUNIQ; rc 172 lib/cib/cib_attrs.c return rc; rc 183 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 194 lib/cib/cib_attrs.c rc = find_nvpair_attr_delegate(the_cib, XML_ATTR_ID, section, node_uuid, set_type, set_name, rc 196 lib/cib/cib_attrs.c if (rc == pcmk_ok) { rc 200 lib/cib/cib_attrs.c } else if (rc != -ENXIO) { rc 201 lib/cib/cib_attrs.c return rc; rc 314 lib/cib/cib_attrs.c rc = cib_internal_op(the_cib, CIB_OP_MODIFY, NULL, section, xml_top, NULL, rc 317 lib/cib/cib_attrs.c if (rc < pcmk_ok) { rc 319 lib/cib/cib_attrs.c attr_name, attr_value, section, crm_str(set_name), pcmk_strerror(rc)); rc 327 lib/cib/cib_attrs.c return rc; rc 336 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 344 lib/cib/cib_attrs.c rc = find_nvpair_attr_delegate(the_cib, XML_NVPAIR_ATTR_VALUE, section, node_uuid, set_type, rc 346 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 348 lib/cib/cib_attrs.c attr_name, section, crm_str(set_name), crm_str(node_uuid), pcmk_strerror(rc)); rc 350 lib/cib/cib_attrs.c return rc; rc 359 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 367 lib/cib/cib_attrs.c rc = find_nvpair_attr_delegate(the_cib, XML_ATTR_ID, section, node_uuid, set_type, rc 370 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 371 lib/cib/cib_attrs.c return rc; rc 378 lib/cib/cib_attrs.c rc = cib_internal_op(the_cib, CIB_OP_DELETE, NULL, section, xml_obj, NULL, rc 381 lib/cib/cib_attrs.c if (rc == pcmk_ok) { rc 390 lib/cib/cib_attrs.c return rc; rc 406 lib/cib/cib_attrs.c int rc = -ENXIO; rc 412 lib/cib/cib_attrs.c return rc; rc 419 lib/cib/cib_attrs.c CRM_CHECK(result != NULL, return rc); rc 462 lib/cib/cib_attrs.c rc = pcmk_ok; rc 465 lib/cib/cib_attrs.c return rc; rc 489 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 506 lib/cib/cib_attrs.c rc = get_uuid_from_result(xml_search, uuid, is_remote_node); rc 508 lib/cib/cib_attrs.c rc = -ENXIO; rc 513 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 515 lib/cib/cib_attrs.c uname, pcmk_strerror(rc)); rc 519 lib/cib/cib_attrs.c return rc; rc 525 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 534 lib/cib/cib_attrs.c rc = the_cib->cmds->query(the_cib, XML_CIB_TAG_NODES, &fragment, rc 536 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 537 lib/cib/cib_attrs.c return rc; rc 545 lib/cib/cib_attrs.c rc = -ENXIO; rc 555 lib/cib/cib_attrs.c rc = pcmk_ok; rc 563 lib/cib/cib_attrs.c return rc; rc 569 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 584 lib/cib/cib_attrs.c rc = update_attr_delegate(the_cib, cib_sync_call, scope, uuid, NULL, NULL, rc 588 lib/cib/cib_attrs.c return rc; rc 40 lib/cib/cib_client.c int rc, xmlNode * output)); rc 254 lib/cib/cib_client.c int rc = 0; rc 258 lib/cib/cib_client.c rc = mkdir(cib_home, 0700); rc 259 lib/cib/cib_client.c if (rc < 0 && errno != EEXIST) { rc 447 lib/cib/cib_client.c int rc, xmlNode * output)) rc 558 lib/cib/cib_client.c int rc = 0; rc 563 lib/cib/cib_client.c rc = strcmp(a_client->event, b_client->event); rc 564 lib/cib/cib_client.c if (rc == 0) { rc 576 lib/cib/cib_client.c return rc; rc 241 lib/cib/cib_file.c int rc = 0; rc 262 lib/cib/cib_file.c rc = -1; rc 268 lib/cib/cib_file.c rc = -1; rc 277 lib/cib/cib_file.c rc = -1; rc 282 lib/cib/cib_file.c rc = -1; rc 289 lib/cib/cib_file.c rc = -1; rc 300 lib/cib/cib_file.c return rc; rc 350 lib/cib/cib_file.c int rc, fd; rc 371 lib/cib/cib_file.c rc = cib_file_read_and_verify(cib_path, NULL, NULL); rc 372 lib/cib/cib_file.c if ((rc != pcmk_ok) && (rc != -ENOENT)) { rc 451 lib/cib/cib_file.c rc = cib_file_read_and_verify(tmp_cib, tmp_digest, NULL); rc 452 lib/cib/cib_file.c CRM_ASSERT(rc == 0); rc 566 lib/cib/cib_file.c int rc = pcmk_ok; rc 570 lib/cib/cib_file.c rc = -EINVAL; rc 572 lib/cib/cib_file.c rc = load_file_cib(private->filename); rc 575 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 582 lib/cib/cib_file.c name, private->filename, pcmk_strerror(rc)); rc 585 lib/cib/cib_file.c return rc; rc 603 lib/cib/cib_file.c int rc = 0; rc 649 lib/cib/cib_file.c rc = -1; rc 662 lib/cib/cib_file.c return rc; rc 681 lib/cib/cib_file.c int rc = pcmk_ok; rc 694 lib/cib/cib_file.c rc = pcmk_err_generic; rc 702 lib/cib/cib_file.c rc = pcmk_err_generic; rc 706 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 717 lib/cib/cib_file.c return rc; rc 723 lib/cib/cib_file.c int rc = pcmk_ok; rc 726 lib/cib/cib_file.c rc = cib_file_signoff(cib); rc 729 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 738 lib/cib/cib_file.c fprintf(stderr, "Couldn't sign off: %d\n", rc); rc 741 lib/cib/cib_file.c return rc; rc 777 lib/cib/cib_file.c int rc = pcmk_ok; rc 831 lib/cib/cib_file.c rc = cib_perform_op(op, call_options, fn, query, rc 836 lib/cib/cib_file.c if (rc == -pcmk_err_schema_validation) { rc 840 lib/cib/cib_file.c if (rc != pcmk_ok) { rc 853 lib/cib/cib_file.c cib->op_callback(NULL, cib->call_id, rc, output); rc 868 lib/cib/cib_file.c return rc; rc 182 lib/cib/cib_native.c int rc = pcmk_ok; rc 219 lib/cib/cib_native.c rc = -ENOTCONN; rc 229 lib/cib/cib_native.c if (rc != pcmk_ok || native->ipc == NULL || crm_ipc_connected(native->ipc) == FALSE) { rc 230 lib/cib/cib_native.c crm_debug("Connection unsuccessful (%d %p)", rc, native->ipc); rc 231 lib/cib/cib_native.c rc = -ENOTCONN; rc 234 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 246 lib/cib/cib_native.c rc = pcmk_ok; rc 251 lib/cib/cib_native.c rc = -EPROTO; rc 256 lib/cib/cib_native.c rc = -EPROTO; rc 262 lib/cib/cib_native.c rc = -ECOMM; rc 268 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 273 lib/cib/cib_native.c crm_debug("Connection to CIB failed: %s", pcmk_strerror(rc)); rc 275 lib/cib/cib_native.c return rc; rc 309 lib/cib/cib_native.c int rc = pcmk_ok; rc 312 lib/cib/cib_native.c rc = cib_native_signoff(cib); rc 324 lib/cib/cib_native.c return rc; rc 340 lib/cib/cib_native.c int rc = pcmk_ok; rc 385 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, cib->call_timeout * 1000, &op_reply); rc 388 lib/cib/cib_native.c if (rc < 0) { rc 390 lib/cib/cib_native.c cib->call_timeout, pcmk_strerror(rc), rc); rc 391 lib/cib/cib_native.c rc = -ECOMM; rc 404 lib/cib/cib_native.c rc = pcmk_ok; rc 410 lib/cib/cib_native.c if (crm_element_value_int(op_reply, F_CIB_RC, &rc) != 0) { rc 411 lib/cib/cib_native.c rc = -EPROTO; rc 424 lib/cib/cib_native.c rc = -ENOMSG; rc 430 lib/cib/cib_native.c rc = -ENOMSG; rc 435 lib/cib/cib_native.c rc = -ENOTCONN; rc 437 lib/cib/cib_native.c } else if (rc == pcmk_ok && op_reply == NULL) { rc 438 lib/cib/cib_native.c rc = -ETIME; rc 441 lib/cib/cib_native.c switch (rc) { rc 448 lib/cib/cib_native.c rc = pcmk_ok; rc 454 lib/cib/cib_native.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 462 lib/cib/cib_native.c crm_warn("Call failed: %s", pcmk_strerror(rc)); rc 473 lib/cib/cib_native.c return rc; rc 495 lib/cib/cib_native.c int rc = pcmk_ok; rc 503 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, rc 505 lib/cib/cib_native.c if (rc <= 0) { rc 506 lib/cib/cib_native.c crm_trace("Notification not registered: %d", rc); rc 507 lib/cib/cib_native.c rc = -ECOMM; rc 512 lib/cib/cib_native.c return rc; rc 104 lib/cib/cib_ops.c int rc = 0; rc 122 lib/cib/cib_ops.c rc = update_validation(result_cib, &new_version, max_version, TRUE, TRUE); rc 130 lib/cib/cib_ops.c return rc; rc 685 lib/cib/cib_ops.c int rc = pcmk_ok; rc 705 lib/cib/cib_ops.c rc = -ENXIO; rc 733 lib/cib/cib_ops.c rc = -EINVAL; rc 744 lib/cib/cib_ops.c rc = -ENXIO; rc 828 lib/cib/cib_ops.c return rc; rc 206 lib/cib/cib_remote.c int rc = 0; rc 270 lib/cib/cib_remote.c rc = -ENOTCONN; rc 277 lib/cib/cib_remote.c rc = -EPROTO; rc 286 lib/cib/cib_remote.c rc = -EPROTO; rc 289 lib/cib/cib_remote.c rc = -EPROTO; rc 298 lib/cib/cib_remote.c if (rc != 0) { rc 300 lib/cib/cib_remote.c return rc; rc 307 lib/cib/cib_remote.c return rc; rc 382 lib/cib/cib_remote.c int rc = pcmk_ok; rc 388 lib/cib/cib_remote.c rc = tcgetattr(0, &settings); rc 389 lib/cib/cib_remote.c if(rc == 0) { rc 391 lib/cib/cib_remote.c rc = tcsetattr(0, TCSANOW, &settings); rc 394 lib/cib/cib_remote.c if(rc == 0) { rc 397 lib/cib/cib_remote.c rc = scanf("%1023s", private->passwd); rc 402 lib/cib/cib_remote.c if (rc < 1) { rc 407 lib/cib/cib_remote.c rc = tcsetattr(0, TCSANOW, &settings); rc 411 lib/cib/cib_remote.c rc = -EINVAL; rc 414 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 415 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); rc 418 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 419 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); rc 422 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 430 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 437 lib/cib/cib_remote.c name, private->server, private->port, pcmk_strerror(rc)); rc 440 lib/cib/cib_remote.c return rc; rc 446 lib/cib/cib_remote.c int rc = pcmk_ok; rc 458 lib/cib/cib_remote.c return rc; rc 464 lib/cib/cib_remote.c int rc = pcmk_ok; rc 468 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); rc 469 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 481 lib/cib/cib_remote.c return rc; rc 488 lib/cib/cib_remote.c int rc = pcmk_ok; rc 600 lib/cib/cib_remote.c if (crm_element_value_int(op_reply, F_CIB_RC, &rc) != 0) { rc 601 lib/cib/cib_remote.c rc = -EPROTO; rc 604 lib/cib/cib_remote.c if (rc == -pcmk_err_diff_resync) { rc 606 lib/cib/cib_remote.c rc = pcmk_ok; rc 609 lib/cib/cib_remote.c if (rc == pcmk_ok || rc == -EPERM) { rc 614 lib/cib/cib_remote.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 633 lib/cib/cib_remote.c return rc; rc 115 lib/cib/cib_utils.c int rc = pcmk_ok; rc 121 lib/cib/cib_utils.c rc = cib->cmds->query(cib, NULL, &xml_cib, options); rc 122 lib/cib/cib_utils.c if (rc == -EACCES) { rc 125 lib/cib/cib_utils.c } else if (rc != pcmk_ok) { rc 272 lib/cib/cib_utils.c bool rc = FALSE; rc 281 lib/cib/cib_utils.c rc = crm_is_true(value); rc 285 lib/cib/cib_utils.c crm_trace("CIB ACL is %s", rc ? "enabled" : "disabled"); rc 287 lib/cib/cib_utils.c return rc; rc 296 lib/cib/cib_utils.c int rc = pcmk_ok; rc 339 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, cib_ro, result_cib, output); rc 360 lib/cib/cib_utils.c return rc; rc 375 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, scratch, &scratch, output); rc 380 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, current_cib, &scratch, output); rc 392 lib/cib/cib_utils.c if (rc == pcmk_ok && scratch == NULL) { rc 393 lib/cib/cib_utils.c rc = -EINVAL; rc 396 lib/cib/cib_utils.c } else if(rc == pcmk_ok && xml_acl_denied(scratch)) { rc 398 lib/cib/cib_utils.c rc = -EACCES; rc 401 lib/cib/cib_utils.c } else if (rc != pcmk_ok) { rc 411 lib/cib/cib_utils.c rc = -EPROTONOSUPPORT; rc 428 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 438 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 555 lib/cib/cib_utils.c if (rc == pcmk_ok && check_dtd && validate_xml(scratch, NULL, TRUE) == FALSE) { rc 559 lib/cib/cib_utils.c rc = -pcmk_err_schema_validation; rc 566 lib/cib/cib_utils.c if(rc != pcmk_ok && cib_acl_enabled(current_cib, user)) { rc 584 lib/cib/cib_utils.c return rc; rc 623 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) rc 629 lib/cib/cib_utils.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 643 lib/cib/cib_utils.c if (rc == -pcmk_err_diff_resync) { rc 645 lib/cib/cib_utils.c rc = pcmk_ok; rc 648 lib/cib/cib_utils.c if (blob && blob->callback && (rc == pcmk_ok || blob->only_success == FALSE)) { rc 650 lib/cib/cib_utils.c blob->callback(msg, call_id, rc, output, blob->user_data); rc 652 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { rc 653 lib/cib/cib_utils.c crm_warn("CIB command failed: %s", pcmk_strerror(rc)); rc 664 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); rc 775 lib/cib/cib_utils.c int rc = pcmk_err_generic; rc 783 lib/cib/cib_utils.c crm_element_value_int(event, F_CIB_RC, &rc); rc 786 lib/cib/cib_utils.c if (rc < pcmk_ok || diff == NULL) { rc 787 lib/cib/cib_utils.c return rc; rc 795 lib/cib/cib_utils.c rc = cib_process_diff(NULL, cib_none, NULL, event, diff, input, output, NULL); rc 797 lib/cib/cib_utils.c if (rc != pcmk_ok) { rc 798 lib/cib/cib_utils.c crm_debug("Update didn't apply: %s (%d) %p", pcmk_strerror(rc), rc, *output); rc 800 lib/cib/cib_utils.c if (rc == -pcmk_err_old_data) { rc 806 lib/cib/cib_utils.c return rc; rc 810 lib/cib/cib_utils.c return rc; rc 343 lib/cluster/cluster.c int rc = uname(&res); rc 345 lib/cluster/cluster.c if (rc == 0) { rc 55 lib/cluster/corosync.c int rc = CS_OK; rc 69 lib/cluster/corosync.c rc = cmap_initialize(&local_handle); rc 70 lib/cluster/corosync.c if (rc != CS_OK) { rc 72 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 77 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 79 lib/cluster/corosync.c if (rc != CS_OK) { rc 81 lib/cluster/corosync.c cs_strerror(rc)); rc 95 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &id); rc 99 lib/cluster/corosync.c if (rc != CS_OK) { rc 120 lib/cluster/corosync.c crm_trace("%s = %s %d", key, name, rc); rc 165 lib/cluster/corosync.c int rc = 0; rc 167 lib/cluster/corosync.c rc = quorum_dispatch(pcmk_quorum_handle, CS_DISPATCH_ALL); rc 168 lib/cluster/corosync.c if (rc < 0) { rc 169 lib/cluster/corosync.c crm_err("Connection to the Quorum API failed: %d", rc); rc 252 lib/cluster/corosync.c int rc = -1; rc 263 lib/cluster/corosync.c rc = quorum_initialize(&pcmk_quorum_handle, &quorum_callbacks, &quorum_type); rc 264 lib/cluster/corosync.c if (rc != CS_OK) { rc 265 lib/cluster/corosync.c crm_err("Could not connect to the Quorum API: %d", rc); rc 273 lib/cluster/corosync.c rc = quorum_getquorate(pcmk_quorum_handle, &quorate); rc 274 lib/cluster/corosync.c if (rc != CS_OK) { rc 275 lib/cluster/corosync.c crm_err("Could not obtain the current Quorum API state: %d", rc); rc 287 lib/cluster/corosync.c rc = quorum_trackstart(pcmk_quorum_handle, CS_TRACK_CHANGES | CS_TRACK_CURRENT); rc 288 lib/cluster/corosync.c if (rc != CS_OK) { rc 289 lib/cluster/corosync.c crm_err("Could not setup Quorum API notifications: %d", rc); rc 293 lib/cluster/corosync.c rc = quorum_fd_get(pcmk_quorum_handle, &fd); rc 294 lib/cluster/corosync.c if (rc != CS_OK) { rc 295 lib/cluster/corosync.c crm_err("Could not obtain the Quorum API connection: %d", rc); rc 304 lib/cluster/corosync.c if (rc != CS_OK) { rc 317 lib/cluster/corosync.c int rc = init_cs_connection_once(cluster); rc 321 lib/cluster/corosync.c switch (rc) { rc 442 lib/cluster/corosync.c int rc = CS_OK; rc 445 lib/cluster/corosync.c rc = cmap_initialize(&handle); rc 447 lib/cluster/corosync.c switch(rc) { rc 451 lib/cluster/corosync.c crm_debug("Failed to initialize the cmap API: Permission denied (%d)", rc); rc 459 lib/cluster/corosync.c ais_error2text(rc), rc); rc 489 lib/cluster/corosync.c int rc = CS_OK; rc 495 lib/cluster/corosync.c rc = cmap_initialize(&cmap_handle); rc 496 lib/cluster/corosync.c if (rc != CS_OK) { rc 498 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 503 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 505 lib/cluster/corosync.c if (rc != CS_OK) { rc 506 lib/cluster/corosync.c crm_warn("Could not connect to Cluster Configuration Database API, error %d", rc); rc 518 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &nodeid); rc 521 lib/cluster/corosync.c if (rc != CS_OK) { rc 572 lib/cluster/corosync.c int rc = CS_OK; rc 574 lib/cluster/corosync.c rc = cmap_initialize(&handle); rc 575 lib/cluster/corosync.c if (rc != CS_OK) { rc 576 lib/cluster/corosync.c crm_info("Failed to initialize the cmap API: %s (%d)", ais_error2text(rc), rc); rc 580 lib/cluster/corosync.c rc = cmap_get_string(handle, "totem.cluster_name", &cluster_name); rc 581 lib/cluster/corosync.c if (rc != CS_OK) { rc 582 lib/cluster/corosync.c crm_info("Cannot get totem.cluster_name: %s (%d)", ais_error2text(rc), rc); rc 596 lib/cluster/corosync.c int rc = CS_OK; rc 608 lib/cluster/corosync.c rc = cmap_initialize(&cmap_handle); rc 609 lib/cluster/corosync.c if (rc != CS_OK) { rc 611 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 616 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 618 lib/cluster/corosync.c if (rc != CS_OK) { rc 620 lib/cluster/corosync.c cs_strerror(rc), rc); rc 624 lib/cluster/corosync.c rc = cmap_iter_init(cmap_handle, prefix, &iter_handle); rc 625 lib/cluster/corosync.c if (rc != CS_OK) { rc 627 lib/cluster/corosync.c prefix, cs_strerror(rc), rc); rc 632 lib/cluster/corosync.c while ((rc = cmap_iter_next(cmap_handle, iter_handle, key_name, NULL, NULL)) == CS_OK) { rc 48 lib/cluster/cpg.c if(rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { \ rc 74 lib/cluster/cpg.c int rc = CS_OK; rc 94 lib/cluster/cpg.c cs_repeat(retries, 5, rc = cpg_initialize(&local_handle, &cb)); rc 97 lib/cluster/cpg.c if (rc == CS_OK) { rc 100 lib/cluster/cpg.c cs_repeat(retries, 5, rc = cpg_local_get(local_handle, &local_nodeid)); rc 103 lib/cluster/cpg.c if (rc != CS_OK) { rc 104 lib/cluster/cpg.c crm_err("Could not get local node id from the CPG API: %s (%d)", ais_error2text(rc), rc); rc 133 lib/cluster/cpg.c ssize_t rc = 0; rc 161 lib/cluster/cpg.c rc = cpg_mcast_joined(*handle, CPG_TYPE_AGREED, iov, 1); rc 163 lib/cluster/cpg.c if (rc != CS_OK) { rc 180 lib/cluster/cpg.c sent, queue_len, last_sent, ais_error2text(rc), rc 181 lib/cluster/cpg.c (long long) rc); rc 184 lib/cluster/cpg.c sent, queue_len, last_sent, ais_error2text(rc), rc 185 lib/cluster/cpg.c (long long) rc); rc 190 lib/cluster/cpg.c if(rc != CS_OK) { rc 197 lib/cluster/cpg.c return rc; rc 216 lib/cluster/cpg.c int rc = 0; rc 219 lib/cluster/cpg.c rc = cpg_dispatch(cluster->cpg_handle, CS_DISPATCH_ONE); rc 220 lib/cluster/cpg.c if (rc != CS_OK) { rc 221 lib/cluster/cpg.c crm_err("Connection to the CPG API failed: %s (%d)", ais_error2text(rc), rc); rc 291 lib/cluster/cpg.c int rc = BZ_OK; rc 301 lib/cluster/cpg.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &new_size, msg->data, msg->compressed_size, 1, 0); rc 303 lib/cluster/cpg.c if (rc != BZ_OK) { rc 304 lib/cluster/cpg.c crm_err("Decompression failed: %d", rc); rc 309 lib/cluster/cpg.c CRM_ASSERT(rc == BZ_OK); rc 438 lib/cluster/cpg.c int rc = -1; rc 466 lib/cluster/cpg.c cs_repeat(retries, 30, rc = cpg_initialize(&handle, &cpg_callbacks)); rc 467 lib/cluster/cpg.c if (rc != CS_OK) { rc 468 lib/cluster/cpg.c crm_err("Could not connect to the Cluster Process Group API: %d", rc); rc 481 lib/cluster/cpg.c cs_repeat(retries, 30, rc = cpg_join(handle, &cluster->group)); rc 482 lib/cluster/cpg.c if (rc != CS_OK) { rc 483 lib/cluster/cpg.c crm_err("Could not join the CPG group '%s': %d", crm_system_name, rc); rc 487 lib/cluster/cpg.c rc = cpg_fd_get(handle, &fd); rc 488 lib/cluster/cpg.c if (rc != CS_OK) { rc 489 lib/cluster/cpg.c crm_err("Could not obtain the CPG API connection: %d", rc); rc 498 lib/cluster/cpg.c if (rc != CS_OK) { rc 511 lib/cluster/cpg.c gboolean rc = TRUE; rc 515 lib/cluster/cpg.c rc = send_cluster_text(crm_class_cluster, data, local, node, dest); rc 517 lib/cluster/cpg.c return rc; rc 155 lib/cluster/election.c int rc = 0; rc 159 lib/cluster/election.c rc = getrusage(RUSAGE_SELF, &info); rc 164 lib/cluster/election.c if (rc < 0) { rc 52 lib/cluster/heartbeat.c int rc = BZ_OK; rc 116 lib/cluster/heartbeat.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &used, compressed, orig_len, 1, 0); rc 118 lib/cluster/heartbeat.c if (rc == BZ_OUTBUFF_FULL) { rc 126 lib/cluster/heartbeat.c if (rc != BZ_OK) { rc 128 lib/cluster/heartbeat.c name, (int)orig_len, size, rc); rc 255 lib/cluster/heartbeat.c int rc = BZ_OK; rc 273 lib/cluster/heartbeat.c rc = BZ2_bzBuffToBuffCompress(compressed, &len, buffer, orig, CRM_BZ2_BLOCKS, 0, CRM_BZ2_WORK); rc 275 lib/cluster/heartbeat.c if (rc != BZ_OK) { rc 276 lib/cluster/heartbeat.c crm_err("Compression failed: %d", rc); rc 296 lib/cluster/heartbeat.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &used, compressed, len, 1, 0); rc 297 lib/cluster/heartbeat.c CRM_CHECK(rc == BZ_OK,; rc 301 lib/cluster/heartbeat.c crm_debug("rc=%d, used=%d", rc, used); rc 302 lib/cluster/heartbeat.c if (rc != BZ_OK) { rc 58 lib/cluster/legacy.c bool rc = TRUE; rc 64 lib/cluster/legacy.c rc = FALSE; rc 68 lib/cluster/legacy.c return rc; rc 77 lib/cluster/legacy.c int rc = CS_OK; rc 99 lib/cluster/legacy.c rc = coroipcc_msg_send_reply_receive(ais_ipc_handle, &iov, 1, &answer, sizeof(answer)); rc 100 lib/cluster/legacy.c if (rc == CS_OK) { rc 108 lib/cluster/legacy.c if ((rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) && retries < 20) { rc 115 lib/cluster/legacy.c if (rc != CS_OK) { rc 116 lib/cluster/legacy.c crm_err("Sending nodeid request: FAILED (rc=%d): %s", rc, ais_error2text(rc)); rc 120 lib/cluster/legacy.c crm_err("Bad response from peer: (rc=%d): %s", rc, ais_error2text(rc)); rc 137 lib/cluster/legacy.c int rc = CS_OK; rc 150 lib/cluster/legacy.c if (rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { rc 158 lib/cluster/legacy.c rc = coroipcc_msg_send_reply_receive(ais_ipc_handle, iov, 1, buf, buf_len); rc 160 lib/cluster/legacy.c } while ((rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) && retries < 20); rc 162 lib/cluster/legacy.c if (rc == CS_OK) { rc 171 lib/cluster/legacy.c CRM_CHECK(header->error == CS_OK, rc = header->error); rc 175 lib/cluster/legacy.c ais_msg->id, ais_error2text(rc), rc); rc 182 lib/cluster/legacy.c return (rc == CS_OK); rc 292 lib/cluster/legacy.c int rc = CS_OK; rc 298 lib/cluster/legacy.c rc = coroipcc_dispatch_get(ais_ipc_handle, (void **)&buffer, 0); rc 299 lib/cluster/legacy.c if (rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { rc 302 lib/cluster/legacy.c if (rc != CS_OK) { rc 303 lib/cluster/legacy.c crm_perror(LOG_ERR, "Receiving message body failed: (%d) %s", rc, ais_error2text(rc)); rc 341 lib/cluster/legacy.c int rc = cman_dispatch(pcmk_cman_handle, CMAN_DISPATCH_ALL); rc 343 lib/cluster/legacy.c if (rc < 0) { rc 344 lib/cluster/legacy.c crm_err("Connection to cman failed: %d", rc); rc 356 lib/cluster/legacy.c int rc = 0, lpc = 0, node_count = 0; rc 367 lib/cluster/legacy.c rc = cman_get_cluster(pcmk_cman_handle, &cluster); rc 368 lib/cluster/legacy.c if (rc < 0) { rc 369 lib/cluster/legacy.c crm_err("Couldn't query cman cluster details: %d %d", rc, errno); rc 384 lib/cluster/legacy.c rc = cman_get_nodes(pcmk_cman_handle, MAX_NODES, &node_count, cman_nodes); rc 385 lib/cluster/legacy.c if (rc < 0) { rc 386 lib/cluster/legacy.c crm_err("Couldn't query cman node list: %d %d", rc, errno); rc 438 lib/cluster/legacy.c int rc = -1, fd = -1; rc 456 lib/cluster/legacy.c rc = cman_start_notification(pcmk_cman_handle, cman_event_callback); rc 457 lib/cluster/legacy.c if (rc < 0) { rc 458 lib/cluster/legacy.c crm_err("Couldn't register for cman notifications: %d %d", rc, errno); rc 471 lib/cluster/legacy.c if (rc < 0) { rc 496 lib/cluster/legacy.c int rc; rc 509 lib/cluster/legacy.c rc = coroipcc_service_connect(COROSYNC_SOCKET_NAME, PCMK_SERVICE_ID, rc 519 lib/cluster/legacy.c if (ais_fd_async <= 0 && rc == CS_OK) { rc 521 lib/cluster/legacy.c rc = CS_ERR_LIBRARY; rc 523 lib/cluster/legacy.c if (rc != CS_OK) { rc 525 lib/cluster/legacy.c ais_error2text(rc), rc); rc 528 lib/cluster/legacy.c if (rc != CS_OK) { rc 613 lib/cluster/legacy.c int rc = init_cs_connection_once(cluster); rc 616 lib/cluster/legacy.c switch (rc) { rc 842 lib/cluster/legacy.c cs_error_t rc = CS_OK; rc 845 lib/cluster/legacy.c rc = confdb_object_find_start(config, local_handle); rc 846 lib/cluster/legacy.c if (rc == CS_OK) { rc 849 lib/cluster/legacy.c crm_err("Couldn't create search context: %d", rc); rc 857 lib/cluster/legacy.c cs_error_t rc = CS_OK; rc 866 lib/cluster/legacy.c rc = confdb_object_find(config, top_handle, name, strlen(name), &local_handle); rc 867 lib/cluster/legacy.c if (rc != CS_OK) { rc 882 lib/cluster/legacy.c int rc; rc 888 lib/cluster/legacy.c rc = confdb_initialize(&config, &callbacks); rc 889 lib/cluster/legacy.c if (rc != CS_OK) { rc 890 lib/cluster/legacy.c crm_debug("Could not initialize Cluster Configuration Database API instance error %d", rc); rc 235 lib/common/alerts.c int rc = -1; rc 243 lib/common/alerts.c crm_element_value_int(msg, F_CIB_RC, &rc); rc 244 lib/common/alerts.c if (rc < pcmk_ok) { rc 245 lib/common/alerts.c crm_trace("Ignore failed CIB update: %s (%d)", pcmk_strerror(rc), rc); rc 55 lib/common/attrd_client.c int rc = -ENOTCONN; rc 79 lib/common/attrd_client.c rc = crm_ipc_send(ipc, attrd_op, flags, 0, NULL); rc 87 lib/common/attrd_client.c } else if (rc > 0) { rc 90 lib/common/attrd_client.c } else if (rc == -EAGAIN || rc == -EALREADY) { rc 102 lib/common/attrd_client.c if (rc > 0) { rc 103 lib/common/attrd_client.c rc = pcmk_ok; rc 105 lib/common/attrd_client.c return rc; rc 140 lib/common/attrd_client.c int rc = pcmk_ok; rc 194 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_strerror(rc), rc); rc 219 lib/common/attrd_client.c name, value, display_host, pcmk_strerror(rc), rc); rc 221 lib/common/attrd_client.c return rc; rc 240 lib/common/attrd_client.c int rc = pcmk_ok; rc 250 lib/common/attrd_client.c rc = send_attrd_op(ipc, clear_op); rc 257 lib/common/attrd_client.c (host? host : "all nodes"), pcmk_strerror(rc), rc); rc 258 lib/common/attrd_client.c return rc; rc 44 lib/common/cib_secrets.c int rc = FALSE; rc 50 lib/common/cib_secrets.c rc = TRUE; rc 54 lib/common/cib_secrets.c return rc; rc 106 lib/common/cib_secrets.c int rc = 0; rc 148 lib/common/cib_secrets.c rc = -1; rc 163 lib/common/cib_secrets.c rc = -1; rc 172 lib/common/cib_secrets.c rc = -1; rc 182 lib/common/cib_secrets.c rc = -1; rc 190 lib/common/cib_secrets.c rc = -1; rc 198 lib/common/cib_secrets.c return rc; rc 196 lib/common/io.c int rc = 0; rc 221 lib/common/io.c rc = fprintf(file_strm, "%d", sequence); rc 222 lib/common/io.c if (rc < 0) { rc 254 lib/common/io.c int rc; rc 261 lib/common/io.c rc = chown(series_file, uid, gid); rc 263 lib/common/io.c return rc; rc 443 lib/common/io.c int rc = 0; rc 450 lib/common/io.c rc = -1; rc 453 lib/common/io.c rc = -1; rc 456 lib/common/io.c rc = -1; rc 459 lib/common/io.c return rc; rc 473 lib/common/ipc.c int rc = 0; rc 480 lib/common/ipc.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &size_u, text, header->size_compressed, 1, 0); rc 483 lib/common/ipc.c if (rc != BZ_OK) { rc 484 lib/common/ipc.c crm_err("Decompression failed: %s (%d)", bz2_strerror(rc), rc); rc 530 lib/common/ipc.c ssize_t rc = 0; rc 548 lib/common/ipc.c rc = qb_ipcs_event_sendv(c->ipcs, event, 2); rc 549 lib/common/ipc.c if (rc < 0) { rc 557 lib/common/ipc.c header->qb.id, c->ipcs, c->pid, (long long) rc); rc 560 lib/common/ipc.c header->qb.id, c->ipcs, c->pid, (long long) rc, rc 574 lib/common/ipc.c pcmk_strerror(rc < 0 ? rc : 0), (long long) rc); rc 593 lib/common/ipc.c return rc; rc 605 lib/common/ipc.c return rc; rc 660 lib/common/ipc.c ssize_t rc = -EMSGSIZE; rc 675 lib/common/ipc.c return rc; rc 690 lib/common/ipc.c ssize_t rc; rc 730 lib/common/ipc.c rc = qb_ipcs_response_sendv(c->ipcs, iov, 2); rc 731 lib/common/ipc.c if (rc < header->qb.size) { rc 733 lib/common/ipc.c header->qb.id, c->ipcs, c->pid, header->qb.size, pcmk_strerror(rc), rc); rc 737 lib/common/ipc.c header->qb.id, (long long) rc, c->ipcs, c->pid); rc 748 lib/common/ipc.c rc = crm_ipcs_flush_events(c); rc 753 lib/common/ipc.c if (rc == -EPIPE || rc == -ENOTCONN) { rc 757 lib/common/ipc.c return rc; rc 765 lib/common/ipc.c ssize_t rc = 0; rc 772 lib/common/ipc.c rc = crm_ipc_prepare(request, message, &iov, ipc_buffer_max); rc 773 lib/common/ipc.c if (rc > 0) { rc 774 lib/common/ipc.c rc = crm_ipcs_sendv(c, iov, flags | crm_ipc_server_free); rc 779 lib/common/ipc.c c->ipcs, c->pid, pcmk_strerror(rc), rc); rc 782 lib/common/ipc.c return rc; rc 958 lib/common/ipc.c bool rc = FALSE; rc 973 lib/common/ipc.c rc = qb_ipcc_is_connected(client->ipc); rc 974 lib/common/ipc.c if (rc == FALSE) { rc 977 lib/common/ipc.c return rc; rc 990 lib/common/ipc.c int rc; rc 999 lib/common/ipc.c rc = poll(&(client->pfd), 1, 0); rc 1000 lib/common/ipc.c return (rc < 0)? -errno : rc; rc 1009 lib/common/ipc.c int rc = 0; rc 1018 lib/common/ipc.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + hdr_offset, &size_u, rc 1021 lib/common/ipc.c if (rc != BZ_OK) { rc 1022 lib/common/ipc.c crm_err("Decompression failed: %s (%d)", bz2_strerror(rc), rc); rc 1063 lib/common/ipc.c int rc = crm_ipc_decompress(client); rc 1065 lib/common/ipc.c if (rc != pcmk_ok) { rc 1066 lib/common/ipc.c return rc; rc 1126 lib/common/ipc.c int rc = 0; rc 1129 lib/common/ipc.c rc = qb_ipcc_sendv_recv(client->ipc, iov, 2, client->buffer, client->buf_size, -1); rc 1130 lib/common/ipc.c } while (rc == -EAGAIN && crm_ipc_connected(client)); rc 1132 lib/common/ipc.c return rc; rc 1138 lib/common/ipc.c int rc = 0; rc 1142 lib/common/ipc.c rc = qb_ipcc_sendv(client->ipc, iov, 2); rc 1143 lib/common/ipc.c } while (rc == -EAGAIN && time(NULL) < timeout && crm_ipc_connected(client)); rc 1145 lib/common/ipc.c return rc; rc 1152 lib/common/ipc.c int rc = 0; rc 1160 lib/common/ipc.c rc = qb_ipcc_recv(client->ipc, client->buffer, client->buf_size, 1000); rc 1161 lib/common/ipc.c if (rc > 0) { rc 1164 lib/common/ipc.c int rc = crm_ipc_decompress(client); rc 1166 lib/common/ipc.c if (rc != pcmk_ok) { rc 1167 lib/common/ipc.c return rc; rc 1195 lib/common/ipc.c return rc; rc 1202 lib/common/ipc.c long rc = 0; rc 1226 lib/common/ipc.c rc = qb_ipcc_recv(client->ipc, client->buffer, client->buf_size, ms_timeout); rc 1227 lib/common/ipc.c if (rc < 0) { rc 1241 lib/common/ipc.c rc = crm_ipc_prepare(id, message, &iov, client->max_buf_size); rc 1242 lib/common/ipc.c if(rc < 0) { rc 1243 lib/common/ipc.c return rc; rc 1255 lib/common/ipc.c if(factor < 10 && (client->max_buf_size / 10) < (rc / factor)) { rc 1268 lib/common/ipc.c rc = internal_ipc_send_request(client, iov, ms_timeout); rc 1270 lib/common/ipc.c if (rc <= 0) { rc 1282 lib/common/ipc.c rc = internal_ipc_get_reply(client, header->qb.id, ms_timeout); rc 1283 lib/common/ipc.c if (rc < 0) { rc 1295 lib/common/ipc.c rc = internal_ipc_send_recv(client, iov); rc 1298 lib/common/ipc.c if (rc > 0) { rc 1302 lib/common/ipc.c rc, crm_ipc_buffer(client)); rc 1309 lib/common/ipc.c crm_trace("Response not received: rc=%ld, errno=%d", rc, errno); rc 1314 lib/common/ipc.c crm_notice("Connection to %s closed: %s (%ld)", client->name, pcmk_strerror(rc), rc); rc 1316 lib/common/ipc.c } else if (rc == -ETIMEDOUT) { rc 1318 lib/common/ipc.c header->qb.id, client->name, client->ipc, pcmk_strerror(rc), rc, ms_timeout); rc 1321 lib/common/ipc.c } else if (rc <= 0) { rc 1323 lib/common/ipc.c header->qb.id, client->name, client->ipc, pcmk_strerror(rc), rc); rc 1329 lib/common/ipc.c return rc; rc 553 lib/common/iso8601.c int rc; rc 558 lib/common/iso8601.c rc = sscanf(time_str, "%d:%d:%d", &hour, &minute, &second); rc 559 lib/common/iso8601.c if (rc == 1) { rc 560 lib/common/iso8601.c rc = sscanf(time_str, "%2d%2d%2d", &hour, &minute, &second); rc 563 lib/common/iso8601.c if (rc > 0 && rc < 4) { rc 576 lib/common/iso8601.c crm_err("Bad time: %s (%d)", time_str, rc); rc 660 lib/common/iso8601.c int rc = 0; rc 683 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d-%d", &year, &month, &day); rc 684 lib/common/iso8601.c if (rc == 1) { rc 686 lib/common/iso8601.c rc = sscanf(date_str, "%4d%2d%2d", &year, &month, &day); rc 688 lib/common/iso8601.c if (rc == 3) { rc 702 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d", &year, &day); rc 703 lib/common/iso8601.c if (rc == 2) { rc 715 lib/common/iso8601.c rc = sscanf(date_str, "%d-W%d-%d", &year, &week, &day); rc 716 lib/common/iso8601.c if (rc == 3) { rc 846 lib/common/iso8601.c int an_int = 0, rc; rc 854 lib/common/iso8601.c rc = parse_int(interval_str, 10, 0, &an_int); rc 855 lib/common/iso8601.c if (rc == 0) { rc 858 lib/common/iso8601.c interval_str += rc; rc 863 lib/common/iso8601.c crm_trace("Testing %c=%d, rc=%d", ch, an_int, rc); rc 1137 lib/common/iso8601.c if(rc == 0) { \ rc 1141 lib/common/iso8601.c rc = 1; \ rc 1145 lib/common/iso8601.c rc = -1; \ rc 1152 lib/common/iso8601.c int rc = 0; rc 1173 lib/common/iso8601.c return rc; rc 234 lib/common/logging.c int fd = 0, rc = 0; rc 260 lib/common/logging.c rc = stat(parent_dir, &parent); rc 262 lib/common/logging.c if (rc != 0) { rc 285 lib/common/logging.c rc = fstat(logfd, &st); rc 286 lib/common/logging.c if (rc < 0) { rc 303 lib/common/logging.c rc = fchown(logfd, pcmk_uid, pcmk_gid); rc 304 lib/common/logging.c if (rc < 0) { rc 309 lib/common/logging.c rc = fchmod(logfd, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); rc 310 lib/common/logging.c if (rc < 0) { rc 981 lib/common/logging.c pcmk_errorname(int rc) rc 983 lib/common/logging.c int error = ABS(rc); rc 1135 lib/common/logging.c pcmk_strerror(int rc) rc 1137 lib/common/logging.c int error = abs(rc); rc 1193 lib/common/logging.c crm_err("Unknown error code: %d", rc); rc 1198 lib/common/logging.c bz2_strerror(int rc) rc 1201 lib/common/logging.c switch (rc) { rc 99 lib/common/mainloop.c int rc = TRUE; rc 109 lib/common/mainloop.c rc = callback(trig->user_data); rc 110 lib/common/mainloop.c if (rc < 0) { rc 113 lib/common/mainloop.c rc = TRUE; rc 116 lib/common/mainloop.c return rc; rc 592 lib/common/mainloop.c int rc = 0; rc 609 lib/common/mainloop.c rc = qb_ipcs_run(server); rc 610 lib/common/mainloop.c if (rc < 0) { rc 611 lib/common/mainloop.c crm_err("Could not start %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); rc 651 lib/common/mainloop.c long rc = 0; rc 655 lib/common/mainloop.c rc = crm_ipc_read(client->ipc); rc 656 lib/common/mainloop.c if (rc <= 0) { rc 658 lib/common/mainloop.c client->name, client, pcmk_strerror(rc), rc); rc 663 lib/common/mainloop.c crm_trace("New message from %s[%p] = %ld (I/O condition=%d)", client->name, client, rc, condition); rc 664 lib/common/mainloop.c if (client->dispatch_fn_ipc(buffer, rc, client->userdata) < 0) { rc 670 lib/common/mainloop.c } while (keep && rc > 0 && --max > 0); rc 916 lib/common/mainloop.c int rc; rc 919 lib/common/mainloop.c rc = kill(child->pid, SIGKILL); rc 922 lib/common/mainloop.c rc = kill(-child->pid, SIGKILL); rc 925 lib/common/mainloop.c if (rc < 0) { rc 938 lib/common/mainloop.c int rc = 0; rc 946 lib/common/mainloop.c rc = child_kill_helper(child); rc 947 lib/common/mainloop.c if (rc == ESRCH) { rc 962 lib/common/mainloop.c int rc = 0; rc 968 lib/common/mainloop.c rc = waitpid(child->pid, &status, flags); rc 969 lib/common/mainloop.c if(rc == 0) { rc 970 lib/common/mainloop.c crm_perror(LOG_DEBUG, "wait(%d) = %d", child->pid, rc); rc 973 lib/common/mainloop.c } else if(rc != child->pid) { rc 1049 lib/common/mainloop.c int waitflags = 0, rc = 0; rc 1062 lib/common/mainloop.c rc = child_kill_helper(match); rc 1063 lib/common/mainloop.c if(rc == -ESRCH) { rc 1076 lib/common/mainloop.c } else if(rc != 0) { rc 391 lib/common/operations.c int rc = 0; rc 397 lib/common/operations.c decode_transition_key(op->user_data, &uuid, &dummy, &dummy, &rc); rc 400 lib/common/operations.c return rc; rc 419 lib/common/operations.c if (target_rc != op->rc) { rc 518 lib/common/operations.c op->rc = 0; rc 550 lib/common/operations.c magic = generate_transition_magic(op->user_data, op->op_status, op->rc); rc 564 lib/common/operations.c crm_xml_add_int(xml_op, XML_LRM_ATTR_RC, op->rc); rc 145 lib/common/remote.c int rc = 0; rc 150 lib/common/remote.c rc = gnutls_handshake(*remote->tls_session); rc 151 lib/common/remote.c if (rc == GNUTLS_E_INTERRUPTED || rc == GNUTLS_E_AGAIN) { rc 155 lib/common/remote.c rc = -1; rc 160 lib/common/remote.c (rc == GNUTLS_E_INTERRUPTED || rc == GNUTLS_E_AGAIN)); rc 162 lib/common/remote.c if (rc < 0) { rc 163 lib/common/remote.c crm_trace("gnutls_handshake() failed with %d", rc); rc 165 lib/common/remote.c return rc; rc 229 lib/common/remote.c int rc = 0; rc 240 lib/common/remote.c rc = gnutls_record_send(*session, unsent, len); rc 242 lib/common/remote.c if (rc == GNUTLS_E_INTERRUPTED || rc == GNUTLS_E_AGAIN) { rc 246 lib/common/remote.c } else if (rc < 0) { rc 248 lib/common/remote.c gnutls_strerror(rc), rc); rc 249 lib/common/remote.c rc = -ECONNABORTED; rc 252 lib/common/remote.c } else if (rc < len) { rc 253 lib/common/remote.c crm_debug("Sent %d of %llu bytes", rc, (unsigned long long) len); rc 254 lib/common/remote.c len -= rc; rc 255 lib/common/remote.c unsent += rc; rc 257 lib/common/remote.c crm_trace("Sent all %d bytes", rc); rc 262 lib/common/remote.c return rc < 0 ? rc : total_send; rc 270 lib/common/remote.c int rc = 0; rc 282 lib/common/remote.c rc = write(sock, unsent, len); rc 283 lib/common/remote.c if (rc < 0) { rc 284 lib/common/remote.c rc = -errno; rc 291 lib/common/remote.c crm_perror(LOG_ERR, "Could only write %d of the remaining %d bytes", rc, (int)len); rc 295 lib/common/remote.c } else if (rc < len) { rc 297 lib/common/remote.c rc, (unsigned long long) len); rc 298 lib/common/remote.c len -= rc; rc 299 lib/common/remote.c unsent += rc; rc 303 lib/common/remote.c crm_trace("Sent %d bytes: %.100s", rc, buf); rc 306 lib/common/remote.c return rc < 0 ? rc : total_send; rc 314 lib/common/remote.c int rc = -ESOCKTNOSUPPORT; rc 320 lib/common/remote.c rc = crm_send_tls(remote->tls_session, iov[lpc].iov_base, iov[lpc].iov_len); rc 325 lib/common/remote.c rc = crm_send_plaintext(remote->tcp_socket, iov[lpc].iov_base, iov[lpc].iov_len); rc 331 lib/common/remote.c return rc; rc 337 lib/common/remote.c int rc = pcmk_ok; rc 366 lib/common/remote.c rc = crm_remote_sendv(remote, iov, 2); rc 367 lib/common/remote.c if (rc < 0) { rc 369 lib/common/remote.c pcmk_strerror(rc), rc); rc 374 lib/common/remote.c return rc; rc 395 lib/common/remote.c int rc = 0; rc 402 lib/common/remote.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + header->payload_offset, &size_u, rc 406 lib/common/remote.c if (rc != BZ_OK && header->version > REMOTE_MSG_VERSION) { rc 412 lib/common/remote.c } else if (rc != BZ_OK) { rc 413 lib/common/remote.c crm_err("Decompression failed: %s (%d)", bz2_strerror(rc), rc); rc 459 lib/common/remote.c int rc = 0; rc 498 lib/common/remote.c rc = poll(&fds, 1, timeout); rc 499 lib/common/remote.c } while (rc < 0 && errno == EINTR); rc 501 lib/common/remote.c return (rc < 0)? -errno : rc; rc 518 lib/common/remote.c int rc = 0; rc 539 lib/common/remote.c rc = gnutls_record_recv(*(remote->tls_session), rc 542 lib/common/remote.c if (rc == GNUTLS_E_INTERRUPTED) { rc 543 lib/common/remote.c rc = -EINTR; rc 544 lib/common/remote.c } else if (rc == GNUTLS_E_AGAIN) { rc 545 lib/common/remote.c rc = -EAGAIN; rc 546 lib/common/remote.c } else if (rc < 0) { rc 547 lib/common/remote.c crm_debug("TLS receive failed: %s (%d)", gnutls_strerror(rc), rc); rc 548 lib/common/remote.c rc = -pcmk_err_generic; rc 555 lib/common/remote.c rc = read(remote->tcp_socket, rc 558 lib/common/remote.c if(rc < 0) { rc 559 lib/common/remote.c rc = -errno; rc 568 lib/common/remote.c if (rc > 0) { rc 569 lib/common/remote.c remote->buffer_offset += rc; rc 573 lib/common/remote.c rc, (unsigned long long) remote->buffer_offset); rc 575 lib/common/remote.c } else if (rc == -EINTR || rc == -EAGAIN) { rc 576 lib/common/remote.c crm_trace("non-blocking, exiting read: %s (%d)", pcmk_strerror(rc), rc); rc 578 lib/common/remote.c } else if (rc == 0) { rc 586 lib/common/remote.c pcmk_strerror(rc), rc); rc 619 lib/common/remote.c int rc; rc 635 lib/common/remote.c rc = crm_remote_ready(remote, remaining_timeout); rc 637 lib/common/remote.c if (rc == 0) { rc 642 lib/common/remote.c } else if (rc < 0) { rc 644 lib/common/remote.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 647 lib/common/remote.c rc = crm_remote_recv_once(remote); rc 648 lib/common/remote.c if (rc > 0) { rc 650 lib/common/remote.c } else if (rc == -EAGAIN) { rc 652 lib/common/remote.c } else if (rc < 0) { rc 654 lib/common/remote.c pcmk_strerror(rc), rc); rc 658 lib/common/remote.c if (rc == -ENOTCONN) { rc 770 lib/common/remote.c int rc = 0; rc 775 lib/common/remote.c rc = crm_set_nonblocking(sock); rc 776 lib/common/remote.c if (rc < 0) { rc 778 lib/common/remote.c pcmk_strerror(rc), rc); rc 783 lib/common/remote.c rc = connect(sock, addr, addrlen); rc 784 lib/common/remote.c if (rc < 0 && (errno != EINPROGRESS) && (errno != EAGAIN)) { rc 796 lib/common/remote.c if (rc == 0) { rc 826 lib/common/remote.c int rc = connect(sock, addr, addrlen); rc 828 lib/common/remote.c if (rc < 0) { rc 829 lib/common/remote.c rc = -errno; rc 831 lib/common/remote.c pcmk_strerror(rc), rc); rc 832 lib/common/remote.c return rc; rc 835 lib/common/remote.c rc = crm_set_nonblocking(sock); rc 836 lib/common/remote.c if (rc < 0) { rc 838 lib/common/remote.c pcmk_strerror(rc), rc); rc 839 lib/common/remote.c return rc; rc 981 lib/common/remote.c int rc = 0; rc 1002 lib/common/remote.c rc = crm_set_nonblocking(csock); rc 1003 lib/common/remote.c if (rc < 0) { rc 1005 lib/common/remote.c pcmk_strerror(rc), rc); rc 1007 lib/common/remote.c return rc; rc 1013 lib/common/remote.c rc = setsockopt(csock, SOL_TCP, TCP_USER_TIMEOUT, rc 1015 lib/common/remote.c if (rc < 0) { rc 1019 lib/common/remote.c return rc; rc 155 lib/common/schemas.c int rc = schema_scanf(filename, "pacemaker-", *version, ".rng"); rc 157 lib/common/schemas.c return (rc == 2); rc 163 lib/common/schemas.c int rc = 0; rc 181 lib/common/schemas.c rc = 1; rc 184 lib/common/schemas.c return rc; rc 423 lib/common/schemas.c int rc = 0; rc 478 lib/common/schemas.c rc = xmlRelaxNGValidateDoc(ctx->valid, doc); rc 479 lib/common/schemas.c if (rc > 0) { rc 482 lib/common/schemas.c } else if (rc < 0) { rc 627 lib/common/schemas.c gboolean rc = FALSE; rc 640 lib/common/schemas.c rc = validate_xml(xml, NULL, FALSE); rc 646 lib/common/schemas.c return rc; rc 789 lib/common/schemas.c int lpc = 0, match = -1, rc = pcmk_ok; rc 839 lib/common/schemas.c rc = -pcmk_err_schema_validation; rc 847 lib/common/schemas.c rc = pcmk_ok; rc 850 lib/common/schemas.c if (rc == pcmk_ok) { rc 854 lib/common/schemas.c if (rc == pcmk_ok && transform) { rc 885 lib/common/schemas.c rc = -pcmk_err_transform_failed; rc 894 lib/common/schemas.c rc = pcmk_ok; rc 901 lib/common/schemas.c rc = -pcmk_err_schema_validation; rc 907 lib/common/schemas.c if (transform == FALSE || rc != pcmk_ok) { rc 922 lib/common/schemas.c return rc; rc 928 lib/common/schemas.c gboolean rc = TRUE; rc 974 lib/common/schemas.c rc = FALSE; rc 1007 lib/common/schemas.c return rc; rc 415 lib/common/strings.c int rc; rc 433 lib/common/strings.c rc = BZ2_bzBuffToBuffCompress(compressed, result_len, uncompressed, length, CRM_BZ2_BLOCKS, 0, rc 438 lib/common/strings.c if (rc != BZ_OK) { rc 439 lib/common/strings.c crm_err("Compression of %d bytes failed: %s (%d)", length, bz2_strerror(rc), rc); rc 83 lib/common/utils.c crm_exit(int rc) rc 92 lib/common/utils.c crm_trace("exit %d", rc); rc 98 lib/common/utils.c exit(ABS(rc)); /* Always exit with a positive value so that it can be passed to crm_error rc 104 lib/common/utils.c return rc; /* Can never happen, but allows return crm_exit(rc) rc 435 lib/common/utils.c int rc = pcmk_ok; rc 441 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PW_BUFFER_LEN, &pwentry); rc 452 lib/common/utils.c rc = rc? -rc : -EINVAL; rc 453 lib/common/utils.c crm_info("User %s lookup: %s", name, pcmk_strerror(rc)); rc 457 lib/common/utils.c return rc; rc 488 lib/common/utils.c int rc = 0; rc 525 lib/common/utils.c rc = -1; rc 529 lib/common/utils.c rc = 1; rc 551 lib/common/utils.c if (rc == 0) { rc 553 lib/common/utils.c } else if (rc < 0) { rc 555 lib/common/utils.c } else if (rc > 0) { rc 559 lib/common/utils.c return rc; rc 659 lib/common/utils.c int rc = 0; rc 702 lib/common/utils.c rc = waitpid(pid, &status, 0); rc 703 lib/common/utils.c if(rc == pid) { rc 744 lib/common/utils.c int rc = 0; rc 750 lib/common/utils.c rc = readlink(proc_path, exe_path, PATH_MAX - 1); rc 751 lib/common/utils.c if (rc < 0 && errno == EACCES) { rc 754 lib/common/utils.c } else if (rc < 0) { rc 760 lib/common/utils.c exe_path[rc] = 0; rc 763 lib/common/utils.c rc = snprintf(myexe_path, sizeof(proc_path), CRM_DAEMON_DIR"/%s", daemon); rc 764 lib/common/utils.c myexe_path[rc] = 0; rc 766 lib/common/utils.c rc = snprintf(myexe_path, sizeof(proc_path), "%s", daemon); rc 767 lib/common/utils.c myexe_path[rc] = 0; rc 848 lib/common/utils.c int fd = 0, rc = 0; rc 853 lib/common/utils.c rc = crm_pidfile_inuse(filename, 0, name); rc 854 lib/common/utils.c if (rc == -ENOENT) { rc 857 lib/common/utils.c } else if (rc != pcmk_ok) { rc 859 lib/common/utils.c return rc; rc 868 lib/common/utils.c rc = write(fd, buf, LOCKSTRLEN); rc 871 lib/common/utils.c if (rc != LOCKSTRLEN) { rc 882 lib/common/utils.c int rc; rc 891 lib/common/utils.c rc = crm_pidfile_inuse(pidfile, 1, name); rc 892 lib/common/utils.c if(rc < pcmk_ok && rc != -ENOENT) { rc 896 lib/common/utils.c crm_exit(rc); rc 909 lib/common/utils.c rc = crm_lock_pidfile(pidfile, name); rc 910 lib/common/utils.c if(rc < pcmk_ok) { rc 911 lib/common/utils.c crm_err("Could not lock '%s' for %s: %s (%d)", pidfile, name, pcmk_strerror(rc), rc); rc 912 lib/common/utils.c printf("Could not lock '%s' for %s: %s (%d)\n", pidfile, name, pcmk_strerror(rc), rc); rc 913 lib/common/utils.c crm_exit(rc); rc 97 lib/common/watchdog.c int rc = pcmk_ok; rc 139 lib/common/watchdog.c rc = errno; rc 141 lib/common/watchdog.c do_crm_log_always(LOG_EMERG, "Reboot failed, escalating to %d: %s (%d)", ppid, pcmk_strerror(rc), rc); rc 125 lib/common/xml.c int rc = (max); \ rc 127 lib/common/xml.c rc = snprintf((buffer) + (offset), (max) - (offset), fmt, ##args); \ rc 129 lib/common/xml.c if(buffer && rc < 0) { \ rc 133 lib/common/xml.c } else if(rc >= ((max) - (offset))) { \ rc 140 lib/common/xml.c offset += rc; \ rc 1872 lib/common/xml.c int rc = pcmk_ok; rc 1883 lib/common/xml.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 1892 lib/common/xml.c rc = -ENOTUNIQ; rc 1897 lib/common/xml.c if (rc == pcmk_ok) { rc 1902 lib/common/xml.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 1912 lib/common/xml.c rc = -ENOTUNIQ; rc 1918 lib/common/xml.c return rc; rc 1957 lib/common/xml.c int rc = 0; rc 1960 lib/common/xml.c rc = sscanf (current, "/%[^/]%s", section, remainder); rc 1961 lib/common/xml.c if(rc <= 0) { rc 1965 lib/common/xml.c } else if(rc > 2) { rc 1975 lib/common/xml.c if (rc == 1 && target_position >= 0) { rc 1992 lib/common/xml.c if(rc == 1 || target == NULL) { rc 2024 lib/common/xml.c int rc = pcmk_ok; rc 2053 lib/common/xml.c rc = -pcmk_err_diff_failed; rc 2122 lib/common/xml.c rc = -pcmk_err_diff_failed; rc 2133 lib/common/xml.c rc = -ENOMSG; rc 2154 lib/common/xml.c return rc; rc 2161 lib/common/xml.c int rc = pcmk_ok; rc 2166 lib/common/xml.c return rc; rc 2173 lib/common/xml.c rc = xml_patch_version_check(xml, patchset, format); rc 2174 lib/common/xml.c if(rc != pcmk_ok) { rc 2175 lib/common/xml.c return rc; rc 2184 lib/common/xml.c if(rc == pcmk_ok) { rc 2187 lib/common/xml.c rc = xml_apply_patchset_v1(xml, patchset); rc 2190 lib/common/xml.c rc = xml_apply_patchset_v2(xml, patchset); rc 2194 lib/common/xml.c rc = -EINVAL; rc 2198 lib/common/xml.c if(rc == pcmk_ok && digest) { rc 2213 lib/common/xml.c rc = -pcmk_err_diff_failed; rc 2231 lib/common/xml.c return rc; rc 2857 lib/common/xml.c int rc = 0; rc 2868 lib/common/xml.c bz_file = BZ2_bzReadOpen(&rc, input, 0, 0, NULL, 0); rc 2870 lib/common/xml.c if (rc != BZ_OK) { rc 2871 lib/common/xml.c BZ2_bzReadClose(&rc, bz_file); rc 2875 lib/common/xml.c rc = BZ_OK; rc 2876 lib/common/xml.c while (rc == BZ_OK) { rc 2878 lib/common/xml.c read_len = BZ2_bzRead(&rc, bz_file, buffer + length, XML_BUFFER_SIZE); rc 2880 lib/common/xml.c crm_trace("Read %ld bytes from file: %d", (long)read_len, rc); rc 2882 lib/common/xml.c if (rc == BZ_OK || rc == BZ_STREAM_END) { rc 2889 lib/common/xml.c if (rc != BZ_STREAM_END) { rc 2895 lib/common/xml.c BZ2_bzReadClose(&rc, bz_file); rc 3085 lib/common/xml.c int rc = BZ_OK; rc 3089 lib/common/xml.c bz_file = BZ2_bzWriteOpen(&rc, stream, 5, 0, 30); rc 3090 lib/common/xml.c if (rc != BZ_OK) { rc 3091 lib/common/xml.c crm_err("bzWriteOpen failed: %d", rc); rc 3093 lib/common/xml.c BZ2_bzWrite(&rc, bz_file, buffer, strlen(buffer)); rc 3094 lib/common/xml.c if (rc != BZ_OK) { rc 3095 lib/common/xml.c crm_err("bzWrite() failed: %d", rc); rc 3099 lib/common/xml.c if (rc == BZ_OK) { rc 3100 lib/common/xml.c BZ2_bzWriteClose(&rc, bz_file, 0, &in, &out); rc 3101 lib/common/xml.c if (rc != BZ_OK) { rc 3102 lib/common/xml.c crm_err("bzWriteClose() failed: %d", rc); rc 4980 lib/common/xml.c int rc = 0; rc 4990 lib/common/xml.c rc = strcmp(pair_a->name, pair_b->name); rc 4991 lib/common/xml.c if (rc < 0) { rc 4993 lib/common/xml.c } else if (rc > 0) { rc 77 lib/fencing/st_client.c int rc; rc 150 lib/fencing/st_client.c void stonith_perform_callback(stonith_t * stonith, xmlNode * msg, int call_id, int rc); rc 239 lib/fencing/st_client.c int rc = 0; rc 244 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_ADD, data, NULL, call_options, 0); rc 247 lib/fencing/st_client.c return rc; rc 253 lib/fencing/st_client.c int rc = 0; rc 259 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_DEL, data, NULL, call_options, 0); rc 262 lib/fencing/st_client.c return rc; rc 270 lib/fencing/st_client.c int rc = 0; rc 290 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); rc 293 lib/fencing/st_client.c return rc; rc 377 lib/fencing/st_client.c int rc = 0; rc 382 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); rc 385 lib/fencing/st_client.c return rc; rc 605 lib/fencing/st_client.c int rc = 0; rc 611 lib/fencing/st_client.c rc = kill(-track->pid, SIGTERM); rc 612 lib/fencing/st_client.c if (rc < 0) { rc 621 lib/fencing/st_client.c int rc = 0; rc 627 lib/fencing/st_client.c rc = kill(-track->pid, SIGKILL); rc 628 lib/fencing/st_client.c if (rc < 0) { rc 657 lib/fencing/st_client.c action->rc = 0; rc 750 lib/fencing/st_client.c } else if ((action->rc != -ETIME) && diff < (action->timeout * 0.7)) { rc 778 lib/fencing/st_client.c action->rc = -ETIME; rc 783 lib/fencing/st_client.c action->rc = -ECONNABORTED; rc 808 lib/fencing/st_client.c action->rc = exitcode; rc 813 lib/fencing/st_client.c if (action->rc != pcmk_ok && update_remaining_timeout(action)) { rc 814 lib/fencing/st_client.c int rc = internal_stonith_action_execute(action); rc 815 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 821 lib/fencing/st_client.c action->done_cb(pid, action->rc, action->output, action->userdata); rc 830 lib/fencing/st_client.c int pid, status = 0, len, rc = -EPROTO; rc 879 lib/fencing/st_client.c rc = -ECHILD; rc 921 lib/fencing/st_client.c action->agent, pcmk_strerror(rc), rc); rc 927 lib/fencing/st_client.c action->agent, pcmk_strerror(rc), rc); rc 942 lib/fencing/st_client.c rc = -ECOMM; rc 1011 lib/fencing/st_client.c action->rc = -ECONNABORTED; rc 1015 lib/fencing/st_client.c rc = action->rc; rc 1017 lib/fencing/st_client.c action->rc = -ETIME; rc 1020 lib/fencing/st_client.c action->rc = -WEXITSTATUS(status); rc 1021 lib/fencing/st_client.c rc = 0; rc 1055 lib/fencing/st_client.c return rc; rc 1061 lib/fencing/st_client.c void (*done) (GPid pid, int rc, const char *output, rc 1064 lib/fencing/st_client.c int rc = 0; rc 1074 lib/fencing/st_client.c rc = internal_stonith_action_execute(action); rc 1076 lib/fencing/st_client.c return rc < 0 ? rc : action->pid; rc 1082 lib/fencing/st_client.c int rc = 0; rc 1089 lib/fencing/st_client.c rc = internal_stonith_action_execute(action); rc 1090 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 1097 lib/fencing/st_client.c if (rc) { rc 1099 lib/fencing/st_client.c return rc; rc 1103 lib/fencing/st_client.c *agent_result = action->rc; rc 1111 lib/fencing/st_client.c return rc; rc 1236 lib/fencing/st_client.c int rc = 0; rc 1249 lib/fencing/st_client.c int exec_rc = stonith_action_execute(action, &rc, &buffer); rc 1254 lib/fencing/st_client.c if (exec_rc < 0 || rc != 0 || buffer == NULL) { rc 1256 lib/fencing/st_client.c crm_debug("Query failed: %d %d: %s", exec_rc, rc, crm_str(buffer)); rc 1401 lib/fencing/st_client.c return rc; rc 1408 lib/fencing/st_client.c int rc = 0, lpc = 0, max = 0; rc 1420 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_QUERY, data, &output, call_options, timeout); rc 1422 lib/fencing/st_client.c if (rc < 0) { rc 1423 lib/fencing/st_client.c return rc; rc 1457 lib/fencing/st_client.c int rc = 0; rc 1466 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_EXEC, data, output, call_options, timeout); rc 1469 lib/fencing/st_client.c return rc; rc 1476 lib/fencing/st_client.c int rc; rc 1479 lib/fencing/st_client.c rc = stonith_api_call(stonith, call_options, id, "list", NULL, timeout, &output); rc 1495 lib/fencing/st_client.c return rc; rc 1515 lib/fencing/st_client.c int rc = 0; rc 1524 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE, data, NULL, call_options, timeout); rc 1527 lib/fencing/st_client.c return rc; rc 1540 lib/fencing/st_client.c int rc = 0; rc 1552 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE_HISTORY, data, &output, rc 1556 lib/fencing/st_client.c if (rc == 0) { rc 1580 lib/fencing/st_client.c return rc; rc 1586 lib/fencing/st_client.c int rc = 0; rc 1591 lib/fencing/st_client.c rc = stat(buffer, &prop); rc 1592 lib/fencing/st_client.c if (rc >= 0 && S_ISREG(prop.st_mode)) { rc 1644 lib/fencing/st_client.c int rc = 0; rc 1649 lib/fencing/st_client.c rc = strcmp(a_client->event, b_client->event); rc 1650 lib/fencing/st_client.c if (rc == 0) { rc 1666 lib/fencing/st_client.c return rc; rc 1735 lib/fencing/st_client.c int rc = pcmk_ok; rc 1754 lib/fencing/st_client.c rc = -ENOTCONN; rc 1766 lib/fencing/st_client.c rc = -ENOTCONN; rc 1769 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 1776 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, hello, crm_ipc_client_response, -1, &reply); rc 1778 lib/fencing/st_client.c if (rc < 0) { rc 1779 lib/fencing/st_client.c crm_perror(LOG_DEBUG, "Couldn't complete registration with the fencing API: %d", rc); rc 1780 lib/fencing/st_client.c rc = -ECOMM; rc 1784 lib/fencing/st_client.c rc = -EPROTO; rc 1793 lib/fencing/st_client.c rc = -EPROTO; rc 1798 lib/fencing/st_client.c rc = -EPROTO; rc 1803 lib/fencing/st_client.c rc = pcmk_ok; rc 1811 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 1819 lib/fencing/st_client.c crm_debug("Connection to STONITH failed: %s", pcmk_strerror(rc)); rc 1821 lib/fencing/st_client.c return rc; rc 1827 lib/fencing/st_client.c int rc = pcmk_ok; rc 1840 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, -1, NULL); rc 1841 lib/fencing/st_client.c if (rc < 0) { rc 1842 lib/fencing/st_client.c crm_perror(LOG_DEBUG, "Couldn't register for fencing notifications: %d", rc); rc 1843 lib/fencing/st_client.c rc = -ECOMM; rc 1845 lib/fencing/st_client.c rc = pcmk_ok; rc 1850 lib/fencing/st_client.c return rc; rc 1975 lib/fencing/st_client.c invoke_callback(stonith_t * st, int call_id, int rc, void *userdata, rc 1981 lib/fencing/st_client.c data.rc = rc; rc 2071 lib/fencing/st_client.c stonith_perform_callback(stonith_t * stonith, xmlNode * msg, int call_id, int rc) rc 2088 lib/fencing/st_client.c crm_element_value_int(msg, F_STONITH_RC, &rc); rc 2107 lib/fencing/st_client.c if (local_blob.callback != NULL && (rc == pcmk_ok || local_blob.only_success == FALSE)) { rc 2109 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, local_blob.user_data, local_blob.callback); rc 2111 lib/fencing/st_client.c } else if (private->op_callback == NULL && rc != pcmk_ok) { rc 2112 lib/fencing/st_client.c crm_warn("STONITH command failed: %s", pcmk_strerror(rc)); rc 2118 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, NULL, private->op_callback); rc 2233 lib/fencing/st_client.c int rc = 0; rc 2278 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, 1000 * (timeout + 60), &op_reply); rc 2281 lib/fencing/st_client.c if (rc < 0) { rc 2282 lib/fencing/st_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%ds): %d", op, timeout, rc); rc 2283 lib/fencing/st_client.c rc = -ECOMM; rc 2297 lib/fencing/st_client.c rc = pcmk_ok; rc 2303 lib/fencing/st_client.c if (crm_element_value_int(op_reply, F_STONITH_RC, &rc) != 0) { rc 2304 lib/fencing/st_client.c rc = -ENOMSG; rc 2319 lib/fencing/st_client.c rc = -ENOMSG; rc 2325 lib/fencing/st_client.c rc = -ENOMSG; rc 2335 lib/fencing/st_client.c return rc; rc 2413 lib/fencing/st_client.c int rc = pcmk_ok; rc 2419 lib/fencing/st_client.c rc = stonith->cmds->disconnect(stonith); rc 2436 lib/fencing/st_client.c crm_err("Not free'ing active connection: %s (%d)", pcmk_strerror(rc), rc); rc 2439 lib/fencing/st_client.c return rc; rc 2557 lib/fencing/st_client.c int rc = -EPROTO; rc 2564 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 2565 lib/fencing/st_client.c if(rc != pcmk_ok) { rc 2566 lib/fencing/st_client.c api_log(LOG_ERR, "Connection failed, could not kick (%s) node %u/%s : %s (%d)", action, nodeid, uname, pcmk_strerror(rc), rc); rc 2582 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 2583 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); rc 2584 lib/fencing/st_client.c if(rc != pcmk_ok) { rc 2585 lib/fencing/st_client.c api_log(LOG_ERR, "Could not kick (%s) node %u/%s : %s (%d)", action, nodeid, uname, pcmk_strerror(rc), rc); rc 2597 lib/fencing/st_client.c return rc; rc 2603 lib/fencing/st_client.c int rc = 0; rc 2613 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 2614 lib/fencing/st_client.c if(rc != pcmk_ok) { rc 2615 lib/fencing/st_client.c api_log(LOG_NOTICE, "Connection failed: %s (%d)", pcmk_strerror(rc), rc); rc 2627 lib/fencing/st_client.c if (st && rc == pcmk_ok) { rc 2632 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); rc 2650 lib/fencing/st_client.c if(rc == pcmk_ok) { rc 2653 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 2672 lib/fencing/st_client.c const char *i_hate_pils(int rc); rc 2675 lib/fencing/st_client.c i_hate_pils(int rc) rc 2677 lib/fencing/st_client.c return PIL_strerror(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 141 lib/lrmd/lrmd_alerts.c int rc; rc 183 lib/lrmd/lrmd_alerts.c rc = lrmd->cmds->exec_alert(lrmd, entry->id, entry->path, rc 185 lib/lrmd/lrmd_alerts.c if (rc < 0) { rc 187 lib/lrmd/lrmd_alerts.c entry->id, pcmk_strerror(rc), rc); rc 224 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 236 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, crm_alert_attribute, attr_name, rc 239 lib/lrmd/lrmd_alerts.c return rc; rc 260 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 271 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, crm_alert_node, NULL, params); rc 273 lib/lrmd/lrmd_alerts.c return rc; rc 296 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 308 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, crm_alert_fencing, NULL, params); rc 310 lib/lrmd/lrmd_alerts.c return rc; rc 330 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 339 lib/lrmd/lrmd_alerts.c if ((op->interval == 0) && (target_rc == op->rc) rc 356 lib/lrmd/lrmd_alerts.c params = alert_key2param_int(params, CRM_alert_rc, op->rc); rc 359 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, CRM_alert_desc, services_ocf_exitcode_str(op->rc)); rc 364 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, crm_alert_resource, NULL, params); rc 366 lib/lrmd/lrmd_alerts.c return rc; rc 263 lib/lrmd/lrmd_client.c crm_element_value_int(msg, F_LRMD_EXEC_RC, (int *)&event.rc); rc 302 lib/lrmd/lrmd_client.c int rc; rc 310 lib/lrmd/lrmd_client.c rc = lrmd_dispatch_internal(lrmd, msg); rc 312 lib/lrmd/lrmd_client.c return rc; rc 340 lib/lrmd/lrmd_client.c int rc = 0; rc 364 lib/lrmd/lrmd_client.c rc = crm_remote_ready(native->remote, 0); rc 365 lib/lrmd/lrmd_client.c if (rc == 0) { rc 368 lib/lrmd/lrmd_client.c } else if (rc < 0) { rc 648 lib/lrmd/lrmd_client.c int rc = 0; rc 656 lib/lrmd/lrmd_client.c rc = lrmd_tls_send_msg(native->remote, msg, global_remote_msg_id, "request"); rc 657 lib/lrmd/lrmd_client.c if (rc <= 0) { rc 668 lib/lrmd/lrmd_client.c int rc = 0; rc 676 lib/lrmd/lrmd_client.c rc = lrmd_tls_send(lrmd, msg); rc 677 lib/lrmd/lrmd_client.c if (rc < 0) { rc 678 lib/lrmd/lrmd_client.c return rc; rc 687 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 691 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 700 lib/lrmd/lrmd_client.c return rc; rc 707 lib/lrmd/lrmd_client.c int rc = -1; rc 712 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_client_response, timeout, reply); rc 716 lib/lrmd/lrmd_client.c rc = lrmd_tls_send_recv(lrmd, msg, timeout, reply); rc 723 lib/lrmd/lrmd_client.c return rc; rc 729 lib/lrmd/lrmd_client.c int rc = -1; rc 734 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_flags_none, 0, NULL); rc 738 lib/lrmd/lrmd_client.c rc = lrmd_tls_send(lrmd, msg); rc 739 lib/lrmd/lrmd_client.c if (rc == pcmk_ok) { rc 751 lib/lrmd/lrmd_client.c return rc; rc 796 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 821 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, op_msg, timeout, &op_reply); rc 823 lib/lrmd/lrmd_client.c rc = lrmd_send_xml_no_reply(lrmd, op_msg); rc 827 lib/lrmd/lrmd_client.c if (rc < 0) { rc 828 lib/lrmd/lrmd_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%d): %d", op, timeout, rc); rc 829 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 833 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 837 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 839 lib/lrmd/lrmd_client.c if (crm_element_value_int(op_reply, F_LRMD_RC, &rc) != 0) { rc 840 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 858 lib/lrmd/lrmd_client.c return rc; rc 864 lib/lrmd/lrmd_client.c int rc; rc 869 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_POKE, data, NULL, 0, 0, native->type == CRM_CLIENT_IPC ? TRUE : FALSE); rc 872 lib/lrmd/lrmd_client.c return rc < 0 ? rc : pcmk_ok; rc 878 lib/lrmd/lrmd_client.c int rc; rc 888 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_CHECK, data, NULL, 0, 0, native->type == CRM_CLIENT_IPC ? TRUE : FALSE); rc 891 lib/lrmd/lrmd_client.c return rc < 0 ? rc : pcmk_ok; rc 897 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 912 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, hello, -1, &reply); rc 914 lib/lrmd/lrmd_client.c if (rc < 0) { rc 915 lib/lrmd/lrmd_client.c crm_perror(LOG_DEBUG, "Couldn't complete registration with the lrmd API: %d", rc); rc 916 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 919 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 925 lib/lrmd/lrmd_client.c crm_element_value_int(reply, F_LRMD_RC, &rc); rc 927 lib/lrmd/lrmd_client.c if (rc == -EPROTO) { rc 935 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 939 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 944 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 951 lib/lrmd/lrmd_client.c if (rc != pcmk_ok) { rc 954 lib/lrmd/lrmd_client.c return rc; rc 960 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 977 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 986 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 989 lib/lrmd/lrmd_client.c return rc; rc 1103 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd_t * lrmd, int rc) rc 1111 lib/lrmd/lrmd_client.c event.connection_rc = rc; rc 1127 lib/lrmd/lrmd_client.c int rc = sock; rc 1132 lib/lrmd/lrmd_client.c if (rc < 0) { rc 1136 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1146 lib/lrmd/lrmd_client.c rc = lrmd_tls_set_key(&psk_key); rc 1147 lib/lrmd/lrmd_client.c if (rc != 0) { rc 1149 lib/lrmd/lrmd_client.c native->server, native->port, rc); rc 1151 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1181 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1184 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1213 lib/lrmd/lrmd_client.c int rc; rc 1230 lib/lrmd/lrmd_client.c rc = lrmd_tls_set_key(&psk_key); rc 1231 lib/lrmd/lrmd_client.c if (rc < 0) { rc 1233 lib/lrmd/lrmd_client.c return rc; rc 1272 lib/lrmd/lrmd_client.c int rc = -ENOTCONN; rc 1277 lib/lrmd/lrmd_client.c rc = lrmd_ipc_connect(lrmd, fd); rc 1281 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect(lrmd, fd); rc 1288 lib/lrmd/lrmd_client.c if (rc == pcmk_ok) { rc 1289 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1292 lib/lrmd/lrmd_client.c return rc; rc 1298 lib/lrmd/lrmd_client.c int rc = 0; rc 1310 lib/lrmd/lrmd_client.c rc = lrmd_api_connect(lrmd, name, NULL); rc 1311 lib/lrmd/lrmd_client.c if (!rc) { rc 1312 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1317 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect_async(lrmd, timeout); rc 1318 lib/lrmd/lrmd_client.c if (rc) { rc 1320 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1328 lib/lrmd/lrmd_client.c return rc; rc 1420 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1437 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_REG, data, NULL, 0, options, TRUE); rc 1440 lib/lrmd/lrmd_client.c return rc; rc 1446 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1451 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_UNREG, data, NULL, 0, options, TRUE); rc 1454 lib/lrmd/lrmd_client.c return rc; rc 1573 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1581 lib/lrmd/lrmd_client.c rc = -EIO; rc 1583 lib/lrmd/lrmd_client.c return rc; rc 1635 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1652 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_EXEC, data, NULL, timeout, options, TRUE); rc 1656 lib/lrmd/lrmd_client.c return rc; rc 1664 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1678 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_ALERT_EXEC, data, NULL, timeout, rc 1683 lib/lrmd/lrmd_client.c return rc; rc 1689 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1696 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_CANCEL, data, NULL, 0, 0, TRUE); rc 1698 lib/lrmd/lrmd_client.c return rc; rc 1704 lib/lrmd/lrmd_client.c int rc = 0; rc 1715 lib/lrmd/lrmd_client.c rc++; rc 1722 lib/lrmd/lrmd_client.c return rc; rc 1729 lib/lrmd/lrmd_client.c int rc = 0; rc 1732 lib/lrmd/lrmd_client.c rc += list_stonith_agents(resources); rc 1740 lib/lrmd/lrmd_client.c rc++; rc 1745 lib/lrmd/lrmd_client.c rc += list_stonith_agents(resources); rc 1749 lib/lrmd/lrmd_client.c if (rc == 0) { rc 1751 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1753 lib/lrmd/lrmd_client.c return rc; rc 1777 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1789 lib/lrmd/lrmd_client.c rc++; rc 1794 lib/lrmd/lrmd_client.c return rc; rc 1800 lib/lrmd/lrmd_client.c int rc = 0; rc 1808 lib/lrmd/lrmd_client.c rc++; rc 1813 lib/lrmd/lrmd_client.c rc++; rc 1817 lib/lrmd/lrmd_client.c return rc; rc 267 lib/lrmd/proxy_common.c int rc = 0; rc 274 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 5000, NULL); rc 276 lib/lrmd/proxy_common.c if(rc < 0) { rc 280 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 285 lib/lrmd/proxy_common.c crm_xml_add_int(op_reply, "rc", rc); rc 296 lib/lrmd/proxy_common.c int rc = pcmk_ok; rc 303 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 10000, &op_reply); rc 304 lib/lrmd/proxy_common.c if(rc < 0) { rc 306 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 41 lib/pengine/container.c int rc = sscanf(last_ip, "%u.%u.%u.%u", &oct1, &oct2, &oct3, &oct4); rc 43 lib/pengine/container.c if (rc != 4) { rc 57 lib/pengine/failcounts.c int rc = 0; rc 60 lib/pengine/failcounts.c crm_element_value_int(lrm_op_xml, XML_LRM_ATTR_RC, &rc); rc 61 lib/pengine/failcounts.c if (rc != target_rc) { rc 2168 lib/pengine/unpack.c const char *rc = crm_element_value(rsc_op, XML_LRM_ATTR_RC); rc 2170 lib/pengine/unpack.c if (safe_str_eq(rc, "0") || safe_str_eq(rc, "8")) { rc 2611 lib/pengine/unpack.c unpack_rsc_op_failure(resource_t * rsc, node_t * node, int rc, xmlNode * xml_op, xmlNode ** last_failure, rc 2632 lib/pengine/unpack.c if (rc != PCMK_OCF_NOT_INSTALLED || is_set(data_set->flags, pe_flag_symmetric_cluster)) { rc 2634 lib/pengine/unpack.c task, rsc->id, node->details->uname, services_ocf_exitcode_str(rc), rc 2635 lib/pengine/unpack.c rc); rc 2641 lib/pengine/unpack.c task, rsc->id, node->details->uname, services_ocf_exitcode_str(rc), rc 2642 lib/pengine/unpack.c rc); rc 2674 lib/pengine/unpack.c } else if(rc == PCMK_OCF_NOT_RUNNING) { rc 2688 lib/pengine/unpack.c if(is_probe && rc == PCMK_OCF_NOT_INSTALLED) { rc 2735 lib/pengine/unpack.c resource_t *rsc, int rc, int target_rc, node_t * node, xmlNode * xml_op, enum action_fail_response * on_fail, pe_working_set_t * data_set) rc 2751 lib/pengine/unpack.c if (target_rc >= 0 && target_rc != rc) { rc 2755 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc, rc 2762 lib/pengine/unpack.c switch (rc) { rc 2779 lib/pengine/unpack.c if (is_probe || target_rc == rc || is_not_set(rsc->flags, pe_rsc_managed)) { rc 2798 lib/pengine/unpack.c } else if (target_rc == rc) { rc 2830 lib/pengine/unpack.c if (rc == PCMK_OCF_UNIMPLEMENT_FEATURE && interval > 0) { rc 2838 lib/pengine/unpack.c rsc->id, task, services_ocf_exitcode_str(rc), rc); rc 2848 lib/pengine/unpack.c key, rc, node->details->uname); rc 2856 lib/pengine/unpack.c static bool check_operation_expiry(resource_t *rsc, node_t *node, int rc, xmlNode *xml_op, pe_working_set_t * data_set) rc 2932 lib/pengine/unpack.c if (digest_data->rc == RSC_DIGEST_UNKNOWN) { rc 2935 lib/pengine/unpack.c } else if(container_fix_remote_addr(rsc) && digest_data->rc != RSC_DIGEST_MATCH) { rc 2939 lib/pengine/unpack.c } else if (digest_data->rc != RSC_DIGEST_MATCH) { rc 2957 lib/pengine/unpack.c switch(rc) { rc 3001 lib/pengine/unpack.c update_resource_state(resource_t * rsc, node_t * node, xmlNode * xml_op, const char * task, int rc, rc 3009 lib/pengine/unpack.c if (rc == PCMK_OCF_NOT_RUNNING) { rc 3012 lib/pengine/unpack.c } else if (rc == PCMK_OCF_NOT_INSTALLED) { rc 3100 lib/pengine/unpack.c int rc = 0; rc 3118 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_RC, &rc); rc 3138 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); rc 3152 lib/pengine/unpack.c expired = check_operation_expiry(rsc, node, rc, xml_op, data_set); rc 3156 lib/pengine/unpack.c if (rc == PCMK_OCF_DEGRADED && safe_str_eq(task, CRMD_ACTION_STATUS)) { rc 3157 lib/pengine/unpack.c rc = PCMK_OCF_OK; rc 3165 lib/pengine/unpack.c } else if (rc == PCMK_OCF_DEGRADED_MASTER && safe_str_eq(task, CRMD_ACTION_STATUS)) { rc 3166 lib/pengine/unpack.c rc = PCMK_OCF_RUNNING_MASTER; rc 3175 lib/pengine/unpack.c if (expired && target_rc != rc) { rc 3180 lib/pengine/unpack.c services_ocf_exitcode_str(rc), rc, rc 3185 lib/pengine/unpack.c task_key, rc, magic, node->details->uname); rc 3190 lib/pengine/unpack.c task_key, rc, magic, node->details->uname); rc 3198 lib/pengine/unpack.c status = determine_op_status(rsc, rc, target_rc, node, xml_op, on_fail, data_set); rc 3243 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); rc 3251 lib/pengine/unpack.c task_key, status, rc, node->details->uname); rc 3256 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); rc 3271 lib/pengine/unpack.c task_key, rc, node->details->uname); rc 3284 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); rc 3287 lib/pengine/unpack.c do_crm_log(rc != PCMK_OCF_NOT_INSTALLED?LOG_ERR:LOG_NOTICE, rc 3290 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), rc); rc 3296 lib/pengine/unpack.c parent->id, task, services_ocf_exitcode_str(rc), rc); rc 749 lib/pengine/utils.c int rc = crm_time_compare(origin, now); rc 756 lib/pengine/utils.c while(rc > 0) { rc 758 lib/pengine/utils.c rc = crm_time_compare(origin, now); rc 762 lib/pengine/utils.c while (rc < 0) { rc 764 lib/pengine/utils.c rc = crm_time_compare(origin, now); rc 2005 lib/pengine/utils.c data->rc = RSC_DIGEST_MATCH; rc 2011 lib/pengine/utils.c data->rc = RSC_DIGEST_RESTART; rc 2015 lib/pengine/utils.c data->rc = RSC_DIGEST_UNKNOWN; rc 2023 lib/pengine/utils.c data->rc = RSC_DIGEST_ALL; rc 2049 lib/pengine/utils.c data->rc = RSC_DIGEST_ALL; rc 2052 lib/pengine/utils.c data->rc = RSC_DIGEST_UNKNOWN; rc 2055 lib/pengine/utils.c data->rc = RSC_DIGEST_MATCH; rc 2063 lib/pengine/utils.c data->rc = RSC_DIGEST_MATCH; rc 2067 lib/pengine/utils.c if (data->rc == RSC_DIGEST_ALL && is_set(data_set->flags, pe_flag_sanitized) && data->digest_secure_calc) { rc 2182 lib/pengine/utils.c if(data->rc == RSC_DIGEST_ALL) { rc 77 lib/services/services.c int rc = 0; rc 82 lib/services/services.c rc = asprintf(&path, "%s/%s", LSB_ROOT_DIR, agent); rc 83 lib/services/services.c if (rc > 0 && stat(path, &st) == 0) { rc 444 lib/services/services.c int rc; rc 447 lib/services/services.c rc = setenv(key, value, 1); rc 449 lib/services/services.c rc = unsetenv(key); rc 452 lib/services/services.c if (rc < 0) { rc 1135 lib/services/services.c int rc = pcmk_ok; rc 1161 lib/services/services.c rc = -EIO; rc 1172 lib/services/services.c rc = -EIO; rc 1178 lib/services/services.c return rc; rc 1318 lib/services/services.c gboolean rc = TRUE; rc 1335 lib/services/services.c rc = action_get_metadata(op); rc 1337 lib/services/services.c rc = action_exec_helper(op); rc 1340 lib/services/services.c op->rsc, op->action, op->interval, op->opaque->exec, op->rc); rc 1347 lib/services/services.c return rc; rc 42 lib/services/services_linux.c int rc = 0, len = 0; rc 67 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); rc 68 lib/services/services_linux.c if (rc > 0) { rc 69 lib/services/services_linux.c crm_trace("Got %d chars: %.80s", rc, buf); rc 70 lib/services/services_linux.c buf[rc] = 0; rc 71 lib/services/services_linux.c data = realloc_safe(data, len + rc + 1); rc 78 lib/services/services_linux.c rc = FALSE; rc 82 lib/services/services_linux.c } while (rc == buf_read_len || rc < 0); rc 90 lib/services/services_linux.c return rc; rc 291 lib/services/services_linux.c op->rc = PCMK_OCF_TIMEOUT; rc 297 lib/services/services_linux.c op->rc = PCMK_OCF_SIGNAL; rc 301 lib/services/services_linux.c op->rc = exitcode; rc 358 lib/services/services_linux.c op->rc = rc_not_installed; rc 363 lib/services/services_linux.c op->rc = rc_insufficient_priv; rc 367 lib/services/services_linux.c op->rc = rc_exec_error; rc 447 lib/services/services_linux.c _exit(op->rc); rc 559 lib/services/services_linux.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 581 lib/services/services_linux.c op->rc = WEXITSTATUS(status); rc 582 lib/services/services_linux.c crm_info("Managed %s process %d exited with rc=%d", op->id, op->pid, op->rc); rc 614 lib/services/services_linux.c int rc; rc 643 lib/services/services_linux.c rc = errno; rc 644 lib/services/services_linux.c crm_warn("Cannot execute '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); rc 645 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 653 lib/services/services_linux.c rc = errno; rc 655 lib/services/services_linux.c crm_err("pipe(stdout_fd) failed. '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); rc 657 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 665 lib/services/services_linux.c rc = errno; rc 670 lib/services/services_linux.c crm_err("pipe(stderr_fd) failed. '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); rc 672 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 695 lib/services/services_linux.c rc = crm_set_nonblocking(sigchld_pipe[0]); rc 696 lib/services/services_linux.c if (rc < 0) { rc 698 lib/services/services_linux.c pcmk_strerror(rc), rc); rc 700 lib/services/services_linux.c rc = crm_set_nonblocking(sigchld_pipe[1]); rc 701 lib/services/services_linux.c if (rc < 0) { rc 703 lib/services/services_linux.c pcmk_strerror(rc), rc); rc 720 lib/services/services_linux.c rc = errno; rc 727 lib/services/services_linux.c crm_err("Could not execute '%s': %s (%d)", op->opaque->exec, pcmk_strerror(rc), rc); rc 728 lib/services/services_linux.c services_handle_exec_error(op, rc); rc 765 lib/services/services_linux.c rc = crm_set_nonblocking(op->opaque->stdout_fd); rc 766 lib/services/services_linux.c if (rc < 0) { rc 769 lib/services/services_linux.c pcmk_strerror(rc), rc); rc 773 lib/services/services_linux.c rc = crm_set_nonblocking(op->opaque->stderr_fd); rc 774 lib/services/services_linux.c if (rc < 0) { rc 777 lib/services/services_linux.c pcmk_strerror(rc), rc); rc 235 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 240 lib/services/systemd.c op->rc = PCMK_OCF_NOT_INSTALLED; rc 535 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 544 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 582 lib/services/systemd.c op->rc = PCMK_OCF_NOT_RUNNING; rc 585 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 587 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 589 lib/services/systemd.c op->rc = PCMK_OCF_PENDING; rc 591 lib/services/systemd.c op->rc = PCMK_OCF_PENDING; rc 593 lib/services/systemd.c op->rc = PCMK_OCF_NOT_RUNNING; rc 622 lib/services/systemd.c return op->rc == PCMK_OCF_OK; rc 658 lib/services/systemd.c int rc = fprintf(file_strm, "%s\n", override); rc 661 lib/services/systemd.c if (rc < 0) { rc 689 lib/services/systemd.c op->rc = PCMK_OCF_UNIMPLEMENT_FEATURE; rc 738 lib/services/systemd.c return op->rc == PCMK_OCF_OK; rc 762 lib/services/systemd.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 769 lib/services/systemd.c op->rc = PCMK_OCF_OK; rc 791 lib/services/systemd.c return op->rc == PCMK_OCF_OK; rc 301 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 305 lib/services/upstart.c op->rc = PCMK_OCF_NOT_RUNNING; rc 346 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 350 lib/services/upstart.c op->rc = PCMK_OCF_NOT_INSTALLED; rc 358 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 387 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 392 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 401 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 429 lib/services/upstart.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 434 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 441 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 444 lib/services/upstart.c op->rc = PCMK_OCF_NOT_INSTALLED; rc 454 lib/services/upstart.c op->rc = PCMK_OCF_NOT_RUNNING; rc 468 lib/services/upstart.c return op->rc == PCMK_OCF_OK; rc 485 lib/services/upstart.c op->rc = PCMK_OCF_UNIMPLEMENT_FEATURE; rc 533 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 537 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 546 lib/services/upstart.c op->rc = PCMK_OCF_OK; rc 563 lib/services/upstart.c return op->rc == PCMK_OCF_OK; rc 104 lib/transition/graph.c gboolean rc = FALSE; rc 116 lib/transition/graph.c rc = update_synapse_confirmed(synapse, action->id); rc 119 lib/transition/graph.c rc = update_synapse_ready(synapse, action->id); rc 121 lib/transition/graph.c updates = updates || rc; rc 297 lib/transition/unpack.c convert_graph_action(xmlNode * resource, crm_action_t * action, int status, int rc) rc 319 lib/transition/unpack.c op->rc = rc; rc 156 lrmd/ipc_proxy.c int rc = 0; rc 196 lrmd/ipc_proxy.c rc = crm_ipcs_send(ipc_client, 0, msg, crm_ipc_server_event); rc 203 lrmd/ipc_proxy.c rc = crm_ipcs_send(ipc_client, msg_id, msg, FALSE); rc 215 lrmd/ipc_proxy.c if (rc < 0) { rc 216 lrmd/ipc_proxy.c crm_warn("IPC Proxy send to ipc client %s failed, rc = %d", ipc_client->id, rc); rc 287 lrmd/ipc_proxy.c int rc; rc 296 lrmd/ipc_proxy.c rc = (lrmd_server_send_notify(ipc_proxy, msg) < 0)? -1 : 0; rc 298 lrmd/ipc_proxy.c return rc; rc 376 lrmd/lrmd.c send_reply(crm_client_t * client, int rc, uint32_t id, int call_id) rc 383 lrmd/lrmd.c crm_xml_add_int(reply, F_LRMD_RC, rc); rc 399 lrmd/lrmd.c int rc; rc 409 lrmd/lrmd.c rc = lrmd_server_send_notify(client, update_msg); rc 410 lrmd/lrmd.c if ((rc <= 0) && (rc != -ENOTCONN)) { rc 413 lrmd/lrmd.c (rc? pcmk_strerror(rc) : "no data sent"), rc); rc 556 lrmd/lrmd.c send_generic_notify(int rc, xmlNode * request) rc 569 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_RC, rc); rc 642 lrmd/lrmd.c hb2uniform_rc(const char *action, int rc, const char *stdout_data) rc 650 lrmd/lrmd.c if (rc < 0) { rc 656 lrmd/lrmd.c return services_get_ocf_exitcode(action, rc); rc 686 lrmd/lrmd.c ocf2uniform_rc(int rc) rc 688 lrmd/lrmd.c if (rc < 0 || rc > PCMK_OCF_FAILED_MASTER) { rc 692 lrmd/lrmd.c return rc; rc 696 lrmd/lrmd.c stonith2uniform_rc(const char *action, int rc) rc 698 lrmd/lrmd.c if (rc == -ENODEV) { rc 700 lrmd/lrmd.c rc = PCMK_OCF_OK; rc 702 lrmd/lrmd.c rc = PCMK_OCF_NOT_INSTALLED; rc 704 lrmd/lrmd.c rc = PCMK_OCF_NOT_RUNNING; rc 706 lrmd/lrmd.c } else if (rc != 0) { rc 707 lrmd/lrmd.c rc = PCMK_OCF_UNKNOWN_ERROR; rc 709 lrmd/lrmd.c return rc; rc 714 lrmd/lrmd.c nagios2uniform_rc(const char *action, int rc) rc 716 lrmd/lrmd.c if (rc < 0) { rc 720 lrmd/lrmd.c switch (rc) { rc 740 lrmd/lrmd.c get_uniform_rc(const char *standard, const char *action, int rc) rc 743 lrmd/lrmd.c return ocf2uniform_rc(rc); rc 745 lrmd/lrmd.c return stonith2uniform_rc(action, rc); rc 747 lrmd/lrmd.c return rc; rc 749 lrmd/lrmd.c return rc; rc 752 lrmd/lrmd.c return nagios2uniform_rc(action, rc); rc 755 lrmd/lrmd.c return services_get_ocf_exitcode(action, rc); rc 765 lrmd/lrmd.c return hb2uniform_rc(cmd->action, action->rc, action->stdout_data); rc 768 lrmd/lrmd.c return get_uniform_rc(action->standard, cmd->action, action->rc); rc 869 lrmd/lrmd.c if (cmd->exec_rc != action->rc) { rc 1006 lrmd/lrmd.c stonith_action_complete(lrmd_cmd_t * cmd, int rc) rc 1011 lrmd/lrmd.c cmd->exec_rc = get_uniform_rc(PCMK_RESOURCE_CLASS_STONITH, cmd->action, rc); rc 1019 lrmd/lrmd.c } else if (rc == -ENODEV && safe_str_eq(cmd->action, "monitor")) { rc 1024 lrmd/lrmd.c } else if (rc) { rc 1026 lrmd/lrmd.c switch (rc) { rc 1058 lrmd/lrmd.c stonith_action_complete(data->userdata, data->rc); rc 1101 lrmd/lrmd.c int rc = 0; rc 1132 lrmd/lrmd.c rc = stonith_api->cmds->register_device(stonith_api, rc 1138 lrmd/lrmd.c if (rc == 0) { rc 1142 lrmd/lrmd.c rc = stonith_api->cmds->remove_device(stonith_api, st_opt_sync_call, cmd->rsc_id); rc 1148 lrmd/lrmd.c rc = rsc->stonith_started ? 0 : -ENODEV; rc 1156 lrmd/lrmd.c rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id, cmd->timeout / 1000); rc 1158 lrmd/lrmd.c rc = stonith_api->cmds->register_callback(stonith_api, rc 1159 lrmd/lrmd.c rc, rc 1165 lrmd/lrmd.c if (rc > 0) { rc 1167 lrmd/lrmd.c return rc; rc 1168 lrmd/lrmd.c } else if (rc == 0) { rc 1169 lrmd/lrmd.c rc = -1; rc 1173 lrmd/lrmd.c stonith_action_complete(cmd, rc); rc 1174 lrmd/lrmd.c return rc; rc 1242 lrmd/lrmd.c cmd->exec_rc = action->rc; rc 1405 lrmd/lrmd.c int rc = pcmk_ok; rc 1417 lrmd/lrmd.c return rc; rc 1424 lrmd/lrmd.c return rc; rc 1430 lrmd/lrmd.c int rc = pcmk_ok; rc 1441 lrmd/lrmd.c rc = -ENODEV; rc 1448 lrmd/lrmd.c rc = -ENODEV; rc 1456 lrmd/lrmd.c crm_xml_add_int(reply, F_LRMD_RC, rc); rc 1478 lrmd/lrmd.c int rc = pcmk_ok; rc 1496 lrmd/lrmd.c rc = -EINPROGRESS; rc 1501 lrmd/lrmd.c return rc; rc 1647 lrmd/lrmd.c int rc = pcmk_ok; rc 1662 lrmd/lrmd.c rc = process_lrmd_signon(client, id, request); rc 1664 lrmd/lrmd.c rc = process_lrmd_rsc_register(client, id, request); rc 1670 lrmd/lrmd.c rc = process_lrmd_rsc_unregister(client, id, request); rc 1672 lrmd/lrmd.c if (rc == pcmk_ok || rc == -EINPROGRESS) { rc 1677 lrmd/lrmd.c rc = process_lrmd_rsc_exec(client, id, request); rc 1680 lrmd/lrmd.c rc = process_lrmd_rsc_cancel(client, id, request); rc 1691 lrmd/lrmd.c rc = process_lrmd_alert_exec(client, id, request); rc 1694 lrmd/lrmd.c rc = -EOPNOTSUPP; rc 1701 lrmd/lrmd.c op, client->id, rc, do_reply, do_notify); rc 1704 lrmd/lrmd.c send_reply(client, rc, id, call_id); rc 1708 lrmd/lrmd.c send_generic_notify(rc, request); rc 73 lrmd/lrmd_alert_api.c action->pid, cb_data->client_id, action->rc); rc 90 lrmd/lrmd_alert_api.c int rc = pcmk_ok; rc 111 lrmd/lrmd_alert_api.c rc = -ENOMEM; goto err); rc 115 lrmd/lrmd_alert_api.c rc = -ENOMEM; goto err); rc 121 lrmd/lrmd_alert_api.c rc = services_action_user(action, CRM_DAEMON_USER); rc 122 lrmd/lrmd_alert_api.c if (rc < 0) { rc 142 lrmd/lrmd_alert_api.c return rc; rc 74 lrmd/main.c int rc = 0; rc 79 lrmd/main.c rc = stonith_api->cmds->connect(stonith_api, "lrmd", NULL); rc 80 lrmd/main.c if (rc == pcmk_ok) { rc 90 lrmd/main.c if (rc) { rc 92 lrmd/main.c pcmk_strerror(rc)); rc 89 lrmd/remote_ctl.c client_exit(int rc) rc 95 lrmd/remote_ctl.c exit(rc); rc 118 lrmd/remote_ctl.c client_exit(event->rc); rc 134 lrmd/remote_ctl.c int rc = event->connection_rc; rc 141 lrmd/remote_ctl.c if (!rc) { rc 155 lrmd/remote_ctl.c int rc = 0; rc 159 lrmd/remote_ctl.c rc = lrmd_conn->cmds->connect_async(lrmd_conn, "lrmd", 10000); rc 161 lrmd/remote_ctl.c if (!rc) { rc 175 lrmd/remote_ctl.c int rc = 0; rc 200 lrmd/remote_ctl.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, rc 203 lrmd/remote_ctl.c if (rc == pcmk_ok) { rc 211 lrmd/remote_ctl.c rc = lrmd_conn->cmds->poke_connection(lrmd_conn); rc 212 lrmd/remote_ctl.c if (rc != pcmk_ok) { rc 222 lrmd/remote_ctl.c rc = lrmd_conn->cmds->register_rsc(lrmd_conn, options.rsc_id, rc 225 lrmd/remote_ctl.c if (rc != 0){ rc 226 lrmd/remote_ctl.c crm_err("failed to register resource %s with pacemaker_remote. rc: %d", options.rsc_id, rc); rc 232 lrmd/remote_ctl.c rc = lrmd_conn->cmds->exec(lrmd_conn, rc 240 lrmd/remote_ctl.c if (rc > 0) { rc 241 lrmd/remote_ctl.c exec_call_id = rc; rc 243 lrmd/remote_ctl.c crm_err("execution of rsc %s failed. rc = %d", options.rsc_id, rc); rc 97 lrmd/test.c test_exit(int rc) rc 100 lrmd/test.c crm_exit(rc); rc 113 lrmd/test.c services_ocf_exitcode_str(event->rc), \ rc 136 lrmd/test.c if (event->op_status == 0 && event->rc == 0) { rc 140 lrmd/test.c event->rc, services_lrm_status_str(event->op_status))); rc 162 lrmd/test.c int rc = event->connection_rc; rc 169 lrmd/test.c if (!rc) { rc 185 lrmd/test.c int rc = 0; rc 189 lrmd/test.c rc = lrmd_conn->cmds->connect_async(lrmd_conn, "lrmd", 3000); rc 191 lrmd/test.c if (!rc) { rc 204 lrmd/test.c int rc = 0; rc 224 lrmd/test.c rc = lrmd_conn->cmds->exec(lrmd_conn, rc 232 lrmd/test.c if (rc > 0) { rc 233 lrmd/test.c exec_call_id = rc; rc 238 lrmd/test.c rc = lrmd_conn->cmds->register_rsc(lrmd_conn, rc 252 lrmd/test.c rc = pcmk_ok; rc 254 lrmd/test.c rc = -1; rc 257 lrmd/test.c rc = lrmd_conn->cmds->unregister_rsc(lrmd_conn, options.rsc_id, 0); rc 259 lrmd/test.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, options.interval); rc 263 lrmd/test.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, rc 266 lrmd/test.c if (rc == pcmk_ok) { rc 274 lrmd/test.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, options.class, options.provider); rc 276 lrmd/test.c if (rc > 0) { rc 277 lrmd/test.c print_result(printf("%d agents found\n", rc)); rc 282 lrmd/test.c rc = 0; rc 285 lrmd/test.c rc = -1; rc 291 lrmd/test.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, options.type, &list); rc 293 lrmd/test.c if (rc > 0) { rc 294 lrmd/test.c print_result(printf("%d providers found\n", rc)); rc 299 lrmd/test.c rc = 0; rc 302 lrmd/test.c rc = -1; rc 309 lrmd/test.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 311 lrmd/test.c if (rc > 0) { rc 312 lrmd/test.c print_result(printf("%d standards found\n", rc)); rc 317 lrmd/test.c rc = 0; rc 320 lrmd/test.c rc = -1; rc 328 lrmd/test.c if (rc < 0) { rc 329 lrmd/test.c print_result(printf("API-CALL FAILURE for '%s' api_rc:%d\n", options.api_call, rc)); rc 333 lrmd/test.c if (options.api_call && rc == pcmk_ok) { rc 351 lrmd/test.c int rc = 0; rc 366 lrmd/test.c rc = cib_conn->cmds->signon(cib_conn, "lrmd_test", cib_query); rc 367 lrmd/test.c if (rc != pcmk_ok) { rc 368 lrmd/test.c crm_err("Error signing on to the CIB service: %s", pcmk_strerror(rc)); rc 369 lrmd/test.c rc = -1; rc 373 lrmd/test.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 374 lrmd/test.c if (rc != pcmk_ok) { rc 375 lrmd/test.c crm_err("Error retrieving cib copy: %s (%d)", pcmk_strerror(rc), rc); rc 379 lrmd/test.c rc = -ENODATA; rc 380 lrmd/test.c crm_err("Error retrieving cib copy: %s (%d)", pcmk_strerror(rc), rc); rc 386 lrmd/test.c rc = -1; rc 401 lrmd/test.c rc = -1; rc 439 lrmd/test.c return rc; rc 56 lrmd/tls_backend.c int rc = 0; rc 62 lrmd/tls_backend.c int rc = 0; rc 67 lrmd/tls_backend.c rc = gnutls_handshake(*client->remote->tls_session); rc 69 lrmd/tls_backend.c if (rc < 0 && rc != GNUTLS_E_AGAIN) { rc 73 lrmd/tls_backend.c } while (rc == GNUTLS_E_INTERRUPTED); rc 75 lrmd/tls_backend.c if (rc == 0) { rc 89 lrmd/tls_backend.c rc = crm_remote_ready(client->remote, 0); rc 90 lrmd/tls_backend.c if (rc == 0) { rc 93 lrmd/tls_backend.c } else if (rc < 0) { rc 247 lrmd/tls_backend.c int rc; rc 260 lrmd/tls_backend.c rc = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); rc 261 lrmd/tls_backend.c if (rc < 0) { rc 269 lrmd/tls_backend.c rc = setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval, sizeof(optval)); rc 270 lrmd/tls_backend.c if (rc < 0) { rc 296 lrmd/tls_backend.c int rc; rc 323 lrmd/tls_backend.c rc = lrmd_tls_set_key(&psk_key); rc 324 lrmd/tls_backend.c if (rc != 0) { rc 338 lrmd/tls_backend.c rc = getaddrinfo(NULL, port_str, &hints, &res); rc 339 lrmd/tls_backend.c if (rc) { rc 341 lrmd/tls_backend.c gai_strerror(rc)); rc 370 lrmd/tls_backend.c rc = ssock; rc 372 lrmd/tls_backend.c if (rc < 0) { rc 377 lrmd/tls_backend.c return rc; rc 70 mcp/corosync.c cs_error_t rc = corosync_cfg_dispatch(*handle, CS_DISPATCH_ALL); rc 72 mcp/corosync.c if (rc != CS_OK) { rc 101 mcp/corosync.c if(rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { \ rc 113 mcp/corosync.c cs_error_t rc; rc 121 mcp/corosync.c cs_repeat(retries, 30, rc = corosync_cfg_initialize(&cfg_handle, &cfg_callbacks)); rc 123 mcp/corosync.c if (rc != CS_OK) { rc 124 mcp/corosync.c crm_err("corosync cfg init error %d", rc); rc 128 mcp/corosync.c rc = corosync_cfg_fd_get(cfg_handle, &fd); rc 129 mcp/corosync.c if (rc != CS_OK) { rc 130 mcp/corosync.c crm_err("corosync cfg fd_get error %d", rc); rc 135 mcp/corosync.c cs_repeat(retries, 30, rc = corosync_cfg_local_get(cfg_handle, nodeid)); rc 137 mcp/corosync.c if (rc != CS_OK) { rc 138 mcp/corosync.c crm_err("corosync cfg local_get error %d", rc); rc 203 mcp/corosync.c cs_error_t rc = CS_OK; rc 206 mcp/corosync.c rc = confdb_object_find_start(config, local_handle); rc 207 mcp/corosync.c if (rc == CS_OK) { rc 210 mcp/corosync.c crm_err("Couldn't create search context: %d", rc); rc 218 mcp/corosync.c cs_error_t rc = CS_OK; rc 227 mcp/corosync.c rc = confdb_object_find(config, top_handle, name, strlen(name), &local_handle); rc 228 mcp/corosync.c if (rc != CS_OK) { rc 241 mcp/corosync.c int rc = 0, retries = 0; rc 243 mcp/corosync.c cs_repeat(retries, 5, rc = cmap_get_string(object_handle, key, value)); rc 244 mcp/corosync.c if (rc != CS_OK) { rc 245 mcp/corosync.c crm_trace("Search for %s failed %d, defaulting to %s", key, rc, fallback); rc 253 mcp/corosync.c return rc; rc 267 mcp/corosync.c int rc = CS_OK; rc 280 mcp/corosync.c rc = confdb_initialize(&config, &callbacks); rc 281 mcp/corosync.c if (rc != CS_OK) { rc 283 mcp/corosync.c printf("confdb connection setup failed: %s. Retrying in %ds\n", ais_error2text(rc), retries); rc 284 mcp/corosync.c crm_info("confdb connection setup failed: %s. Retrying in %ds", ais_error2text(rc), retries); rc 298 mcp/corosync.c rc = cmap_initialize(&local_handle); rc 299 mcp/corosync.c if (rc != CS_OK) { rc 301 mcp/corosync.c printf("cmap connection setup failed: %s. Retrying in %ds\n", cs_strerror(rc), retries); rc 302 mcp/corosync.c crm_info("cmap connection setup failed: %s. Retrying in %ds", cs_strerror(rc), retries); rc 312 mcp/corosync.c if (rc != CS_OK) { rc 313 mcp/corosync.c printf("Could not connect to Cluster Configuration Database API, error %d\n", rc); rc 314 mcp/corosync.c crm_warn("Could not connect to Cluster Configuration Database API, error %d", rc); rc 479 mcp/corosync.c rc = cmap_set_uint8(local_handle, key, 1); rc 480 mcp/corosync.c if (rc != CS_OK) { rc 482 mcp/corosync.c " group=%u rc=%d (%s)", gid, rc, ais_error2text(rc)); rc 607 mcp/pacemaker.c int rc = 0; rc 610 mcp/pacemaker.c rc = snprintf(buffer, SIZEOF(buffer), "<node uname=\"%s\" proclist=\"%u\"/>", rc 613 mcp/pacemaker.c rc = snprintf(buffer, SIZEOF(buffer), "<node proclist=\"%u\"/>", get_process_list()); rc 619 mcp/pacemaker.c iov->iov_len = rc + 1; rc 681 mcp/pacemaker.c int rc = chown(path, uid, gid); rc 683 mcp/pacemaker.c if (rc < 0) { rc 908 mcp/pacemaker.c int rc; rc 1026 mcp/pacemaker.c rc = getrlimit(RLIMIT_CORE, &cores); rc 1027 mcp/pacemaker.c if (rc < 0) { rc 1037 mcp/pacemaker.c rc = setrlimit(RLIMIT_CORE, &cores); rc 1038 mcp/pacemaker.c if (rc < 0) { rc 1053 mcp/pacemaker.c rc = pcmk_ok; rc 1113 mcp/pacemaker.c rc = -ENOPROTOOPT; rc 1116 mcp/pacemaker.c if (rc == pcmk_ok && is_corosync_cluster()) { rc 1119 mcp/pacemaker.c rc = -ENOTCONN; rc 1124 mcp/pacemaker.c if (rc == pcmk_ok && is_cman_cluster()) { rc 1129 mcp/pacemaker.c if(rc == pcmk_ok) { rc 1156 mcp/pacemaker.c return crm_exit(rc); rc 307 pengine/allocate.c if(digest_data->rc != RSC_DIGEST_MATCH rc 317 pengine/allocate.c } else if (digest_data->rc == RSC_DIGEST_RESTART) { rc 330 pengine/allocate.c } else if ((digest_data->rc == RSC_DIGEST_ALL) || (digest_data->rc == RSC_DIGEST_UNKNOWN)) { rc 624 pengine/allocate.c gboolean rc = FALSE; rc 629 pengine/allocate.c rc = TRUE; rc 634 pengine/allocate.c return rc; rc 1036 pengine/allocate.c int rc = 0; rc 1067 pengine/allocate.c rc = -1; rc 1072 pengine/allocate.c rc = 1; rc 1111 pengine/allocate.c rc = -1; rc 1116 pengine/allocate.c rc = 1; rc 1144 pengine/allocate.c rc = -1; rc 1149 pengine/allocate.c rc = 1; rc 1157 pengine/allocate.c rc < 0 ? '>' : rc > 0 ? '<' : '=', rc 1167 pengine/allocate.c return rc; rc 80 pengine/clone.c int rc = 0; rc 290 pengine/clone.c rc = -1; rc 295 pengine/clone.c rc = 1; rc 301 pengine/clone.c rc = -1; rc 325 pengine/clone.c rc = 1; rc 330 pengine/clone.c rc = -1; rc 336 pengine/clone.c rc = 1; rc 341 pengine/clone.c rc = -1; rc 353 pengine/clone.c if (rc != 0) { rc 354 pengine/clone.c return rc; rc 358 pengine/clone.c rc = strcmp(resource1->id, resource2->id); rc 359 pengine/clone.c crm_trace("%s %c %s: default", resource1->id, rc < 0 ? '<' : '>', resource2->id); rc 360 pengine/clone.c return rc; rc 203 pengine/constraints.c gboolean rc = FALSE; rc 206 pengine/constraints.c rc = g_hash_table_lookup_extended(data_set->template_rsc_sets, id, rc 209 pengine/constraints.c if (rc == FALSE) { rc 210 pengine/constraints.c rc = g_hash_table_lookup_extended(data_set->tags, id, rc 213 pengine/constraints.c if (rc == FALSE) { rc 227 pengine/constraints.c return rc; rc 234 pengine/constraints.c gboolean rc = FALSE; rc 246 pengine/constraints.c rc = pe_find_constraint_tag(data_set, id, tag); rc 249 pengine/constraints.c return rc; rc 1329 pengine/constraints.c int rc = 0; rc 1330 pengine/constraints.c rc = parse_op_key(key, &rsc_id, &op_type, &interval); rc 1331 pengine/constraints.c if (rc == TRUE) { rc 2059 pengine/constraints.c gboolean rc = TRUE; rc 2067 pengine/constraints.c rc = unpack_order_tags(xml_obj, &expanded_xml, data_set); rc 2072 pengine/constraints.c } else if (rc == FALSE) { rc 2524 pengine/constraints.c gboolean rc = TRUE; rc 2530 pengine/constraints.c rc = unpack_colocation_tags(xml_obj, &expanded_xml, data_set); rc 2535 pengine/constraints.c } else if (rc == FALSE) { rc 2847 pengine/constraints.c gboolean rc = TRUE; rc 2878 pengine/constraints.c rc = unpack_rsc_ticket_tags(xml_obj, &expanded_xml, data_set); rc 2883 pengine/constraints.c } else if (rc == FALSE) { rc 234 pengine/master.c int rc; rc 247 pengine/master.c rc = sort_rsc_index(a, b); rc 248 pengine/master.c if (rc != 0) { rc 249 pengine/master.c crm_trace("%s %c %s (index)", resource1->id, rc < 0 ? '<' : '>', resource2->id); rc 250 pengine/master.c return rc; rc 265 pengine/ptest.c int rc = pcmk_ok; rc 269 pengine/ptest.c rc = cib_conn->cmds->signon(cib_conn, "ptest", cib_command); rc 271 pengine/ptest.c if (rc == pcmk_ok) { rc 276 pengine/ptest.c fprintf(stderr, "Live CIB query failed: %s\n", pcmk_strerror(rc)); rc 31 replace/setenv.c int rc = -1; rc 46 replace/setenv.c rc = putenv(envp); rc 50 replace/setenv.c return (rc); rc 226 tools/attrd_updater.c int rc; rc 246 tools/attrd_updater.c rc = -ENOTCONN; rc 248 tools/attrd_updater.c rc = crm_ipc_send(ipc, query, crm_ipc_flags_none|crm_ipc_client_response, 0, reply); rc 249 tools/attrd_updater.c if (rc > 0) { rc 250 tools/attrd_updater.c rc = pcmk_ok; rc 256 tools/attrd_updater.c return(rc); rc 347 tools/attrd_updater.c int rc; rc 357 tools/attrd_updater.c rc = send_attrd_query(attr_name, attr_node, &reply); rc 358 tools/attrd_updater.c if (rc != pcmk_ok) { rc 359 tools/attrd_updater.c fprintf(stderr, "Could not query value of %s: %s (%d)\n", attr_name, pcmk_strerror(rc), rc); rc 360 tools/attrd_updater.c return rc; rc 364 tools/attrd_updater.c rc = validate_attrd_reply(reply, attr_name); rc 365 tools/attrd_updater.c if (rc != pcmk_ok) { rc 369 tools/attrd_updater.c return rc; rc 391 tools/attrd_updater.c int rc = attrd_update_delegate(NULL, command, attr_node, attr_name, rc 394 tools/attrd_updater.c if (rc != pcmk_ok) { rc 395 tools/attrd_updater.c fprintf(stderr, "Could not update %s=%s: %s (%d)\n", attr_name, attr_value, pcmk_strerror(rc), rc); rc 397 tools/attrd_updater.c return rc; rc 161 tools/cib_shadow.c int rc = 0; rc 273 tools/cib_shadow.c rc = -ENXIO; rc 277 tools/cib_shadow.c rc = 0; rc 284 tools/cib_shadow.c rc = -EINVAL; rc 296 tools/cib_shadow.c rc = EX_USAGE; rc 306 tools/cib_shadow.c rc = EX_USAGE; rc 313 tools/cib_shadow.c rc = stat(shadow_file, &buf); rc 314 tools/cib_shadow.c if (rc == 0) { rc 315 tools/cib_shadow.c rc = unlink(shadow_file); rc 316 tools/cib_shadow.c if (rc != 0) { rc 328 tools/cib_shadow.c rc = 0; rc 334 tools/cib_shadow.c rc = real_cib->cmds->signon(real_cib, crm_system_name, cib_command); rc 335 tools/cib_shadow.c if (rc != pcmk_ok) { rc 336 tools/cib_shadow.c fprintf(stderr, "Signon to CIB failed: %s\n", pcmk_strerror(rc)); rc 341 tools/cib_shadow.c rc = stat(shadow_file, &buf); rc 344 tools/cib_shadow.c if (rc == 0 && force_flag == FALSE) { rc 348 tools/cib_shadow.c rc = -ENOTUNIQ; rc 352 tools/cib_shadow.c } else if (rc != 0) { rc 354 tools/cib_shadow.c rc = -ENXIO; rc 358 tools/cib_shadow.c rc = pcmk_ok; rc 364 tools/cib_shadow.c rc = real_cib->cmds->query(real_cib, NULL, &output, command_options); rc 365 tools/cib_shadow.c if (rc != pcmk_ok) { rc 366 tools/cib_shadow.c fprintf(stderr, "Could not connect to the CIB: %s\n", pcmk_strerror(rc)); rc 379 tools/cib_shadow.c rc = write_xml_file(output, shadow_file, FALSE); rc 382 tools/cib_shadow.c if (rc < 0) { rc 389 tools/cib_shadow.c rc = pcmk_ok; rc 397 tools/cib_shadow.c rc = -EINVAL; rc 404 tools/cib_shadow.c rc = -EINVAL; rc 409 tools/cib_shadow.c rc = 0; rc 429 tools/cib_shadow.c rc = real_cib->cmds->query(real_cib, NULL, &old_config, command_options); rc 431 tools/cib_shadow.c if (rc != pcmk_ok) { rc 432 tools/cib_shadow.c fprintf(stderr, "Could not query the CIB: %s\n", pcmk_strerror(rc)); rc 446 tools/cib_shadow.c rc = 1; rc 449 tools/cib_shadow.c rc = 0; rc 457 tools/cib_shadow.c rc = real_cib->cmds->replace(real_cib, NULL, input, command_options); rc 461 tools/cib_shadow.c rc = real_cib->cmds->replace(real_cib, XML_CIB_TAG_CONFIGURATION, config, rc 465 tools/cib_shadow.c if (rc != pcmk_ok) { rc 467 tools/cib_shadow.c shadow, pcmk_strerror(rc)); rc 476 tools/cib_shadow.c return crm_exit(rc); rc 52 tools/cibadmin.c void cibadmin_op_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 481 tools/cibadmin.c int version = 0, rc = 0; rc 483 tools/cibadmin.c rc = the_cib->cmds->query(the_cib, NULL, &obj, command_options); rc 484 tools/cibadmin.c if (rc == pcmk_ok) { rc 539 tools/cibadmin.c int rc = pcmk_ok; rc 542 tools/cibadmin.c rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 543 tools/cibadmin.c if (rc != pcmk_ok) { rc 544 tools/cibadmin.c crm_err("Signon to CIB failed: %s", pcmk_strerror(rc)); rc 545 tools/cibadmin.c fprintf(stderr, "Signon to CIB failed: %s\n", pcmk_strerror(rc)); rc 548 tools/cibadmin.c return rc; rc 560 tools/cibadmin.c cibadmin_op_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 562 tools/cibadmin.c exit_code = rc; rc 564 tools/cibadmin.c if (rc != 0) { rc 565 tools/cibadmin.c crm_warn("Call %s failed (%d): %s", cib_action, rc, pcmk_strerror(rc)); rc 566 tools/cibadmin.c fprintf(stderr, "Call %s failed (%d): %s\n", cib_action, rc, pcmk_strerror(rc)); rc 120 tools/crm_attribute.c int rc = pcmk_ok; rc 225 tools/crm_attribute.c rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 227 tools/crm_attribute.c if (rc != pcmk_ok) { rc 228 tools/crm_attribute.c fprintf(stderr, "Error signing on to the CIB service: %s\n", pcmk_strerror(rc)); rc 229 tools/crm_attribute.c return crm_exit(rc); rc 258 tools/crm_attribute.c rc = query_node_uuid(the_cib, dest_uname, &dest_node, &is_remote_node); rc 259 tools/crm_attribute.c if (pcmk_ok != rc) { rc 263 tools/crm_attribute.c return crm_exit(rc); rc 292 tools/crm_attribute.c rc = delete_attr_delegate(the_cib, cib_opts, type, dest_node, set_type, set_name, rc 295 tools/crm_attribute.c if (rc == -ENXIO) { rc 300 tools/crm_attribute.c rc = pcmk_ok; rc 308 tools/crm_attribute.c rc = update_attr_delegate(the_cib, cib_opts, type, dest_node, set_type, set_name, rc 315 tools/crm_attribute.c rc = read_attr_delegate(the_cib, type, dest_node, set_type, set_name, rc 318 tools/crm_attribute.c if (rc == -ENXIO && attr_default) { rc 320 tools/crm_attribute.c rc = pcmk_ok; rc 326 tools/crm_attribute.c if (rc == -EINVAL) { rc 327 tools/crm_attribute.c rc = pcmk_ok; rc 342 tools/crm_attribute.c if (rc == -EINVAL) { rc 345 tools/crm_attribute.c } else if (rc != pcmk_ok) { rc 346 tools/crm_attribute.c fprintf(stderr, "Error performing operation: %s\n", pcmk_strerror(rc)); rc 351 tools/crm_attribute.c return crm_exit(rc); rc 84 tools/crm_diff.c int rc; rc 87 tools/crm_diff.c rc = xml_apply_patchset(output, patch, as_cib); rc 88 tools/crm_diff.c if (rc != pcmk_ok) { rc 89 tools/crm_diff.c fprintf(stderr, "Could not apply patch: %s\n", pcmk_strerror(rc)); rc 91 tools/crm_diff.c return rc; rc 231 tools/crm_diff.c int rc = pcmk_ok; rc 349 tools/crm_diff.c rc = apply_patch(object_1, object_2, as_cib); rc 351 tools/crm_diff.c rc = generate_patch(object_1, object_2, xml_file_2, as_cib, no_version); rc 356 tools/crm_diff.c return rc; rc 42 tools/crm_error.c int rc = 0; rc 79 tools/crm_error.c for (rc = 0; rc < 256; rc++) { rc 80 tools/crm_error.c const char *name = pcmk_errorname(rc); rc 81 tools/crm_error.c const char *desc = pcmk_strerror(rc); rc 85 tools/crm_error.c printf("%.3d: %-25s %s\n", rc, name, desc); rc 87 tools/crm_error.c printf("%.3d: %s\n", rc, desc); rc 94 tools/crm_error.c rc = crm_atoi(argv[lpc], NULL); rc 96 tools/crm_error.c printf("%s - %s\n", pcmk_errorname(rc), pcmk_strerror(rc)); rc 98 tools/crm_error.c printf("%s\n", pcmk_strerror(rc)); rc 54 tools/crm_mon.c void clean_up(int rc); rc 209 tools/crm_mon.c int rc = pcmk_ok; rc 223 tools/crm_mon.c rc = cib_connect(TRUE); rc 225 tools/crm_mon.c if (rc != pcmk_ok) { rc 283 tools/crm_mon.c int rc = pcmk_ok; rc 298 tools/crm_mon.c rc = st->cmds->connect(st, crm_system_name, NULL); rc 299 tools/crm_mon.c if (rc == pcmk_ok) { rc 312 tools/crm_mon.c rc = cib->cmds->signon(cib, crm_system_name, cib_query); rc 314 tools/crm_mon.c if (rc != pcmk_ok) { rc 315 tools/crm_mon.c return rc; rc 318 tools/crm_mon.c rc = cib->cmds->query(cib, NULL, ¤t_cib, cib_scope_local | cib_sync_call); rc 319 tools/crm_mon.c if (rc == pcmk_ok) { rc 323 tools/crm_mon.c if (rc == pcmk_ok && full) { rc 324 tools/crm_mon.c if (rc == pcmk_ok) { rc 325 tools/crm_mon.c rc = cib->cmds->set_connection_dnotify(cib, mon_cib_connection_destroy); rc 326 tools/crm_mon.c if (rc == -EPROTONOSUPPORT) { rc 332 tools/crm_mon.c rc = pcmk_ok; rc 337 tools/crm_mon.c if (rc == pcmk_ok) { rc 339 tools/crm_mon.c rc = cib->cmds->add_notify_callback(cib, T_CIB_DIFF_NOTIFY, crm_diff_update); rc 342 tools/crm_mon.c if (rc != pcmk_ok) { rc 347 tools/crm_mon.c clean_up(-rc); rc 351 tools/crm_mon.c return rc; rc 1413 tools/crm_mon.c xmlNode *xml_op, const char *task, const char *interval, int rc) rc 1482 tools/crm_mon.c print_as(" rc=%d (%s)\n", rc, services_ocf_exitcode_str(rc)); rc 1487 tools/crm_mon.c fprintf(stream, " rc=%d (%s)</li>\n", rc, services_ocf_exitcode_str(rc)); rc 1491 tools/crm_mon.c fprintf(stream, " rc=\"%d\" rc_text=\"%s\" />\n", rc, services_ocf_exitcode_str(rc)); rc 1541 tools/crm_mon.c int rc = crm_parse_int(op_rc, "0"); rc 1549 tools/crm_mon.c if (safe_str_eq(task, CRMD_ACTION_NOTIFY) || (safe_str_eq(task, "probe") && (rc == 7))) { rc 1560 tools/crm_mon.c print_op_history(stream, data_set, node, xml_op, task, interval, rc); rc 1695 tools/crm_mon.c int rc; rc 1697 tools/crm_mon.c rc = strcmp((const char *)a, (const char *)b); rc 1699 tools/crm_mon.c return rc; rc 2740 tools/crm_mon.c int rc = crm_parse_int(crm_element_value(xml_op, XML_LRM_ATTR_RC), "0"); rc 2760 tools/crm_mon.c op_key, node, services_ocf_exitcode_str(rc), rc, rc 2767 tools/crm_mon.c op_key, node, services_ocf_exitcode_str(rc), rc, rc 2776 tools/crm_mon.c services_ocf_exitcode_str(rc), exit_reason_cleaned, rc); rc 3426 tools/crm_mon.c send_snmp_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, rc 3470 tools/crm_mon.c add_snmp_field_int(trap_pdu, snmp_crm_oid_rc, rc); rc 3599 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, rc 3605 tools/crm_mon.c char *rc_s = crm_itoa(rc); rc 3642 tools/crm_mon.c send_smtp_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, rc 3698 tools/crm_mon.c if (rc == target_rc) { rc 3711 tools/crm_mon.c "\tscript returned: (%d) %s\r\n", rc, services_ocf_exitcode_str(rc)); rc 3767 tools/crm_mon.c int rc = smtp_errno(); rc 3769 tools/crm_mon.c crm_err("SMTP server problem: %s (%d)", smtp_strerror(rc, buf, sizeof buf), rc); rc 3773 tools/crm_mon.c int rc = smtp_errno(); rc 3776 tools/crm_mon.c if (rc != 0) { rc 3777 tools/crm_mon.c crm_err("SMTP server problem: %s (%d)", smtp_strerror(rc, buf, sizeof buf), rc); rc 3793 tools/crm_mon.c int rc = -1; rc 3835 tools/crm_mon.c &status, &rc, &target_rc)) { rc 3870 tools/crm_mon.c if (status == PCMK_LRM_OP_DONE && target_rc == rc) { rc 3872 tools/crm_mon.c if (rc == PCMK_OCF_NOT_RUNNING) { rc 3877 tools/crm_mon.c desc = services_ocf_exitcode_str(rc); rc 3886 tools/crm_mon.c send_snmp_trap(node, rsc, task, target_rc, rc, status, desc); rc 3889 tools/crm_mon.c send_smtp_trap(node, rsc, task, target_rc, rc, status, desc); rc 3892 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); rc 4045 tools/crm_mon.c int rc = -1; rc 4059 tools/crm_mon.c rc = xml_apply_patchset(current_cib, diff, TRUE); rc 4061 tools/crm_mon.c switch (rc) { rc 4064 tools/crm_mon.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 4071 tools/crm_mon.c crm_notice("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 4213 tools/crm_mon.c clean_up(int rc) rc 4243 tools/crm_mon.c if (rc >= 0) { rc 4244 tools/crm_mon.c crm_exit(rc); rc 91 tools/crm_node.c int rc; rc 115 tools/crm_node.c rc = cib->cmds->delete(cib, XML_CIB_TAG_NODES, node, cib_sync_call); rc 116 tools/crm_node.c if (rc != pcmk_ok) { rc 117 tools/crm_node.c printf("Could not remove %s/%u from " XML_CIB_TAG_NODES ": %s", name, id, pcmk_strerror(rc)); rc 119 tools/crm_node.c rc = cib->cmds->delete(cib, XML_CIB_TAG_STATUS, node_state, cib_sync_call); rc 120 tools/crm_node.c if (rc != pcmk_ok) { rc 121 tools/crm_node.c printf("Could not remove %s/%u from " XML_CIB_TAG_STATUS ": %s", name, id, pcmk_strerror(rc)); rc 126 tools/crm_node.c return rc; rc 134 tools/crm_node.c int rc = -1; rc 156 tools/crm_node.c rc = crm_ipc_send(conn, hello, 0, 0, NULL); rc 159 tools/crm_node.c if (rc < 0) { rc 161 tools/crm_node.c return rc; rc 203 tools/crm_node.c rc = crm_ipc_send(conn, cmd, 0, 0, NULL); rc 204 tools/crm_node.c crm_debug("%s peer cache cleanup for %s (%u): %d", target, name, n, rc); rc 206 tools/crm_node.c if (rc > 0) { rc 207 tools/crm_node.c rc = cib_remove_node(n, name); rc 217 tools/crm_node.c return rc > 0 ? 0 : rc; rc 535 tools/crm_node.c int rc = 0; rc 547 tools/crm_node.c rc = select(ccm_fd + 1, &rset, NULL, NULL, NULL); rc 549 tools/crm_node.c if (rc > 0 && (*ccm_api_handle_event) (ccm_token) != 0) { rc 553 tools/crm_node.c } else if (rc < 0 && errno != EINTR) { rc 554 tools/crm_node.c crm_perror(LOG_ERR, "select failed: %d", rc); rc 568 tools/crm_node.c bool rc = TRUE; rc 574 tools/crm_node.c rc = FALSE; rc 578 tools/crm_node.c return rc; rc 585 tools/crm_node.c int rc = -1, lpc = 0, node_count = 0; rc 616 tools/crm_node.c rc = cman_get_nodes(cman_handle, MAX_NODES, &node_count, cman_nodes); rc 617 tools/crm_node.c if (rc != 0) { rc 618 tools/crm_node.c fprintf(stderr, "Couldn't query cman node list: %d %d", rc, errno); rc 640 tools/crm_node.c rc = cman_get_node(cman_handle, CMAN_NODEID_US, &node); rc 641 tools/crm_node.c if (rc != 0) { rc 642 tools/crm_node.c fprintf(stderr, "Couldn't query cman node id: %d %d", rc, errno); rc 759 tools/crm_node.c int rc = 0; rc 769 tools/crm_node.c rc = quorum_initialize(&q_handle, NULL, &quorum_type); rc 770 tools/crm_node.c if (rc != CS_OK) { rc 771 tools/crm_node.c crm_err("Could not connect to the Quorum API: %d", rc); rc 775 tools/crm_node.c rc = quorum_getquorate(q_handle, &quorate); rc 776 tools/crm_node.c if (rc != CS_OK) { rc 777 tools/crm_node.c crm_err("Could not obtain the current Quorum API state: %d", rc); rc 791 tools/crm_node.c rc = cpg_initialize(&c_handle, NULL); rc 792 tools/crm_node.c if (rc != CS_OK) { rc 793 tools/crm_node.c crm_err("Could not connect to the Cluster Process Group API: %d", rc); rc 797 tools/crm_node.c rc = cpg_local_get(c_handle, &nodeid); rc 798 tools/crm_node.c if (rc != CS_OK) { rc 447 tools/crm_resource.c int rc = pcmk_ok; rc 501 tools/crm_resource.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, optarg, &list); rc 505 tools/crm_resource.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 509 tools/crm_resource.c if (rc > 0) { rc 510 tools/crm_resource.c rc = 0; rc 512 tools/crm_resource.c rc++; rc 524 tools/crm_resource.c return crm_exit(rc); rc 533 tools/crm_resource.c rc = crm_parse_agent_spec(optarg, &standard, &provider, &type); rc 534 tools/crm_resource.c if (rc == pcmk_ok) { rc 535 tools/crm_resource.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, standard, rc 548 tools/crm_resource.c optarg, pcmk_strerror(rc)); rc 551 tools/crm_resource.c return crm_exit(rc); rc 562 tools/crm_resource.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, optarg, provider); rc 564 tools/crm_resource.c if (rc > 0) { rc 565 tools/crm_resource.c rc = 0; rc 568 tools/crm_resource.c rc++; rc 571 tools/crm_resource.c rc = 0; rc 575 tools/crm_resource.c rc = -1; rc 578 tools/crm_resource.c return crm_exit(rc); rc 764 tools/crm_resource.c int rc = sscanf(argv[optind], "%[^=]=%s", name, value); rc 766 tools/crm_resource.c if(rc == 2) { rc 807 tools/crm_resource.c rc = -ENXIO; rc 817 tools/crm_resource.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 818 tools/crm_resource.c if (rc != pcmk_ok) { rc 819 tools/crm_resource.c CMD_ERR("Error signing on to the CIB service: %s", pcmk_strerror(rc)); rc 831 tools/crm_resource.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 834 tools/crm_resource.c if(rc != pcmk_ok) { rc 840 tools/crm_resource.c rc = update_working_set_xml(&data_set, &cib_xml_copy); rc 841 tools/crm_resource.c if (rc != pcmk_ok) { rc 853 tools/crm_resource.c rc = -ENXIO; rc 867 tools/crm_resource.c rc = -ENOTCONN; rc 878 tools/crm_resource.c rc = pcmk_ok; rc 885 tools/crm_resource.c rc = pcmk_ok; rc 895 tools/crm_resource.c rc = -ENXIO; rc 899 tools/crm_resource.c rc = cli_resource_restart(rsc, host_uname, timeout_ms, cib_conn); rc 902 tools/crm_resource.c rc = wait_till_stable(timeout_ms, cib_conn); rc 906 tools/crm_resource.c rc = cli_resource_execute(rsc, rsc_id, rsc_long_cmd, override_params, rc 908 tools/crm_resource.c if (rc >= 0) { rc 943 tools/crm_resource.c rc = pcmk_ok; rc 951 tools/crm_resource.c rc = cli_resource_fail(crmd_channel, host_uname, rsc_id, &data_set); rc 952 tools/crm_resource.c if (rc == pcmk_ok) { rc 957 tools/crm_resource.c rc = cli_resource_print_operations(rsc_id, host_uname, TRUE, &data_set); rc 960 tools/crm_resource.c rc = cli_resource_print_operations(rsc_id, host_uname, FALSE, &data_set); rc 963 tools/crm_resource.c rc = cli_resource_search(rsc, rsc_id, &data_set); rc 964 tools/crm_resource.c if (rc >= 0) { rc 965 tools/crm_resource.c rc = pcmk_ok; rc 969 tools/crm_resource.c rc = cli_resource_print(rsc, &data_set, TRUE); rc 972 tools/crm_resource.c rc = cli_resource_print(rsc, &data_set, FALSE); rc 981 tools/crm_resource.c rc = -ENXIO; rc 986 tools/crm_resource.c rc = pcmk_ok; rc 995 tools/crm_resource.c rc = -ENXIO; rc 998 tools/crm_resource.c rc = cli_resource_clear(rsc_id, dest->details->uname, NULL, cib_conn); rc 1001 tools/crm_resource.c rc = cli_resource_clear(rsc_id, NULL, data_set.nodes, cib_conn); rc 1005 tools/crm_resource.c rc = cli_resource_move(rsc, rsc_id, host_uname, cib_conn, &data_set); rc 1012 tools/crm_resource.c rc = -ENXIO; rc 1015 tools/crm_resource.c rc = cli_resource_ban(rsc_id, dest->details->uname, NULL, cib_conn); rc 1018 tools/crm_resource.c rc = -EINVAL; rc 1021 tools/crm_resource.c rc = cli_resource_ban(rsc_id, current->details->uname, NULL, cib_conn); rc 1039 tools/crm_resource.c rc = cli_resource_ban(rsc_id, current->details->uname, NULL, cib_conn); rc 1054 tools/crm_resource.c rc = cli_resource_print_property(rsc, prop_name, &data_set); rc 1061 tools/crm_resource.c rc = -ENXIO; rc 1066 tools/crm_resource.c rc = -EINVAL; rc 1076 tools/crm_resource.c rc = cib_conn->cmds->modify(cib_conn, XML_CIB_TAG_RESOURCES, msg_data, cib_options); rc 1080 tools/crm_resource.c rc = cli_resource_print_attribute(rsc, prop_name, &data_set); rc 1085 tools/crm_resource.c rc = -EINVAL; rc 1090 tools/crm_resource.c rc = cli_resource_update_attribute(rsc, rsc_id, prop_set, prop_id, rc 1096 tools/crm_resource.c rc = cli_resource_delete_attribute(rsc, rsc_id, prop_set, prop_id, rc 1123 tools/crm_resource.c rc = cli_resource_delete(crmd_channel, node, rsc, task, rc 1127 tools/crm_resource.c if(rsc && (rc == pcmk_ok) && (BE_QUIET == FALSE)) { rc 1132 tools/crm_resource.c if (rc == pcmk_ok) { rc 1144 tools/crm_resource.c rc = cli_resource_delete(crmd_channel, host_uname, rsc, operation, rc 1147 tools/crm_resource.c if(rc == pcmk_ok && BE_QUIET == FALSE) { rc 1152 tools/crm_resource.c if (rc == pcmk_ok) { rc 1169 tools/crm_resource.c rc = -ENXIO; rc 1181 tools/crm_resource.c rc = pcmk_ok; rc 1197 tools/crm_resource.c rc = attrd_clear_delegate(NULL, host_uname, NULL, NULL, NULL, NULL, rc 1223 tools/crm_resource.c rc = -ENXIO; rc 1230 tools/crm_resource.c rc = cib_conn->cmds->delete(cib_conn, XML_CIB_TAG_RESOURCES, msg_data, cib_options); rc 1249 tools/crm_resource.c if (rc == -pcmk_err_no_quorum) { rc 1250 tools/crm_resource.c CMD_ERR("Error performing operation: %s", pcmk_strerror(rc)); rc 1253 tools/crm_resource.c } else if (rc != pcmk_ok && !is_ocf_rc) { rc 1254 tools/crm_resource.c CMD_ERR("Error performing operation: %s", pcmk_strerror(rc)); rc 1257 tools/crm_resource.c return crm_exit(rc); rc 64 tools/crm_resource_ban.c int rc = pcmk_ok; rc 70 tools/crm_resource_ban.c for(; n && rc == pcmk_ok; n = n->next) { rc 73 tools/crm_resource_ban.c rc = cli_resource_ban(rsc_id, target->details->uname, NULL, cib_conn); rc 75 tools/crm_resource_ban.c return rc; rc 134 tools/crm_resource_ban.c rc = cib_conn->cmds->update(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 138 tools/crm_resource_ban.c return rc; rc 146 tools/crm_resource_ban.c int rc = pcmk_ok; rc 197 tools/crm_resource_ban.c rc = cib_conn->cmds->update(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 201 tools/crm_resource_ban.c return rc; rc 207 tools/crm_resource_ban.c int rc = pcmk_ok; rc 239 tools/crm_resource_ban.c rc = cib_conn->cmds->delete(cib_conn, XML_CIB_TAG_CONSTRAINTS, fragment, cib_options); rc 240 tools/crm_resource_ban.c if (rc == -ENXIO) { rc 241 tools/crm_resource_ban.c rc = pcmk_ok; rc 243 tools/crm_resource_ban.c } else if (rc != pcmk_ok) { rc 249 tools/crm_resource_ban.c return rc; rc 317 tools/crm_resource_print.c int rc = -ENXIO; rc 349 tools/crm_resource_print.c rc = 0; rc 356 tools/crm_resource_print.c return rc; rc 95 tools/crm_resource_runtime.c int rc = pcmk_ok; rc 134 tools/crm_resource_runtime.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 137 tools/crm_resource_runtime.c if (rc != pcmk_ok) { rc 145 tools/crm_resource_runtime.c rc = -EINVAL; rc 164 tools/crm_resource_runtime.c return rc; rc 171 tools/crm_resource_runtime.c int rc = pcmk_ok; rc 188 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, rsc_id, attr_set_type, attr_set, attr_id, attr_name, &local_attr_id); rc 191 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 210 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, lookup_id, attr_set_type, attr_set, attr_id, attr_name, &local_attr_id); rc 212 tools/crm_resource_runtime.c if(rc == pcmk_ok) { rc 234 tools/crm_resource_runtime.c int rc = pcmk_ok; rc 255 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, uber_parent(rsc)->id, rc 258 tools/crm_resource_runtime.c if (rc == pcmk_ok && BE_QUIET == FALSE) { rc 264 tools/crm_resource_runtime.c if (rc == pcmk_ok) { rc 275 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, lookup_id, attr_set_type, attr_set, attr_id, attr_name, rc 278 tools/crm_resource_runtime.c if (rc == pcmk_ok) { rc 282 tools/crm_resource_runtime.c } else if (rc != -ENXIO) { rc 285 tools/crm_resource_runtime.c return rc; rc 337 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, XML_CIB_TAG_RESOURCES, xml_top, cib_options); rc 338 tools/crm_resource_runtime.c if (rc == pcmk_ok && BE_QUIET == FALSE) { rc 383 tools/crm_resource_runtime.c return rc; rc 394 tools/crm_resource_runtime.c int rc = pcmk_ok; rc 411 tools/crm_resource_runtime.c rc = find_resource_attr(cib, XML_ATTR_ID, lookup_id, attr_set_type, attr_set, attr_id, attr_name, rc 414 tools/crm_resource_runtime.c if (rc == -ENXIO) { rc 418 tools/crm_resource_runtime.c } else if (rc != pcmk_ok) { rc 420 tools/crm_resource_runtime.c return rc; rc 431 tools/crm_resource_runtime.c rc = cib->cmds->delete(cib, XML_CIB_TAG_RESOURCES, xml_obj, cib_options); rc 433 tools/crm_resource_runtime.c if (rc == pcmk_ok && BE_QUIET == FALSE) { rc 442 tools/crm_resource_runtime.c return rc; rc 452 tools/crm_resource_runtime.c int rc = -ECOMM; rc 533 tools/crm_resource_runtime.c rc = 0; rc 537 tools/crm_resource_runtime.c rc = -ENOTCONN; rc 541 tools/crm_resource_runtime.c return rc; rc 566 tools/crm_resource_runtime.c int rc = pcmk_ok; rc 580 tools/crm_resource_runtime.c rc = cli_resource_delete(crmd_channel, host_uname, child, operation, rc 582 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 583 tools/crm_resource_runtime.c return rc; rc 640 tools/crm_resource_runtime.c return rc; rc 648 tools/crm_resource_runtime.c rc = send_lrm_rsc_op(crmd_channel, CRM_OP_LRM_DELETE, host_uname, rsc->id, rc 650 tools/crm_resource_runtime.c if (rc != pcmk_ok) { rc 652 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_strerror(rc)); rc 653 tools/crm_resource_runtime.c return rc; rc 671 tools/crm_resource_runtime.c rc = attrd_clear_delegate(NULL, host_uname, rsc_name, operation, interval, rc 673 tools/crm_resource_runtime.c if (rc != pcmk_ok) { rc 675 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_strerror(rc)); rc 681 tools/crm_resource_runtime.c return rc; rc 930 tools/crm_resource_runtime.c int rc; rc 932 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 933 tools/crm_resource_runtime.c if (rc != pcmk_ok) { rc 934 tools/crm_resource_runtime.c fprintf(stderr, "Could not obtain the current CIB: %s (%d)\n", pcmk_strerror(rc), rc); rc 935 tools/crm_resource_runtime.c return rc; rc 937 tools/crm_resource_runtime.c rc = update_working_set_xml(data_set, &cib_xml_copy); rc 938 tools/crm_resource_runtime.c if (rc != pcmk_ok) { rc 941 tools/crm_resource_runtime.c return rc; rc 952 tools/crm_resource_runtime.c int rc; rc 955 tools/crm_resource_runtime.c rc = update_working_set_from_cib(data_set, cib); rc 956 tools/crm_resource_runtime.c if (rc != pcmk_ok) { rc 957 tools/crm_resource_runtime.c return rc; rc 967 tools/crm_resource_runtime.c rc = -ENXIO; rc 971 tools/crm_resource_runtime.c rc = write_xml_file(data_set->input, shadow_file, FALSE); rc 973 tools/crm_resource_runtime.c if (rc < 0) { rc 974 tools/crm_resource_runtime.c fprintf(stderr, "Could not populate shadow cib: %s (%d)\n", pcmk_strerror(rc), rc); rc 978 tools/crm_resource_runtime.c rc = shadow_cib->cmds->signon(shadow_cib, crm_system_name, cib_command); rc 979 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 980 tools/crm_resource_runtime.c fprintf(stderr, "Could not connect to shadow cib: %s (%d)\n", pcmk_strerror(rc), rc); rc 986 tools/crm_resource_runtime.c rc = update_dataset(shadow_cib, data_set, FALSE); rc 1002 tools/crm_resource_runtime.c return rc; rc 1080 tools/crm_resource_runtime.c int rc = 0; rc 1136 tools/crm_resource_runtime.c rc = update_dataset(cib, &data_set, FALSE); rc 1137 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 1138 tools/crm_resource_runtime.c fprintf(stdout, "Could not get new resource list: %s (%d)\n", pcmk_strerror(rc), rc); rc 1140 tools/crm_resource_runtime.c return rc; rc 1151 tools/crm_resource_runtime.c rc = cli_resource_ban(rsc_id, host, NULL, cib); rc 1163 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, NULL, rc 1167 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 1168 tools/crm_resource_runtime.c fprintf(stderr, "Could not set target-role for %s: %s (%d)\n", rsc_id, pcmk_strerror(rc), rc); rc 1176 tools/crm_resource_runtime.c return crm_exit(rc); rc 1179 tools/crm_resource_runtime.c rc = update_dataset(cib, &data_set, TRUE); rc 1180 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 1206 tools/crm_resource_runtime.c rc = update_dataset(cib, &data_set, FALSE); rc 1207 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 1227 tools/crm_resource_runtime.c rc = -ETIME; rc 1234 tools/crm_resource_runtime.c rc = cli_resource_clear(rsc_id, host, NULL, cib); rc 1237 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, NULL, rc 1244 tools/crm_resource_runtime.c rc = cli_resource_delete_attribute(rsc, rsc_id, NULL, NULL, rc 1249 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 1250 tools/crm_resource_runtime.c fprintf(stderr, "Could not unset target-role for %s: %s (%d)\n", rsc_id, pcmk_strerror(rc), rc); rc 1252 tools/crm_resource_runtime.c return crm_exit(rc); rc 1282 tools/crm_resource_runtime.c rc = update_dataset(cib, &data_set, FALSE); rc 1283 tools/crm_resource_runtime.c if(rc != pcmk_ok) { rc 1306 tools/crm_resource_runtime.c rc = -ETIME; rc 1312 tools/crm_resource_runtime.c rc = pcmk_ok; rc 1343 tools/crm_resource_runtime.c return rc; rc 1423 tools/crm_resource_runtime.c int rc = -1; rc 1440 tools/crm_resource_runtime.c if (rc == pcmk_ok) { /* this avoids sleep on first loop iteration */ rc 1446 tools/crm_resource_runtime.c rc = update_working_set_from_cib(&data_set, cib); rc 1447 tools/crm_resource_runtime.c if (rc != pcmk_ok) { rc 1449 tools/crm_resource_runtime.c return rc; rc 1463 tools/crm_resource_runtime.c int rc = pcmk_ok; rc 1487 tools/crm_resource_runtime.c rc = cli_resource_search(rsc, requested_name, data_set); rc 1488 tools/crm_resource_runtime.c if(rc > 0 && do_force == FALSE) { rc 1570 tools/crm_resource_runtime.c services_ocf_exitcode_str(op->rc), op->rc); rc 1611 tools/crm_resource_runtime.c rc = op->rc; rc 1613 tools/crm_resource_runtime.c return rc; rc 1620 tools/crm_resource_runtime.c int rc = -EINVAL; rc 1662 tools/crm_resource_runtime.c return rc; rc 1687 tools/crm_resource_runtime.c return rc; rc 1695 tools/crm_resource_runtime.c rc = cli_resource_prefer(rsc_id, dest->details->uname, cib); rc 1719 tools/crm_resource_runtime.c return rc; rc 386 tools/crm_simulate.c int rc = pcmk_ok; rc 394 tools/crm_simulate.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 396 tools/crm_simulate.c if (rc == pcmk_ok) { rc 397 tools/crm_simulate.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_object, cib_scope_local | cib_sync_call); rc 404 tools/crm_simulate.c if (rc != pcmk_ok) { rc 405 tools/crm_simulate.c fprintf(stderr, "Live CIB query failed: %s (%d)\n", pcmk_strerror(rc), rc); rc 406 tools/crm_simulate.c crm_exit(rc); rc 443 tools/crm_simulate.c rc = write_xml_file(cib_object, output, FALSE); rc 447 tools/crm_simulate.c if (rc < 0) { rc 449 tools/crm_simulate.c crm_exit(rc); rc 609 tools/crm_simulate.c int rc = 0; rc 808 tools/crm_simulate.c rc = global_cib->cmds->query(global_cib, NULL, &input, cib_sync_call | cib_scope_local); rc 809 tools/crm_simulate.c CRM_ASSERT(rc == pcmk_ok); rc 841 tools/crm_simulate.c rc = global_cib->cmds->query(global_cib, NULL, &input, cib_sync_call); rc 842 tools/crm_simulate.c if (rc != pcmk_ok) { rc 843 tools/crm_simulate.c fprintf(stderr, "Could not connect to the CIB for input: %s\n", pcmk_strerror(rc)); rc 858 tools/crm_simulate.c rc = write_xml_file(input, input_file, FALSE); rc 859 tools/crm_simulate.c if (rc < 0) { rc 865 tools/crm_simulate.c rc = 0; rc 905 tools/crm_simulate.c rc = run_simulation(&data_set, global_cib, op_fail, quiet); rc 927 tools/crm_simulate.c return crm_exit(rc); rc 159 tools/crm_ticket.c int rc = pcmk_ok; rc 176 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 179 tools/crm_ticket.c if (rc != pcmk_ok) { rc 195 tools/crm_ticket.c return rc; rc 202 tools/crm_ticket.c int rc = pcmk_ok; rc 221 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 224 tools/crm_ticket.c if (rc != pcmk_ok) { rc 233 tools/crm_ticket.c return rc; rc 239 tools/crm_ticket.c int rc = pcmk_ok; rc 242 tools/crm_ticket.c rc = find_ticket_state(the_cib, ticket_id, &state_xml); rc 245 tools/crm_ticket.c return rc; rc 264 tools/crm_ticket.c int rc = pcmk_ok; rc 268 tools/crm_ticket.c rc = find_ticket_constraints(the_cib, ticket_id, &cons_xml); rc 271 tools/crm_ticket.c return rc; rc 288 tools/crm_ticket.c int rc = pcmk_ok; rc 332 tools/crm_ticket.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 335 tools/crm_ticket.c if (rc != pcmk_ok) { rc 343 tools/crm_ticket.c rc = -EINVAL; rc 362 tools/crm_ticket.c return rc; rc 371 tools/crm_ticket.c int rc = pcmk_ok; rc 374 tools/crm_ticket.c rc = find_ticket_state_attr_legacy(cib, XML_ATTR_ID, ticket_id, XML_TAG_ATTR_SETS, set_name, rc 377 tools/crm_ticket.c if (rc == -ENXIO) { rc 380 tools/crm_ticket.c } else if (rc != pcmk_ok) { rc 381 tools/crm_ticket.c return rc; rc 391 tools/crm_ticket.c rc = cib->cmds->delete(cib, XML_CIB_TAG_STATUS, xml_obj, cib_options); rc 393 tools/crm_ticket.c if (rc == pcmk_ok) { rc 401 tools/crm_ticket.c return rc; rc 429 tools/crm_ticket.c gboolean rc = FALSE; rc 469 tools/crm_ticket.c return rc; rc 510 tools/crm_ticket.c int rc = pcmk_ok; rc 529 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 530 tools/crm_ticket.c if (rc == pcmk_ok) { rc 535 tools/crm_ticket.c } else if (rc != -ENXIO) { rc 536 tools/crm_ticket.c return rc; rc 575 tools/crm_ticket.c rc = cib->cmds->replace(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); rc 579 tools/crm_ticket.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); rc 584 tools/crm_ticket.c if (rc != pcmk_ok) { rc 585 tools/crm_ticket.c return rc; rc 597 tools/crm_ticket.c return rc; rc 605 tools/crm_ticket.c int rc = pcmk_ok; rc 607 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 609 tools/crm_ticket.c if (rc == -ENXIO) { rc 612 tools/crm_ticket.c } else if (rc != pcmk_ok) { rc 613 tools/crm_ticket.c return rc; rc 618 tools/crm_ticket.c rc = cib->cmds->delete(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); rc 620 tools/crm_ticket.c if (rc == pcmk_ok) { rc 625 tools/crm_ticket.c return rc; rc 710 tools/crm_ticket.c int rc = pcmk_ok; rc 843 tools/crm_ticket.c rc = -ENOTCONN; rc 844 tools/crm_ticket.c CMD_ERR("Error initiating the connection to the CIB service: %s\n", pcmk_strerror(rc)); rc 845 tools/crm_ticket.c return rc; rc 848 tools/crm_ticket.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 849 tools/crm_ticket.c if (rc != pcmk_ok) { rc 850 tools/crm_ticket.c CMD_ERR("Error signing on to the CIB service: %s\n", pcmk_strerror(rc)); rc 851 tools/crm_ticket.c return rc; rc 858 tools/crm_ticket.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 861 tools/crm_ticket.c if (rc != pcmk_ok) { rc 865 tools/crm_ticket.c rc = -ENOKEY; rc 893 tools/crm_ticket.c rc = -ENXIO; rc 896 tools/crm_ticket.c rc = print_ticket(ticket, raw, details); rc 899 tools/crm_ticket.c rc = print_ticket_list(&data_set, raw, details); rc 903 tools/crm_ticket.c rc = dump_ticket_xml(cib_conn, ticket_id); rc 906 tools/crm_ticket.c rc = dump_constraints(cib_conn, ticket_id); rc 913 tools/crm_ticket.c rc = -ENXIO; rc 917 tools/crm_ticket.c rc = get_ticket_state_attr(ticket_id, get_attr_name, &value, &data_set); rc 918 tools/crm_ticket.c if (rc == pcmk_ok) { rc 920 tools/crm_ticket.c } else if (rc == -ENXIO && attr_default) { rc 922 tools/crm_ticket.c rc = pcmk_ok; rc 928 tools/crm_ticket.c rc = -ENXIO; rc 937 tools/crm_ticket.c rc = -ENXIO; rc 943 tools/crm_ticket.c rc = -EPERM; rc 948 tools/crm_ticket.c rc = delete_ticket_state(ticket_id, cib_conn); rc 953 tools/crm_ticket.c rc = -ENXIO; rc 960 tools/crm_ticket.c rc = -EINVAL; rc 967 tools/crm_ticket.c rc = -EINVAL; rc 972 tools/crm_ticket.c rc = -EPERM; rc 976 tools/crm_ticket.c rc = modify_ticket_state(ticket_id, attr_delete, attr_set, cib_conn, &data_set); rc 978 tools/crm_ticket.c if (rc != pcmk_ok) { rc 985 tools/crm_ticket.c rc = -ENXIO; rc 991 tools/crm_ticket.c rc = -EINVAL; rc 997 tools/crm_ticket.c rc = -EINVAL; rc 1022 tools/crm_ticket.c if (rc == -pcmk_err_no_quorum) { rc 1023 tools/crm_ticket.c CMD_ERR("Error performing operation: %s\n", pcmk_strerror(rc)); rc 1026 tools/crm_ticket.c } else if (rc != pcmk_ok) { rc 1027 tools/crm_ticket.c CMD_ERR("Error performing operation: %s\n", pcmk_strerror(rc)); rc 1030 tools/crm_ticket.c return crm_exit(rc); rc 67 tools/crm_uuid.c int rc = 0; rc 72 tools/crm_uuid.c rc = read_local_hb_uuid(); rc 73 tools/crm_uuid.c return rc; rc 91 tools/crm_uuid.c rc = read_local_hb_uuid(); rc 94 tools/crm_uuid.c rc = write_local_hb_uuid(optarg); rc 101 tools/crm_uuid.c return rc; rc 107 tools/crm_uuid.c int rc = 0; rc 131 tools/crm_uuid.c rc = 2; rc 141 tools/crm_uuid.c rc = 3; rc 150 tools/crm_uuid.c rc = 4; rc 157 tools/crm_uuid.c return rc; rc 164 tools/crm_uuid.c int rc = 0; rc 168 tools/crm_uuid.c rc = cl_uuid_parse(buffer, &uuid); rc 169 tools/crm_uuid.c if (rc != 0) { rc 183 tools/crm_uuid.c rc = 7; rc 188 tools/crm_uuid.c rc = 8; rc 190 tools/crm_uuid.c return rc; rc 84 tools/crm_verify.c int rc = pcmk_ok; rc 159 tools/crm_verify.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 163 tools/crm_verify.c if (rc == pcmk_ok) { rc 167 tools/crm_verify.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_object, options); rc 170 tools/crm_verify.c if (rc != pcmk_ok) { rc 171 tools/crm_verify.c fprintf(stderr, "Live CIB query failed: %s\n", pcmk_strerror(rc)); rc 176 tools/crm_verify.c rc = -ENOMSG; rc 184 tools/crm_verify.c rc = -ENODATA; rc 192 tools/crm_verify.c rc = -ENODATA; rc 199 tools/crm_verify.c rc = -ENODATA; rc 206 tools/crm_verify.c rc = -ENODATA; rc 214 tools/crm_verify.c rc = -EBADMSG; rc 260 tools/crm_verify.c rc = -pcmk_err_generic; rc 267 tools/crm_verify.c rc = -pcmk_err_generic; rc 276 tools/crm_verify.c return rc; rc 306 tools/crmadmin.c int rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); rc 308 tools/crmadmin.c if (rc != pcmk_ok) { rc 312 tools/crmadmin.c rc = the_cib->cmds->query(the_cib, NULL, &output, cib_scope_local | cib_sync_call); rc 313 tools/crmadmin.c if(rc == pcmk_ok) { rc 319 tools/crmadmin.c crm_exit(rc); rc 92 tools/fake_transition.c int interval, int rc) rc 94 tools/fake_transition.c if (rc == 0) { rc 97 tools/fake_transition.c } else if (rc == 7 && interval == 0) { rc 118 tools/fake_transition.c int rc = pcmk_ok; rc 125 tools/fake_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, NULL, cib_xpath | cib_sync_call | cib_scope_local); rc 127 tools/fake_transition.c if (rc == -ENXIO) { rc 156 tools/fake_transition.c op->rc = outcome; rc 186 tools/fake_transition.c int rc = pcmk_ok; rc 194 tools/fake_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 205 tools/fake_transition.c if (rc == -ENXIO) { rc 222 tools/fake_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 224 tools/fake_transition.c crm_trace("injecting node state for %s. rc is %d", node, rc); rc 228 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 341 tools/fake_transition.c int rc = pcmk_ok; rc 357 tools/fake_transition.c rc = the_cib->cmds->query(the_cib, xpath_string, &xml_search, rc 360 tools/fake_transition.c if (rc != pcmk_ok) { rc 376 tools/fake_transition.c return rc; rc 383 tools/fake_transition.c int rc = pcmk_ok; rc 387 tools/fake_transition.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); rc 388 tools/fake_transition.c if (rc == pcmk_ok) { rc 392 tools/fake_transition.c } else if (rc != -ENXIO) { rc 393 tools/fake_transition.c return rc; rc 408 tools/fake_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); rc 412 tools/fake_transition.c return rc; rc 421 tools/fake_transition.c int rc = pcmk_ok; rc 437 tools/fake_transition.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call | cib_scope_local); rc 438 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 444 tools/fake_transition.c rc = update_attr_delegate(cib, cib_sync_call | cib_scope_local, rc 448 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 458 tools/fake_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 460 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 472 tools/fake_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 474 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 496 tools/fake_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 498 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 506 tools/fake_transition.c rc = set_ticket_state_attr(ticket_id, "granted", "true", rc 509 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 516 tools/fake_transition.c rc = set_ticket_state_attr(ticket_id, "granted", "false", rc 519 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 526 tools/fake_transition.c rc = set_ticket_state_attr(ticket_id, "standby", "true", rc 529 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 536 tools/fake_transition.c rc = set_ticket_state_attr(ticket_id, "standby", "false", rc 539 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 545 tools/fake_transition.c int rc = 0; rc 564 tools/fake_transition.c rc = sscanf(spec, "%[^@]@%[^=]=%d", key, node, &outcome); rc 565 tools/fake_transition.c if (rc != 3) { rc 566 tools/fake_transition.c fprintf(stderr, "Invalid operation spec: %s. Only found %d fields\n", spec, rc); rc 597 tools/fake_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, rc 599 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 623 tools/fake_transition.c int rc = 0; rc 711 tools/fake_transition.c rc = sscanf(spec, "%*[^=]=%d", (int *) &op->rc); rc 714 tools/fake_transition.c if (rc != 1) { rc 723 tools/fake_transition.c printf("\tPretending action %d failed with rc=%d\n", action->id, op->rc); rc 724 tools/fake_transition.c update_failcounts(cib_node, resource, op->op_type, op->interval, op->rc); rc 734 tools/fake_transition.c rc = fake_cib->cmds->modify(fake_cib, XML_CIB_TAG_STATUS, cib_node, rc 736 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 772 tools/fake_transition.c int rc = 0; rc 779 tools/fake_transition.c rc = fake_cib->cmds->replace(fake_cib, XML_CIB_TAG_STATUS, cib_node, rc 781 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 842 tools/fake_transition.c int rc = fake_cib->cmds->query(fake_cib, NULL, &cib_object, cib_sync_call | cib_scope_local); rc 844 tools/fake_transition.c CRM_ASSERT(rc == pcmk_ok); rc 96 tools/ipmiservicelogd.c int rc; rc 100 tools/ipmiservicelogd.c rc = pipe2(pipefd, 0); rc 102 tools/ipmiservicelogd.c if (rc == -1) { rc 119 tools/ipmiservicelogd.c rc = close(pipefd[1]); rc 120 tools/ipmiservicelogd.c if (rc == -1) { rc 125 tools/ipmiservicelogd.c rc = dup2(pipefd[0], 0); rc 126 tools/ipmiservicelogd.c if (rc == -1) { rc 131 tools/ipmiservicelogd.c rc = close(pipefd[0]); rc 132 tools/ipmiservicelogd.c if (rc == -1) { rc 187 tools/ipmiservicelogd.c rc = close(pipefd[0]); rc 188 tools/ipmiservicelogd.c if (rc == -1) { rc 193 tools/ipmiservicelogd.c rc = dup2(pipefd[1], 1); rc 194 tools/ipmiservicelogd.c if (rc == -1) { rc 199 tools/ipmiservicelogd.c rc = close(pipefd[1]); rc 200 tools/ipmiservicelogd.c if (rc == -1) { rc 204 tools/ipmiservicelogd.c rc = execvp(args[0], args); rc 206 tools/ipmiservicelogd.c if (rc == -1) { rc 274 tools/ipmiservicelogd.c int rc; rc 281 tools/ipmiservicelogd.c rc = servicelog_open(&slog, 0); /* flags is one of SL_FLAG_xxx */ rc 284 tools/ipmiservicelogd.c crm_err("Error: servicelog_open failed, rc = %d", rc); rc 331 tools/ipmiservicelogd.c rc = servicelog_event_log(slog, &sl_event, &new_id); rc 333 tools/ipmiservicelogd.c if (rc != 0) { rc 334 tools/ipmiservicelogd.c crm_err("Error: servicelog_event_log, rc = %d (\"%s\")", rc, servicelog_error(slog)); rc 89 tools/notifyServicelogEvent.c int rc = 0; rc 131 tools/notifyServicelogEvent.c rc = 1; rc 138 tools/notifyServicelogEvent.c rc = 1; rc 142 tools/notifyServicelogEvent.c rc = servicelog_open(&slog, 0); /* flags is one of SL_FLAG_xxx */ rc 145 tools/notifyServicelogEvent.c crm_err("Error: servicelog_open failed, rc = %d", rc); rc 147 tools/notifyServicelogEvent.c rc = 1; rc 152 tools/notifyServicelogEvent.c rc = servicelog_event_get(slog, event_id, &event); rc 155 tools/notifyServicelogEvent.c if (rc == 0) { rc 168 tools/notifyServicelogEvent.c gboolean rc; rc 171 tools/notifyServicelogEvent.c rc = (attrd_update_delegate(NULL, 'v', NULL, health_component, rc 175 tools/notifyServicelogEvent.c health_component, health_status, rc); rc 178 tools/notifyServicelogEvent.c rc = 1; rc 181 tools/notifyServicelogEvent.c crm_err("Error: servicelog_event_get failed, rc = %d", rc); rc 195 tools/notifyServicelogEvent.c return rc; rc 75 tools/test.iso8601.c int rc = 0; rc 205 tools/test.iso8601.c rc = 1; rc 216 tools/test.iso8601.c rc = 1; rc 233 tools/test.iso8601.c return crm_exit(rc);