cmd 135 attrd/legacy.c usage(const char *cmd, int exit_status) cmd 141 attrd/legacy.c fprintf(stream, "usage: %s [-srkh] [-c configure file]\n", cmd); cmd 56 cib/cibmon.c void usage(const char *cmd, int exit_status); cmd 177 cib/cibmon.c usage(const char *cmd, int exit_status) cmd 41 crmd/main.c void usage(const char *cmd, int exit_status); cmd 287 crmd/pengine.c xmlNode *cmd = NULL; cmd 335 crmd/pengine.c cmd = create_request(CRM_OP_PECALC, output, NULL, CRM_SYSTEM_PENGINE, CRM_SYSTEM_DC, NULL); cmd 338 crmd/pengine.c fsa_pe_ref = crm_element_value_copy(cmd, XML_ATTR_REFERENCE); cmd 340 crmd/pengine.c sent = crm_ipc_send(mainloop_get_ipc_client(pe_subsystem->source), cmd, 0, 0, NULL); cmd 348 crmd/pengine.c free_xml(cmd); cmd 90 crmd/remote_lrmd_ra.c static int handle_remote_ra_start(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd, int timeout_ms); cmd 91 crmd/remote_lrmd_ra.c static void handle_remote_ra_stop(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd); cmd 97 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = user_data; cmd 99 crmd/remote_lrmd_ra.c if (!cmd) { cmd 102 crmd/remote_lrmd_ra.c if (cmd->delay_id) { cmd 103 crmd/remote_lrmd_ra.c g_source_remove(cmd->delay_id); cmd 105 crmd/remote_lrmd_ra.c if (cmd->interval_id) { cmd 106 crmd/remote_lrmd_ra.c g_source_remove(cmd->interval_id); cmd 108 crmd/remote_lrmd_ra.c if (cmd->monitor_timeout_id) { cmd 109 crmd/remote_lrmd_ra.c g_source_remove(cmd->monitor_timeout_id); cmd 111 crmd/remote_lrmd_ra.c if (cmd->takeover_timeout_id) { cmd 112 crmd/remote_lrmd_ra.c g_source_remove(cmd->takeover_timeout_id); cmd 114 crmd/remote_lrmd_ra.c free(cmd->owner); cmd 115 crmd/remote_lrmd_ra.c free(cmd->rsc_id); cmd 116 crmd/remote_lrmd_ra.c free(cmd->action); cmd 117 crmd/remote_lrmd_ra.c free(cmd->userdata); cmd 118 crmd/remote_lrmd_ra.c free(cmd->exit_reason); cmd 119 crmd/remote_lrmd_ra.c lrmd_key_value_freeall(cmd->params); cmd 120 crmd/remote_lrmd_ra.c free(cmd); cmd 139 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = data; cmd 142 crmd/remote_lrmd_ra.c cmd->interval_id = 0; cmd 143 crmd/remote_lrmd_ra.c connection_rsc = lrm_state_find(cmd->rsc_id); cmd 147 crmd/remote_lrmd_ra.c ra_data->recurring_cmds = g_list_remove(ra_data->recurring_cmds, cmd); cmd 149 crmd/remote_lrmd_ra.c ra_data->cmds = g_list_append(ra_data->cmds, cmd); cmd 158 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = data; cmd 161 crmd/remote_lrmd_ra.c cmd->delay_id = 0; cmd 162 crmd/remote_lrmd_ra.c connection_rsc = lrm_state_find(cmd->rsc_id); cmd 294 crmd/remote_lrmd_ra.c check_remote_node_state(remote_ra_cmd_t *cmd) cmd 297 crmd/remote_lrmd_ra.c if (cmd->rc != PCMK_OCF_OK) { cmd 301 crmd/remote_lrmd_ra.c if (safe_str_eq(cmd->action, "start")) { cmd 302 crmd/remote_lrmd_ra.c remote_node_up(cmd->rsc_id); cmd 304 crmd/remote_lrmd_ra.c } else if (safe_str_eq(cmd->action, "migrate_from")) { cmd 312 crmd/remote_lrmd_ra.c crm_node_t *node = crm_remote_peer_get(cmd->rsc_id); cmd 317 crmd/remote_lrmd_ra.c } else if (safe_str_eq(cmd->action, "stop")) { cmd 318 crmd/remote_lrmd_ra.c lrm_state_t *lrm_state = lrm_state_find(cmd->rsc_id); cmd 324 crmd/remote_lrmd_ra.c remote_node_down(cmd->rsc_id, DOWN_KEEP_LRM); cmd 330 crmd/remote_lrmd_ra.c crm_remote_peer_cache_remove(cmd->rsc_id); cmd 347 crmd/remote_lrmd_ra.c report_remote_ra_result(remote_ra_cmd_t * cmd) cmd 351 crmd/remote_lrmd_ra.c check_remote_node_state(cmd); cmd 354 crmd/remote_lrmd_ra.c op.rsc_id = cmd->rsc_id; cmd 355 crmd/remote_lrmd_ra.c op.op_type = cmd->action; cmd 356 crmd/remote_lrmd_ra.c op.user_data = cmd->userdata; cmd 357 crmd/remote_lrmd_ra.c op.exit_reason = cmd->exit_reason; cmd 358 crmd/remote_lrmd_ra.c op.timeout = cmd->timeout; cmd 359 crmd/remote_lrmd_ra.c op.interval = cmd->interval; cmd 360 crmd/remote_lrmd_ra.c op.rc = cmd->rc; cmd 361 crmd/remote_lrmd_ra.c op.op_status = cmd->op_status; cmd 362 crmd/remote_lrmd_ra.c op.t_run = cmd->start_time; cmd 363 crmd/remote_lrmd_ra.c op.t_rcchange = cmd->start_time; cmd 364 crmd/remote_lrmd_ra.c if (cmd->reported_success && cmd->rc != PCMK_OCF_OK) { cmd 380 crmd/remote_lrmd_ra.c if (cmd->params) { cmd 384 crmd/remote_lrmd_ra.c for (tmp = cmd->params; tmp; tmp = tmp->next) { cmd 389 crmd/remote_lrmd_ra.c op.call_id = cmd->call_id; cmd 390 crmd/remote_lrmd_ra.c op.remote_nodename = cmd->owner; cmd 400 crmd/remote_lrmd_ra.c update_remaining_timeout(remote_ra_cmd_t * cmd) cmd 402 crmd/remote_lrmd_ra.c cmd->remaining_timeout = ((cmd->timeout / 1000) - (time(NULL) - cmd->start_time)) * 1000; cmd 410 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = NULL; cmd 416 crmd/remote_lrmd_ra.c cmd = ra_data->cur_cmd; cmd 417 crmd/remote_lrmd_ra.c if (safe_str_neq(cmd->action, "start") && safe_str_neq(cmd->action, "migrate_from")) { cmd 420 crmd/remote_lrmd_ra.c update_remaining_timeout(cmd); cmd 422 crmd/remote_lrmd_ra.c if (cmd->remaining_timeout > 0) { cmd 423 crmd/remote_lrmd_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->remaining_timeout); cmd 427 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; cmd 428 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_ERROR; cmd 429 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 435 crmd/remote_lrmd_ra.c free_cmd(cmd); cmd 448 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = data; cmd 450 crmd/remote_lrmd_ra.c crm_info("takeover event timed out for node %s", cmd->rsc_id); cmd 451 crmd/remote_lrmd_ra.c cmd->takeover_timeout_id = 0; cmd 453 crmd/remote_lrmd_ra.c lrm_state = lrm_state_find(cmd->rsc_id); cmd 455 crmd/remote_lrmd_ra.c handle_remote_ra_stop(lrm_state, cmd); cmd 456 crmd/remote_lrmd_ra.c free_cmd(cmd); cmd 465 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = data; cmd 467 crmd/remote_lrmd_ra.c lrm_state = lrm_state_find(cmd->rsc_id); cmd 469 crmd/remote_lrmd_ra.c crm_info("Poke async response timed out for node %s (%p)", cmd->rsc_id, lrm_state); cmd 470 crmd/remote_lrmd_ra.c cmd->monitor_timeout_id = 0; cmd 471 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_TIMEOUT; cmd 472 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; cmd 477 crmd/remote_lrmd_ra.c if (ra_data->cur_cmd == cmd) { cmd 485 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 486 crmd/remote_lrmd_ra.c free_cmd(cmd); cmd 522 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = NULL; cmd 587 crmd/remote_lrmd_ra.c cmd = ra_data->cur_cmd; cmd 591 crmd/remote_lrmd_ra.c if (op->type == lrmd_event_connect && (safe_str_eq(cmd->action, "start") || cmd 592 crmd/remote_lrmd_ra.c safe_str_eq(cmd->action, "migrate_from"))) { cmd 595 crmd/remote_lrmd_ra.c update_remaining_timeout(cmd); cmd 599 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_ERROR; cmd 600 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_INVALID_PARAM; cmd 601 crmd/remote_lrmd_ra.c cmd->exit_reason = strdup("Authentication key not readable"); cmd 603 crmd/remote_lrmd_ra.c } else if (cmd->remaining_timeout > 3000) { cmd 604 crmd/remote_lrmd_ra.c crm_trace("rescheduling start, remaining timeout %d", cmd->remaining_timeout); cmd 610 crmd/remote_lrmd_ra.c cmd->remaining_timeout); cmd 611 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_TIMEOUT; cmd 612 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; cmd 617 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; cmd 618 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_DONE; cmd 622 crmd/remote_lrmd_ra.c crm_debug("remote lrmd connect event matched %s action. ", cmd->action); cmd 623 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 626 crmd/remote_lrmd_ra.c } else if (op->type == lrmd_event_poke && safe_str_eq(cmd->action, "monitor")) { cmd 628 crmd/remote_lrmd_ra.c if (cmd->monitor_timeout_id) { cmd 629 crmd/remote_lrmd_ra.c g_source_remove(cmd->monitor_timeout_id); cmd 630 crmd/remote_lrmd_ra.c cmd->monitor_timeout_id = 0; cmd 636 crmd/remote_lrmd_ra.c if (!cmd->reported_success) { cmd 637 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; cmd 638 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_DONE; cmd 639 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 640 crmd/remote_lrmd_ra.c cmd->reported_success = 1; cmd 643 crmd/remote_lrmd_ra.c crm_debug("remote lrmd poke event matched %s action. ", cmd->action); cmd 646 crmd/remote_lrmd_ra.c if (cmd->interval && (cmd->cancel == FALSE)) { cmd 647 crmd/remote_lrmd_ra.c ra_data->recurring_cmds = g_list_append(ra_data->recurring_cmds, cmd); cmd 648 crmd/remote_lrmd_ra.c cmd->interval_id = g_timeout_add(cmd->interval, recurring_helper, cmd); cmd 649 crmd/remote_lrmd_ra.c cmd = NULL; /* prevent free */ cmd 653 crmd/remote_lrmd_ra.c } else if (op->type == lrmd_event_disconnect && safe_str_eq(cmd->action, "monitor")) { cmd 654 crmd/remote_lrmd_ra.c if (ra_data->active == TRUE && (cmd->cancel == FALSE)) { cmd 655 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; cmd 656 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_ERROR; cmd 657 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 662 crmd/remote_lrmd_ra.c } else if (op->type == lrmd_event_new_client && safe_str_eq(cmd->action, "stop")) { cmd 664 crmd/remote_lrmd_ra.c handle_remote_ra_stop(lrm_state, cmd); cmd 676 crmd/remote_lrmd_ra.c free_cmd(cmd); cmd 681 crmd/remote_lrmd_ra.c handle_remote_ra_stop(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd) cmd 710 crmd/remote_lrmd_ra.c if (cmd) { cmd 711 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; cmd 712 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_DONE; cmd 714 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 719 crmd/remote_lrmd_ra.c handle_remote_ra_start(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd, int timeout_ms) cmd 726 crmd/remote_lrmd_ra.c for (tmp = cmd->params; tmp; tmp = tmp->next) { cmd 744 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd; cmd 754 crmd/remote_lrmd_ra.c cmd = first->data; cmd 755 crmd/remote_lrmd_ra.c if (cmd->delay_id) { cmd 763 crmd/remote_lrmd_ra.c if (!strcmp(cmd->action, "start") || !strcmp(cmd->action, "migrate_from")) { cmd 765 crmd/remote_lrmd_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->timeout); cmd 769 crmd/remote_lrmd_ra.c ra_data->cur_cmd = cmd; cmd 773 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; cmd 774 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_ERROR; cmd 776 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 778 crmd/remote_lrmd_ra.c } else if (!strcmp(cmd->action, "monitor")) { cmd 783 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; cmd 784 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_ERROR; cmd 788 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_DONE; cmd 789 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_NOT_RUNNING; cmd 793 crmd/remote_lrmd_ra.c crm_debug("poked remote lrmd at node %s, waiting for async response.", cmd->rsc_id); cmd 794 crmd/remote_lrmd_ra.c ra_data->cur_cmd = cmd; cmd 795 crmd/remote_lrmd_ra.c cmd->monitor_timeout_id = g_timeout_add(cmd->timeout, monitor_timeout_cb, cmd); cmd 798 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 800 crmd/remote_lrmd_ra.c } else if (!strcmp(cmd->action, "stop")) { cmd 809 crmd/remote_lrmd_ra.c cmd->takeover_timeout_id = g_timeout_add((cmd->timeout/2), connection_takeover_timeout_cb, cmd); cmd 810 crmd/remote_lrmd_ra.c ra_data->cur_cmd = cmd; cmd 814 crmd/remote_lrmd_ra.c handle_remote_ra_stop(lrm_state, cmd); cmd 816 crmd/remote_lrmd_ra.c } else if (!strcmp(cmd->action, "migrate_to")) { cmd 818 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; cmd 819 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_DONE; cmd 820 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 821 crmd/remote_lrmd_ra.c } else if (!strcmp(cmd->action, "reload")) { cmd 823 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_OK; cmd 824 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_DONE; cmd 825 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 828 crmd/remote_lrmd_ra.c free_cmd(cmd); cmd 919 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = NULL; cmd 923 crmd/remote_lrmd_ra.c cmd = gIter->data; cmd 924 crmd/remote_lrmd_ra.c if (cmd->interval > 0 && safe_str_eq(cmd->action, "monitor")) { cmd 925 crmd/remote_lrmd_ra.c rm_list = g_list_append(rm_list, cmd); cmd 930 crmd/remote_lrmd_ra.c cmd = gIter->data; cmd 932 crmd/remote_lrmd_ra.c cmd->rc = PCMK_OCF_UNKNOWN_ERROR; cmd 933 crmd/remote_lrmd_ra.c cmd->op_status = PCMK_LRM_OP_ERROR; cmd 934 crmd/remote_lrmd_ra.c crm_trace("Pre-emptively failing %s %s (interval=%d, %s)", cmd->action, cmd->rsc_id, cmd->interval, cmd->userdata); cmd 935 crmd/remote_lrmd_ra.c report_remote_ra_result(cmd); cmd 937 crmd/remote_lrmd_ra.c list = g_list_remove(list, cmd); cmd 938 crmd/remote_lrmd_ra.c free_cmd(cmd); cmd 949 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = NULL; cmd 953 crmd/remote_lrmd_ra.c cmd = gIter->data; cmd 954 crmd/remote_lrmd_ra.c if (cmd->interval == interval && safe_str_eq(cmd->action, action)) { cmd 957 crmd/remote_lrmd_ra.c cmd = NULL; cmd 959 crmd/remote_lrmd_ra.c if (cmd) { cmd 960 crmd/remote_lrmd_ra.c list = g_list_remove(list, cmd); cmd 961 crmd/remote_lrmd_ra.c free_cmd(cmd); cmd 994 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = NULL; cmd 1011 crmd/remote_lrmd_ra.c cmd = ra_data->cur_cmd; cmd 1016 crmd/remote_lrmd_ra.c cmd = gIter->data; cmd 1017 crmd/remote_lrmd_ra.c if (cmd->interval == interval && safe_str_eq(cmd->action, "monitor")) { cmd 1023 crmd/remote_lrmd_ra.c cmd = gIter->data; cmd 1024 crmd/remote_lrmd_ra.c if (cmd->interval == interval && safe_str_eq(cmd->action, "monitor")) { cmd 1033 crmd/remote_lrmd_ra.c crm_trace("merging duplicate monitor cmd %s_monitor_%d", cmd->rsc_id, interval); cmd 1037 crmd/remote_lrmd_ra.c free(cmd->userdata); cmd 1038 crmd/remote_lrmd_ra.c cmd->userdata = strdup(userdata); cmd 1042 crmd/remote_lrmd_ra.c if (cmd->reported_success) { cmd 1043 crmd/remote_lrmd_ra.c cmd->start_time = time(NULL); cmd 1044 crmd/remote_lrmd_ra.c cmd->call_id = generate_callid(); cmd 1045 crmd/remote_lrmd_ra.c cmd->reported_success = 0; cmd 1051 crmd/remote_lrmd_ra.c if (cmd->interval_id) { cmd 1052 crmd/remote_lrmd_ra.c g_source_remove(cmd->interval_id); cmd 1053 crmd/remote_lrmd_ra.c cmd->interval_id = 0; cmd 1054 crmd/remote_lrmd_ra.c recurring_helper(cmd); cmd 1057 crmd/remote_lrmd_ra.c return cmd; cmd 1068 crmd/remote_lrmd_ra.c remote_ra_cmd_t *cmd = NULL; cmd 1085 crmd/remote_lrmd_ra.c cmd = handle_dup_monitor(ra_data, interval, userdata); cmd 1086 crmd/remote_lrmd_ra.c if (cmd) { cmd 1087 crmd/remote_lrmd_ra.c return cmd->call_id; cmd 1090 crmd/remote_lrmd_ra.c cmd = calloc(1, sizeof(remote_ra_cmd_t)); cmd 1091 crmd/remote_lrmd_ra.c cmd->owner = strdup(lrm_state->node_name); cmd 1092 crmd/remote_lrmd_ra.c cmd->rsc_id = strdup(rsc_id); cmd 1093 crmd/remote_lrmd_ra.c cmd->action = strdup(action); cmd 1094 crmd/remote_lrmd_ra.c cmd->userdata = strdup(userdata); cmd 1095 crmd/remote_lrmd_ra.c cmd->interval = interval; cmd 1096 crmd/remote_lrmd_ra.c cmd->timeout = timeout; cmd 1097 crmd/remote_lrmd_ra.c cmd->start_delay = start_delay; cmd 1098 crmd/remote_lrmd_ra.c cmd->params = params; cmd 1099 crmd/remote_lrmd_ra.c cmd->start_time = time(NULL); cmd 1101 crmd/remote_lrmd_ra.c cmd->call_id = generate_callid(); cmd 1103 crmd/remote_lrmd_ra.c if (cmd->start_delay) { cmd 1104 crmd/remote_lrmd_ra.c cmd->delay_id = g_timeout_add(cmd->start_delay, start_delay_helper, cmd); cmd 1107 crmd/remote_lrmd_ra.c ra_data->cmds = g_list_append(ra_data->cmds, cmd); cmd 1110 crmd/remote_lrmd_ra.c return cmd->call_id; cmd 65 crmd/te_actions.c xmlNode *cmd = NULL; cmd 71 crmd/te_actions.c cmd = create_request(task, pseudo->xml, node->uname, cmd 73 crmd/te_actions.c send_cluster_message(node, crm_msg_crmd, cmd, FALSE); cmd 74 crmd/te_actions.c free_xml(cmd); cmd 224 crmd/te_actions.c xmlNode *cmd = NULL; cmd 277 crmd/te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); cmd 281 crmd/te_actions.c crm_xml_add(cmd, XML_ATTR_TRANSITION_KEY, counter); cmd 283 crmd/te_actions.c rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_crmd, cmd, TRUE); cmd 285 crmd/te_actions.c free_xml(cmd); cmd 409 crmd/te_actions.c xmlNode *cmd = NULL; cmd 459 crmd/te_actions.c cmd = create_request(CRM_OP_INVOKE_LRM, rsc_op, router_node, cmd 465 crmd/te_actions.c .msg = cmd, cmd 482 crmd/te_actions.c rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_lrmd, cmd, TRUE); cmd 486 crmd/te_actions.c free_xml(cmd); cmd 123 fencing/commands.c static xmlNode *stonith_construct_async_reply(async_command_t * cmd, const char *output, cmd 216 fencing/commands.c free_async_command(async_command_t * cmd) cmd 218 fencing/commands.c if (!cmd) { cmd 222 fencing/commands.c if (cmd->delay_id) { cmd 223 fencing/commands.c g_source_remove(cmd->delay_id); cmd 226 fencing/commands.c cmd_list = g_list_remove(cmd_list, cmd); cmd 228 fencing/commands.c g_list_free_full(cmd->device_list, free); cmd 229 fencing/commands.c free(cmd->device); cmd 230 fencing/commands.c free(cmd->action); cmd 231 fencing/commands.c free(cmd->victim); cmd 232 fencing/commands.c free(cmd->remote_op_id); cmd 233 fencing/commands.c free(cmd->client); cmd 234 fencing/commands.c free(cmd->client_name); cmd 235 fencing/commands.c free(cmd->origin); cmd 236 fencing/commands.c free(cmd->mode); cmd 237 fencing/commands.c free(cmd->op); cmd 238 fencing/commands.c free(cmd); cmd 244 fencing/commands.c async_command_t *cmd = NULL; cmd 251 fencing/commands.c cmd = calloc(1, sizeof(async_command_t)); cmd 252 fencing/commands.c crm_element_value_int(msg, F_STONITH_CALLID, &(cmd->id)); cmd 253 fencing/commands.c crm_element_value_int(msg, F_STONITH_CALLOPTS, &(cmd->options)); cmd 254 fencing/commands.c crm_element_value_int(msg, F_STONITH_TIMEOUT, &(cmd->default_timeout)); cmd 255 fencing/commands.c cmd->timeout = cmd->default_timeout; cmd 257 fencing/commands.c cmd->origin = crm_element_value_copy(msg, F_ORIG); cmd 258 fencing/commands.c cmd->remote_op_id = crm_element_value_copy(msg, F_STONITH_REMOTE_OP_ID); cmd 259 fencing/commands.c cmd->client = crm_element_value_copy(msg, F_STONITH_CLIENTID); cmd 260 fencing/commands.c cmd->client_name = crm_element_value_copy(msg, F_STONITH_CLIENTNAME); cmd 261 fencing/commands.c cmd->op = crm_element_value_copy(msg, F_STONITH_OPERATION); cmd 262 fencing/commands.c cmd->action = strdup(action); cmd 263 fencing/commands.c cmd->victim = crm_element_value_copy(op, F_STONITH_TARGET); cmd 264 fencing/commands.c cmd->mode = crm_element_value_copy(op, F_STONITH_MODE); cmd 265 fencing/commands.c cmd->device = crm_element_value_copy(op, F_STONITH_DEVICE); cmd 267 fencing/commands.c CRM_CHECK(cmd->op != NULL, crm_log_xml_warn(msg, "NoOp"); free_async_command(cmd); return NULL); cmd 268 fencing/commands.c CRM_CHECK(cmd->client != NULL, crm_log_xml_warn(msg, "NoClient")); cmd 270 fencing/commands.c cmd->done_cb = st_child_done; cmd 271 fencing/commands.c cmd_list = g_list_append(cmd_list, cmd); cmd 272 fencing/commands.c return cmd; cmd 303 fencing/commands.c async_command_t *cmd = gIter->data; cmd 307 fencing/commands.c if (cmd->active_on == device) { cmd 320 fencing/commands.c async_command_t *cmd = NULL; cmd 338 fencing/commands.c cmd = first->data; cmd 339 fencing/commands.c if (cmd && cmd->delay_id) { cmd 342 fencing/commands.c cmd->action, cmd->victim ? " for node " : "", cmd->victim ? cmd->victim : "", cmd 343 fencing/commands.c device->id, cmd->start_delay); cmd 351 fencing/commands.c if (cmd == NULL) { cmd 357 fencing/commands.c if(safe_str_eq(cmd->action, "reboot")) { cmd 361 fencing/commands.c } else if(safe_str_eq(cmd->action, "off")) { cmd 366 fencing/commands.c crm_info("Faking success for %s watchdog operation", cmd->action); cmd 367 fencing/commands.c cmd->done_cb(0, 0, NULL, cmd); cmd 375 fencing/commands.c if (safe_str_eq(cmd->action,"stop")) { cmd 383 fencing/commands.c cmd->done_cb(0, exec_rc, NULL, cmd); cmd 389 fencing/commands.c action_str = cmd->action; cmd 390 fencing/commands.c if (safe_str_eq(cmd->action, "reboot") && is_not_set(device->flags, st_device_supports_reboot)) { cmd 397 fencing/commands.c cmd->victim, cmd 398 fencing/commands.c cmd->victim_nodeid, cmd 399 fencing/commands.c cmd->timeout, device->params, device->aliases); cmd 402 fencing/commands.c exec_rc = stonith_action_execute_async(action, (void *)cmd, cmd->done_cb); cmd 406 fencing/commands.c cmd->action, cmd->victim ? " for node " : "", cmd->victim ? cmd->victim : "", cmd 407 fencing/commands.c device->id, exec_rc, cmd->timeout); cmd 408 fencing/commands.c cmd->active_on = device; cmd 412 fencing/commands.c cmd->action, cmd->victim ? " for node " : "", cmd->victim ? cmd->victim : "", cmd 414 fencing/commands.c cmd->done_cb(0, exec_rc, NULL, cmd); cmd 428 fencing/commands.c async_command_t *cmd = data; cmd 431 fencing/commands.c cmd->delay_id = 0; cmd 432 fencing/commands.c device = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; cmd 442 fencing/commands.c schedule_stonith_command(async_command_t * cmd, stonith_device_t * device) cmd 447 fencing/commands.c CRM_CHECK(cmd != NULL, return); cmd 450 fencing/commands.c if (cmd->device) { cmd 451 fencing/commands.c free(cmd->device); cmd 454 fencing/commands.c if (device->include_nodeid && cmd->victim) { cmd 455 fencing/commands.c crm_node_t *node = crm_get_peer(0, cmd->victim); cmd 457 fencing/commands.c cmd->victim_nodeid = node->id; cmd 460 fencing/commands.c cmd->device = strdup(device->id); cmd 461 fencing/commands.c cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout); cmd 463 fencing/commands.c if (cmd->remote_op_id) { cmd 465 fencing/commands.c cmd->action, device->id, cmd->origin, cmd->remote_op_id, cmd->timeout); cmd 468 fencing/commands.c cmd->action, device->id, cmd->client, cmd->timeout); cmd 471 fencing/commands.c device->pending_ops = g_list_append(device->pending_ops, cmd); cmd 474 fencing/commands.c delay_max = get_action_delay_max(device, cmd->action); cmd 475 fencing/commands.c delay_base = get_action_delay_base(device, cmd->action); cmd 482 fencing/commands.c delay_base, delay_max, cmd->action, device->id); cmd 487 fencing/commands.c cmd->start_delay = cmd 492 fencing/commands.c cmd->action, device->id, cmd->start_delay, cmd->timeout, cmd 494 fencing/commands.c cmd->delay_id = cmd 495 fencing/commands.c g_timeout_add(cmd->start_delay, start_delay_helper, cmd); cmd 509 fencing/commands.c async_command_t *cmd = gIter->data; cmd 511 fencing/commands.c crm_warn("Removal of device '%s' purged operation %s", device->id, cmd->action); cmd 512 fencing/commands.c cmd->done_cb(0, -ENODEV, NULL, cmd); cmd 970 fencing/commands.c async_command_t *cmd = NULL; cmd 972 fencing/commands.c cmd = calloc(1, sizeof(async_command_t)); cmd 974 fencing/commands.c cmd->id = -1; cmd 975 fencing/commands.c cmd->default_timeout = timeout ? timeout : 60; cmd 976 fencing/commands.c cmd->timeout = cmd->default_timeout; cmd 977 fencing/commands.c cmd->action = strdup(action); cmd 978 fencing/commands.c cmd->victim = victim ? strdup(victim) : NULL; cmd 979 fencing/commands.c cmd->device = strdup(device->id); cmd 980 fencing/commands.c cmd->origin = strdup(origin); cmd 981 fencing/commands.c cmd->client = strdup(crm_system_name); cmd 982 fencing/commands.c cmd->client_name = strdup(crm_system_name); cmd 984 fencing/commands.c cmd->internal_user_data = internal_user_data; cmd 985 fencing/commands.c cmd->done_cb = done_cb; /* cmd, not internal_user_data, is passed to 'done_cb' as the userdata */ cmd 987 fencing/commands.c schedule_stonith_command(cmd, device); cmd 1011 fencing/commands.c async_command_t *cmd = user_data; cmd 1012 fencing/commands.c struct device_search_s *search = cmd->internal_user_data; cmd 1013 fencing/commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; cmd 1016 fencing/commands.c free_async_command(cmd); cmd 1042 fencing/commands.c async_command_t *cmd = user_data; cmd 1043 fencing/commands.c struct device_search_s *search = cmd->internal_user_data; cmd 1044 fencing/commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; cmd 1047 fencing/commands.c free_async_command(cmd); cmd 1485 fencing/commands.c async_command_t *cmd = NULL; cmd 1497 fencing/commands.c cmd = create_async_command(msg); cmd 1498 fencing/commands.c if (cmd == NULL) { cmd 1502 fencing/commands.c schedule_stonith_command(cmd, device); cmd 1977 fencing/commands.c log_operation(async_command_t * cmd, int rc, int pid, const char *next, const char *output) cmd 1983 fencing/commands.c if (cmd->victim != NULL) { cmd 1986 fencing/commands.c cmd->action, pid, cmd->id, cmd->client_name, cmd->victim, cmd->device, rc, cmd 1991 fencing/commands.c cmd->action, pid, cmd->device, rc, pcmk_strerror(rc), cmd 1997 fencing/commands.c char *prefix = crm_strdup_printf("%s:%d", cmd->device, pid); cmd 2005 fencing/commands.c stonith_send_async_reply(async_command_t * cmd, const char *output, int rc, GPid pid) cmd 2010 fencing/commands.c reply = stonith_construct_async_reply(cmd, output, NULL, rc); cmd 2012 fencing/commands.c if (safe_str_eq(cmd->action, "metadata")) { cmd 2014 fencing/commands.c crm_trace("Metadata query for %s", cmd->device); cmd 2017 fencing/commands.c } else if (crm_str_eq(cmd->action, "monitor", TRUE) || cmd 2018 fencing/commands.c crm_str_eq(cmd->action, "list", TRUE) || crm_str_eq(cmd->action, "status", TRUE)) { cmd 2019 fencing/commands.c crm_trace("Never broadcast %s replies", cmd->action); cmd 2021 fencing/commands.c } else if (!stand_alone && safe_str_eq(cmd->origin, cmd->victim) && safe_str_neq(cmd->action, "on")) { cmd 2022 fencing/commands.c crm_trace("Broadcast %s reply for %s", cmd->action, cmd->victim); cmd 2027 fencing/commands.c log_operation(cmd, rc, pid, NULL, output); cmd 2034 fencing/commands.c } else if (cmd->origin) { cmd 2035 fencing/commands.c crm_trace("Directed reply to %s", cmd->origin); cmd 2036 fencing/commands.c send_cluster_message(crm_get_peer(0, cmd->origin), crm_msg_stonith_ng, reply, FALSE); cmd 2040 fencing/commands.c (cmd->options & st_opt_sync_call) ? "" : "a-", cmd->client_name); cmd 2041 fencing/commands.c do_local_reply(reply, cmd->client, cmd->options & st_opt_sync_call, FALSE); cmd 2049 fencing/commands.c crm_xml_add(notify_data, F_STONITH_TARGET, cmd->victim); cmd 2050 fencing/commands.c crm_xml_add(notify_data, F_STONITH_OPERATION, cmd->op); cmd 2052 fencing/commands.c crm_xml_add(notify_data, F_STONITH_DEVICE, cmd->device); cmd 2053 fencing/commands.c crm_xml_add(notify_data, F_STONITH_REMOTE_OP_ID, cmd->remote_op_id); cmd 2054 fencing/commands.c crm_xml_add(notify_data, F_STONITH_ORIGIN, cmd->client); cmd 2065 fencing/commands.c async_command_t * cmd = user_data; cmd 2066 fencing/commands.c stonith_device_t *dev = g_hash_table_lookup(device_list, cmd->device); cmd 2068 fencing/commands.c log_operation(cmd, rc, pid, NULL, output); cmd 2070 fencing/commands.c cmd->active_on = NULL; cmd 2075 fencing/commands.c crm_trace("Device %s does not exist", cmd->device); cmd 2084 fencing/commands.c cancel_stonith_command(async_command_t * cmd) cmd 2088 fencing/commands.c CRM_CHECK(cmd != NULL, return); cmd 2090 fencing/commands.c if (!cmd->device) { cmd 2094 fencing/commands.c device = g_hash_table_lookup(device_list, cmd->device); cmd 2097 fencing/commands.c crm_trace("Cancel scheduled %s on %s", cmd->action, device->id); cmd 2098 fencing/commands.c device->pending_ops = g_list_remove(device->pending_ops, cmd); cmd 2107 fencing/commands.c async_command_t *cmd = user_data; cmd 2112 fencing/commands.c CRM_CHECK(cmd != NULL, return); cmd 2114 fencing/commands.c cmd->active_on = NULL; cmd 2117 fencing/commands.c device = g_hash_table_lookup(device_list, cmd->device); cmd 2120 fencing/commands.c (safe_str_eq(cmd->action, "list") || cmd 2121 fencing/commands.c safe_str_eq(cmd->action, "monitor") || safe_str_eq(cmd->action, "status"))) { cmd 2130 fencing/commands.c cmd->action, cmd->device, rc, g_list_length(cmd->device_next)); cmd 2135 fencing/commands.c for (iter = cmd->device_next; iter != NULL; iter = iter->next) { cmd 2138 fencing/commands.c if (next_device != NULL && is_action_required(cmd->action, next_device)) { cmd 2139 fencing/commands.c cmd->device_next = iter->next; cmd 2145 fencing/commands.c } else if (rc != 0 && cmd->device_next && (is_action_required(cmd->action, device) == FALSE)) { cmd 2148 fencing/commands.c next_device = g_hash_table_lookup(device_list, cmd->device_next->data); cmd 2149 fencing/commands.c cmd->device_next = cmd->device_next->next; cmd 2154 fencing/commands.c log_operation(cmd, rc, pid, cmd->device, output); cmd 2156 fencing/commands.c schedule_stonith_command(cmd, next_device); cmd 2158 fencing/commands.c cmd = NULL; cmd 2162 fencing/commands.c stonith_send_async_reply(cmd, output, rc, pid); cmd 2177 fencing/commands.c if (cmd == cmd_other) { cmd 2187 fencing/commands.c if (safe_str_eq(cmd->client, cmd_other->client) || cmd 2188 fencing/commands.c safe_str_neq(cmd->victim, cmd_other->victim) || cmd 2189 fencing/commands.c safe_str_neq(cmd->action, cmd_other->action) || cmd 2190 fencing/commands.c safe_str_neq(cmd->device, cmd_other->device)) { cmd 2205 fencing/commands.c cmd_other->action, cmd_other->victim, cmd_other->client_name, cmd->client_name); cmd 2217 fencing/commands.c free_async_command(cmd); cmd 2237 fencing/commands.c async_command_t *cmd = user_data; cmd 2240 fencing/commands.c crm_info("Found %d matching devices for '%s'", g_list_length(devices), cmd->victim); cmd 2248 fencing/commands.c cmd->device_list = devices; cmd 2249 fencing/commands.c cmd->device_next = devices->next; cmd 2256 fencing/commands.c schedule_stonith_command(cmd, device); cmd 2262 fencing/commands.c stonith_send_async_reply(cmd, NULL, -ENODEV, 0); cmd 2264 fencing/commands.c free_async_command(cmd); cmd 2273 fencing/commands.c async_command_t *cmd = create_async_command(msg); cmd 2276 fencing/commands.c if (cmd == NULL) { cmd 2287 fencing/commands.c schedule_stonith_command(cmd, device); cmd 2293 fencing/commands.c if (cmd->options & st_opt_cs_nodeid) { cmd 2303 fencing/commands.c get_capable_devices(host, cmd->action, cmd->default_timeout, cmd 2304 fencing/commands.c TRUE, cmd, stonith_fence_get_devices_cb); cmd 2353 fencing/commands.c stonith_construct_async_reply(async_command_t * cmd, const char *output, xmlNode * data, int rc) cmd 2363 fencing/commands.c crm_xml_add(reply, F_STONITH_OPERATION, cmd->op); cmd 2364 fencing/commands.c crm_xml_add(reply, F_STONITH_DEVICE, cmd->device); cmd 2365 fencing/commands.c crm_xml_add(reply, F_STONITH_REMOTE_OP_ID, cmd->remote_op_id); cmd 2366 fencing/commands.c crm_xml_add(reply, F_STONITH_CLIENTID, cmd->client); cmd 2367 fencing/commands.c crm_xml_add(reply, F_STONITH_CLIENTNAME, cmd->client_name); cmd 2368 fencing/commands.c crm_xml_add(reply, F_STONITH_TARGET, cmd->victim); cmd 2369 fencing/commands.c crm_xml_add(reply, F_STONITH_ACTION, cmd->op); cmd 2370 fencing/commands.c crm_xml_add(reply, F_STONITH_ORIGIN, cmd->origin); cmd 2371 fencing/commands.c crm_xml_add_int(reply, F_STONITH_CALLID, cmd->id); cmd 2372 fencing/commands.c crm_xml_add_int(reply, F_STONITH_CALLOPTS, cmd->options); cmd 2627 fencing/commands.c async_command_t *cmd = create_async_command(request); cmd 2628 fencing/commands.c xmlNode *reply = stonith_construct_async_reply(cmd, NULL, NULL, 0); cmd 2631 fencing/commands.c crm_notice("Broadcasting manual fencing confirmation for node %s", cmd->victim); cmd 2634 fencing/commands.c free_async_command(cmd); cmd 154 fencing/test.c #define single_test(cmd, str, num_notifications, expected_rc) \ cmd 157 fencing/test.c rc = cmd; \ cmd 98 include/crm_internal.h int crm_help(char cmd, int exit_code); cmd 1104 lib/common/utils.c crm_help(char cmd, int exit_code) cmd 1109 lib/common/utils.c if (cmd == 'v' || cmd == '$') { cmd 1115 lib/common/utils.c if (cmd == '!') { cmd 435 libltdl/loaders/dyld.c if (LC_ID_DYLIB == lc->cmd) cmd 483 libltdl/loaders/dyld.c if ((LC_LOAD_DYLIB == lc->cmd) || (LC_LOAD_WEAK_DYLIB == lc->cmd)) cmd 92 lrmd/lrmd.c static void cmd_finalize(lrmd_cmd_t * cmd, lrmd_rsc_t * rsc); cmd 97 lrmd/lrmd.c log_finished(lrmd_cmd_t * cmd, int exec_time, int queue_time) cmd 102 lrmd/lrmd.c if (cmd->last_pid) { cmd 103 lrmd/lrmd.c snprintf(pid_str, 32, "%d", cmd->last_pid); cmd 106 lrmd/lrmd.c if (safe_str_eq(cmd->action, "monitor")) { cmd 112 lrmd/lrmd.c cmd->rsc_id, cmd->action, cmd->call_id, cmd->last_pid ? "pid:" : "", pid_str, cmd 113 lrmd/lrmd.c cmd->exec_rc, exec_time, queue_time); cmd 116 lrmd/lrmd.c cmd->rsc_id, cmd 117 lrmd/lrmd.c cmd->action, cmd->call_id, cmd->last_pid ? "pid:" : "", pid_str, cmd->exec_rc); cmd 122 lrmd/lrmd.c log_execute(lrmd_cmd_t * cmd) cmd 126 lrmd/lrmd.c if (safe_str_eq(cmd->action, "monitor")) { cmd 131 lrmd/lrmd.c cmd->rsc_id, cmd->action, cmd->call_id); cmd 169 lrmd/lrmd.c lrmd_cmd_t *cmd = NULL; cmd 171 lrmd/lrmd.c cmd = calloc(1, sizeof(lrmd_cmd_t)); cmd 174 lrmd/lrmd.c cmd->call_opts = call_options; cmd 175 lrmd/lrmd.c cmd->client_id = strdup(client->id); cmd 177 lrmd/lrmd.c crm_element_value_int(msg, F_LRMD_CALLID, &cmd->call_id); cmd 178 lrmd/lrmd.c crm_element_value_int(rsc_xml, F_LRMD_RSC_INTERVAL, &cmd->interval); cmd 179 lrmd/lrmd.c crm_element_value_int(rsc_xml, F_LRMD_TIMEOUT, &cmd->timeout); cmd 180 lrmd/lrmd.c crm_element_value_int(rsc_xml, F_LRMD_RSC_START_DELAY, &cmd->start_delay); cmd 181 lrmd/lrmd.c cmd->timeout_orig = cmd->timeout; cmd 183 lrmd/lrmd.c cmd->origin = crm_element_value_copy(rsc_xml, F_LRMD_ORIGIN); cmd 184 lrmd/lrmd.c cmd->action = crm_element_value_copy(rsc_xml, F_LRMD_RSC_ACTION); cmd 185 lrmd/lrmd.c cmd->userdata_str = crm_element_value_copy(rsc_xml, F_LRMD_RSC_USERDATA_STR); cmd 186 lrmd/lrmd.c cmd->rsc_id = crm_element_value_copy(rsc_xml, F_LRMD_RSC_ID); cmd 188 lrmd/lrmd.c cmd->params = xml2list(rsc_xml); cmd 189 lrmd/lrmd.c cmd->isolation_wrapper = g_hash_table_lookup(cmd->params, "CRM_meta_isolation_wrapper"); cmd 191 lrmd/lrmd.c if (cmd->isolation_wrapper) { cmd 192 lrmd/lrmd.c if (g_hash_table_lookup(cmd->params, "CRM_meta_isolation_instance") == NULL) { cmd 193 lrmd/lrmd.c g_hash_table_insert(cmd->params, strdup("CRM_meta_isolation_instance"), strdup(rsc->rsc_id)); cmd 196 lrmd/lrmd.c g_hash_table_insert(cmd->params, strdup("CRM_meta_provider"), strdup(rsc->provider)); cmd 198 lrmd/lrmd.c g_hash_table_insert(cmd->params, strdup("CRM_meta_class"), strdup(rsc->class)); cmd 199 lrmd/lrmd.c g_hash_table_insert(cmd->params, strdup("CRM_meta_type"), strdup(rsc->type)); cmd 202 lrmd/lrmd.c if (safe_str_eq(g_hash_table_lookup(cmd->params, "CRM_meta_on_fail"), "block")) { cmd 203 lrmd/lrmd.c crm_debug("Setting flag to leave pid group on timeout and only kill action pid for %s_%s_%d", cmd->rsc_id, cmd->action, cmd->interval); cmd 204 lrmd/lrmd.c cmd->service_flags |= SVC_ACTION_LEAVE_GROUP; cmd 206 lrmd/lrmd.c return cmd; cmd 210 lrmd/lrmd.c free_lrmd_cmd(lrmd_cmd_t * cmd) cmd 212 lrmd/lrmd.c if (cmd->stonith_recurring_id) { cmd 213 lrmd/lrmd.c g_source_remove(cmd->stonith_recurring_id); cmd 215 lrmd/lrmd.c if (cmd->delay_id) { cmd 216 lrmd/lrmd.c g_source_remove(cmd->delay_id); cmd 218 lrmd/lrmd.c if (cmd->params) { cmd 219 lrmd/lrmd.c g_hash_table_destroy(cmd->params); cmd 221 lrmd/lrmd.c free(cmd->origin); cmd 222 lrmd/lrmd.c free(cmd->action); cmd 223 lrmd/lrmd.c free(cmd->real_action); cmd 224 lrmd/lrmd.c free(cmd->userdata_str); cmd 225 lrmd/lrmd.c free(cmd->rsc_id); cmd 226 lrmd/lrmd.c free(cmd->output); cmd 227 lrmd/lrmd.c free(cmd->exit_reason); cmd 228 lrmd/lrmd.c free(cmd->client_id); cmd 229 lrmd/lrmd.c free(cmd); cmd 235 lrmd/lrmd.c lrmd_cmd_t *cmd = data; cmd 238 lrmd/lrmd.c cmd->stonith_recurring_id = 0; cmd 240 lrmd/lrmd.c if (!cmd->rsc_id) { cmd 244 lrmd/lrmd.c rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id); cmd 249 lrmd/lrmd.c rsc->recurring_ops = g_list_remove(rsc->recurring_ops, cmd); cmd 250 lrmd/lrmd.c rsc->pending_ops = g_list_append(rsc->pending_ops, cmd); cmd 252 lrmd/lrmd.c ftime(&cmd->t_queue); cmd 253 lrmd/lrmd.c if (cmd->t_first_queue.time == 0) { cmd 254 lrmd/lrmd.c cmd->t_first_queue = cmd->t_queue; cmd 265 lrmd/lrmd.c lrmd_cmd_t *cmd = data; cmd 268 lrmd/lrmd.c cmd->delay_id = 0; cmd 269 lrmd/lrmd.c rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL; cmd 279 lrmd/lrmd.c merge_recurring_duplicate(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd) cmd 285 lrmd/lrmd.c if (cmd->interval == 0) { cmd 291 lrmd/lrmd.c if (safe_str_eq(cmd->action, dup->action) && cmd->interval == dup->interval) { cmd 301 lrmd/lrmd.c if (safe_str_eq(cmd->action, dup->action) && cmd->interval == dup->interval) { cmd 320 lrmd/lrmd.c dup->userdata_str = cmd->userdata_str; cmd 321 lrmd/lrmd.c cmd->userdata_str = NULL; cmd 322 lrmd/lrmd.c dup->call_id = cmd->call_id; cmd 327 lrmd/lrmd.c g_source_remove(cmd->stonith_recurring_id); cmd 328 lrmd/lrmd.c cmd->stonith_recurring_id = 0; cmd 329 lrmd/lrmd.c stonith_recurring_op_helper(cmd); cmd 336 lrmd/lrmd.c free_lrmd_cmd(cmd); cmd 342 lrmd/lrmd.c schedule_lrmd_cmd(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd) cmd 345 lrmd/lrmd.c CRM_CHECK(cmd != NULL, return); cmd 348 lrmd/lrmd.c crm_trace("Scheduling %s on %s", cmd->action, rsc->rsc_id); cmd 350 lrmd/lrmd.c dup_processed = merge_recurring_duplicate(rsc, cmd); cmd 357 lrmd/lrmd.c if (rsc && safe_str_eq(cmd->action, "stop")) { cmd 361 lrmd/lrmd.c rsc->pending_ops = g_list_append(rsc->pending_ops, cmd); cmd 363 lrmd/lrmd.c ftime(&cmd->t_queue); cmd 364 lrmd/lrmd.c if (cmd->t_first_queue.time == 0) { cmd 365 lrmd/lrmd.c cmd->t_first_queue = cmd->t_queue; cmd 370 lrmd/lrmd.c if (cmd->start_delay) { cmd 371 lrmd/lrmd.c cmd->delay_id = g_timeout_add(cmd->start_delay, start_delay_helper, cmd); cmd 463 lrmd/lrmd.c cmd_original_times(lrmd_cmd_t * cmd) cmd 465 lrmd/lrmd.c cmd->t_run = cmd->t_first_run; cmd 466 lrmd/lrmd.c cmd->t_queue = cmd->t_first_queue; cmd 471 lrmd/lrmd.c send_cmd_complete_notify(lrmd_cmd_t * cmd) cmd 478 lrmd/lrmd.c exec_time = time_diff_ms(NULL, &cmd->t_run); cmd 479 lrmd/lrmd.c queue_time = time_diff_ms(&cmd->t_run, &cmd->t_queue); cmd 482 lrmd/lrmd.c log_finished(cmd, exec_time, queue_time); cmd 487 lrmd/lrmd.c if (cmd->first_notify_sent && (cmd->call_opts & lrmd_opt_notify_changes_only)) { cmd 488 lrmd/lrmd.c if (cmd->last_notify_rc == cmd->exec_rc && cmd 489 lrmd/lrmd.c cmd->last_notify_op_status == cmd->lrmd_op_status) { cmd 497 lrmd/lrmd.c cmd->first_notify_sent = 1; cmd 498 lrmd/lrmd.c cmd->last_notify_rc = cmd->exec_rc; cmd 499 lrmd/lrmd.c cmd->last_notify_op_status = cmd->lrmd_op_status; cmd 504 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_TIMEOUT, cmd->timeout); cmd 505 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_RSC_INTERVAL, cmd->interval); cmd 506 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_RSC_START_DELAY, cmd->start_delay); cmd 507 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_EXEC_RC, cmd->exec_rc); cmd 508 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_OP_STATUS, cmd->lrmd_op_status); cmd 509 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_CALLID, cmd->call_id); cmd 510 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_RSC_DELETED, cmd->rsc_deleted); cmd 513 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_RSC_RUN_TIME, cmd->t_run.time); cmd 514 lrmd/lrmd.c crm_xml_add_int(notify, F_LRMD_RSC_RCCHANGE_TIME, cmd->t_rcchange.time); cmd 520 lrmd/lrmd.c crm_xml_add(notify, F_LRMD_RSC_ID, cmd->rsc_id); cmd 521 lrmd/lrmd.c if(cmd->real_action) { cmd 522 lrmd/lrmd.c crm_xml_add(notify, F_LRMD_RSC_ACTION, cmd->real_action); cmd 524 lrmd/lrmd.c crm_xml_add(notify, F_LRMD_RSC_ACTION, cmd->action); cmd 526 lrmd/lrmd.c crm_xml_add(notify, F_LRMD_RSC_USERDATA_STR, cmd->userdata_str); cmd 527 lrmd/lrmd.c crm_xml_add(notify, F_LRMD_RSC_OUTPUT, cmd->output); cmd 528 lrmd/lrmd.c crm_xml_add(notify, F_LRMD_RSC_EXIT_REASON, cmd->exit_reason); cmd 530 lrmd/lrmd.c if (cmd->params) { cmd 537 lrmd/lrmd.c g_hash_table_iter_init(&iter, cmd->params); cmd 542 lrmd/lrmd.c if (cmd->client_id && (cmd->call_opts & lrmd_opt_notify_orig_only)) { cmd 543 lrmd/lrmd.c crm_client_t *client = crm_client_get_by_id(cmd->client_id); cmd 581 lrmd/lrmd.c cmd_reset(lrmd_cmd_t * cmd) cmd 583 lrmd/lrmd.c cmd->lrmd_op_status = 0; cmd 584 lrmd/lrmd.c cmd->last_pid = 0; cmd 585 lrmd/lrmd.c memset(&cmd->t_run, 0, sizeof(cmd->t_run)); cmd 586 lrmd/lrmd.c memset(&cmd->t_queue, 0, sizeof(cmd->t_queue)); cmd 587 lrmd/lrmd.c free(cmd->exit_reason); cmd 588 lrmd/lrmd.c cmd->exit_reason = NULL; cmd 589 lrmd/lrmd.c free(cmd->output); cmd 590 lrmd/lrmd.c cmd->output = NULL; cmd 595 lrmd/lrmd.c cmd_finalize(lrmd_cmd_t * cmd, lrmd_rsc_t * rsc) cmd 597 lrmd/lrmd.c crm_trace("Resource operation rsc:%s action:%s completed (%p %p)", cmd->rsc_id, cmd->action, cmd 598 lrmd/lrmd.c rsc ? rsc->active : NULL, cmd); cmd 600 lrmd/lrmd.c if (rsc && (rsc->active == cmd)) { cmd 606 lrmd/lrmd.c cmd->rsc_deleted = 1; cmd 610 lrmd/lrmd.c cmd->timeout = cmd->timeout_orig; cmd 612 lrmd/lrmd.c send_cmd_complete_notify(cmd); cmd 614 lrmd/lrmd.c if (cmd->interval && (cmd->lrmd_op_status == PCMK_LRM_OP_CANCELLED)) { cmd 616 lrmd/lrmd.c rsc->recurring_ops = g_list_remove(rsc->recurring_ops, cmd); cmd 617 lrmd/lrmd.c rsc->pending_ops = g_list_remove(rsc->pending_ops, cmd); cmd 619 lrmd/lrmd.c free_lrmd_cmd(cmd); cmd 620 lrmd/lrmd.c } else if (cmd->interval == 0) { cmd 622 lrmd/lrmd.c rsc->pending_ops = g_list_remove(rsc->pending_ops, cmd); cmd 624 lrmd/lrmd.c free_lrmd_cmd(cmd); cmd 627 lrmd/lrmd.c cmd_reset(cmd); cmd 762 lrmd/lrmd.c lrmd_cmd_t *cmd = action->cb_data; cmd 765 lrmd/lrmd.c return hb2uniform_rc(cmd->action, action->rc, action->stdout_data); cmd 768 lrmd/lrmd.c return get_uniform_rc(action->standard, cmd->action, action->rc); cmd 859 lrmd/lrmd.c lrmd_cmd_t *cmd = action->cb_data; cmd 864 lrmd/lrmd.c if (!cmd) { cmd 869 lrmd/lrmd.c if (cmd->exec_rc != action->rc) { cmd 870 lrmd/lrmd.c ftime(&cmd->t_rcchange); cmd 874 lrmd/lrmd.c cmd->last_pid = action->pid; cmd 875 lrmd/lrmd.c cmd->exec_rc = action_get_uniform_rc(action); cmd 876 lrmd/lrmd.c cmd->lrmd_op_status = action->status; cmd 877 lrmd/lrmd.c rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL; cmd 886 lrmd/lrmd.c if(cmd->exec_rc == PCMK_OCF_OK && safe_str_eq(cmd->action, "start")) { cmd 897 lrmd/lrmd.c cmd->real_action = cmd->action; cmd 898 lrmd/lrmd.c cmd->action = strdup("monitor"); cmd 900 lrmd/lrmd.c } else if(cmd->exec_rc == PCMK_OCF_OK && safe_str_eq(cmd->action, "stop")) { cmd 902 lrmd/lrmd.c cmd->real_action = cmd->action; cmd 903 lrmd/lrmd.c cmd->action = strdup("monitor"); cmd 905 lrmd/lrmd.c } else if(cmd->real_action) { cmd 907 lrmd/lrmd.c if(cmd->lrmd_op_status == PCMK_LRM_OP_DONE && cmd->exec_rc == PCMK_OCF_PENDING) { cmd 909 lrmd/lrmd.c } else if(cmd->exec_rc == PCMK_OCF_OK && safe_str_eq(cmd->real_action, "stop")) { cmd 914 lrmd/lrmd.c int time_sum = time_diff_ms(NULL, &cmd->t_first_run); cmd 915 lrmd/lrmd.c int timeout_left = cmd->timeout_orig - time_sum; cmd 918 lrmd/lrmd.c cmd->rsc_id, cmd->real_action, time_sum, timeout_left, services_ocf_exitcode_str(cmd->exec_rc), cmd->exec_rc); cmd 919 lrmd/lrmd.c cmd_original_times(cmd); cmd 922 lrmd/lrmd.c if(cmd->lrmd_op_status == PCMK_LRM_OP_DONE && cmd->exec_rc == PCMK_OCF_NOT_RUNNING && safe_str_eq(cmd->real_action, "stop")) { cmd 923 lrmd/lrmd.c cmd->exec_rc = PCMK_OCF_OK; cmd 931 lrmd/lrmd.c if (safe_str_eq(cmd->action, "monitor") && cmd 932 lrmd/lrmd.c cmd->interval == 0 && cmd->exec_rc == PCMK_OCF_OK) { cmd 934 lrmd/lrmd.c cmd->exec_rc = PCMK_OCF_NOT_RUNNING; cmd 936 lrmd/lrmd.c } else if (safe_str_eq(cmd->action, "start") && cmd->exec_rc != PCMK_OCF_OK) { cmd 949 lrmd/lrmd.c int time_sum = time_diff_ms(NULL, &cmd->t_first_run); cmd 950 lrmd/lrmd.c int timeout_left = cmd->timeout_orig - time_sum; cmd 951 lrmd/lrmd.c int delay = cmd->timeout_orig / 10; cmd 959 lrmd/lrmd.c cmd->start_delay = delay; cmd 960 lrmd/lrmd.c cmd->timeout = timeout_left; cmd 962 lrmd/lrmd.c if(cmd->exec_rc == PCMK_OCF_OK) { cmd 964 lrmd/lrmd.c cmd->rsc_id, cmd->real_action, time_sum, timeout_left, delay); cmd 966 lrmd/lrmd.c } else if(cmd->exec_rc == PCMK_OCF_PENDING) { cmd 968 lrmd/lrmd.c cmd->rsc_id, cmd->action, time_sum, timeout_left, delay); cmd 972 lrmd/lrmd.c cmd->rsc_id, cmd->action, services_ocf_exitcode_str(cmd->exec_rc), cmd->exec_rc, time_sum, timeout_left, delay); cmd 975 lrmd/lrmd.c cmd_reset(cmd); cmd 979 lrmd/lrmd.c schedule_lrmd_cmd(rsc, cmd); cmd 986 lrmd/lrmd.c cmd->rsc_id, cmd->real_action?cmd->real_action:cmd->action, cmd->exec_rc, time_sum, timeout_left); cmd 987 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_TIMEOUT; cmd 988 lrmd/lrmd.c cmd->exec_rc = PCMK_OCF_TIMEOUT; cmd 989 lrmd/lrmd.c cmd_original_times(cmd); cmd 995 lrmd/lrmd.c cmd->output = strdup(action->stderr_data); cmd 996 lrmd/lrmd.c cmd->exit_reason = parse_exit_reason(action->stderr_data); cmd 999 lrmd/lrmd.c cmd->output = strdup(action->stdout_data); cmd 1002 lrmd/lrmd.c cmd_finalize(cmd, rsc); cmd 1006 lrmd/lrmd.c stonith_action_complete(lrmd_cmd_t * cmd, int rc) cmd 1008 lrmd/lrmd.c int recurring = cmd->interval; cmd 1011 lrmd/lrmd.c cmd->exec_rc = get_uniform_rc(PCMK_RESOURCE_CLASS_STONITH, cmd->action, rc); cmd 1013 lrmd/lrmd.c rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id); cmd 1015 lrmd/lrmd.c if (cmd->lrmd_op_status == PCMK_LRM_OP_CANCELLED) { cmd 1019 lrmd/lrmd.c } else if (rc == -ENODEV && safe_str_eq(cmd->action, "monitor")) { cmd 1021 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_DONE; cmd 1022 lrmd/lrmd.c cmd->exec_rc = PCMK_OCF_NOT_RUNNING; cmd 1028 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_NOTSUPPORTED; cmd 1031 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_TIMEOUT; cmd 1035 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_ERROR; cmd 1039 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_DONE; cmd 1040 lrmd/lrmd.c if (safe_str_eq(cmd->action, "start") && rsc) { cmd 1046 lrmd/lrmd.c if (cmd->stonith_recurring_id) { cmd 1047 lrmd/lrmd.c g_source_remove(cmd->stonith_recurring_id); cmd 1049 lrmd/lrmd.c cmd->stonith_recurring_id = g_timeout_add(cmd->interval, stonith_recurring_op_helper, cmd); cmd 1052 lrmd/lrmd.c cmd_finalize(cmd, rsc); cmd 1099 lrmd/lrmd.c lrmd_rsc_execute_stonith(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd) cmd 1107 lrmd/lrmd.c cmd->exec_rc = get_uniform_rc(PCMK_RESOURCE_CLASS_STONITH, cmd->action, cmd 1109 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_ERROR; cmd 1110 lrmd/lrmd.c cmd_finalize(cmd, rsc); cmd 1114 lrmd/lrmd.c if (safe_str_eq(cmd->action, "start")) { cmd 1119 lrmd/lrmd.c if (cmd->params) { cmd 1122 lrmd/lrmd.c g_hash_table_iter_init(&iter, cmd->params); cmd 1134 lrmd/lrmd.c cmd->rsc_id, cmd 1141 lrmd/lrmd.c } else if (safe_str_eq(cmd->action, "stop")) { cmd 1142 lrmd/lrmd.c rc = stonith_api->cmds->remove_device(stonith_api, st_opt_sync_call, cmd->rsc_id); cmd 1144 lrmd/lrmd.c } else if (safe_str_eq(cmd->action, "monitor")) { cmd 1145 lrmd/lrmd.c if (cmd->interval) { cmd 1156 lrmd/lrmd.c rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id, cmd->timeout / 1000); cmd 1162 lrmd/lrmd.c cmd, "lrmd_stonith_callback", lrmd_stonith_callback); cmd 1166 lrmd/lrmd.c rsc->active = cmd; cmd 1173 lrmd/lrmd.c stonith_action_complete(cmd, rc); cmd 1178 lrmd/lrmd.c lrmd_rsc_execute_service_lib(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd) cmd 1184 lrmd/lrmd.c CRM_ASSERT(cmd); cmd 1187 lrmd/lrmd.c rsc->rsc_id, cmd->action, rsc->class, rsc->provider, rsc->type); cmd 1192 lrmd/lrmd.c && safe_str_eq(cmd->action, "stop")) { cmd 1194 lrmd/lrmd.c cmd->exec_rc = PCMK_OCF_OK; cmd 1199 lrmd/lrmd.c params_copy = crm_str_table_dup(cmd->params); cmd 1201 lrmd/lrmd.c if (cmd->isolation_wrapper) { cmd 1206 lrmd/lrmd.c cmd->isolation_wrapper, cmd 1207 lrmd/lrmd.c cmd->action, /*action will be normalized in wrapper*/ cmd 1208 lrmd/lrmd.c cmd->interval, cmd 1209 lrmd/lrmd.c cmd->timeout, cmd 1211 lrmd/lrmd.c cmd->service_flags); cmd 1217 lrmd/lrmd.c normalize_action_name(rsc, cmd->action), cmd 1218 lrmd/lrmd.c cmd->interval, cmd 1219 lrmd/lrmd.c cmd->timeout, cmd 1221 lrmd/lrmd.c cmd->service_flags); cmd 1225 lrmd/lrmd.c crm_err("Failed to create action, action:%s on resource %s", cmd->action, rsc->rsc_id); cmd 1226 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_ERROR; cmd 1230 lrmd/lrmd.c action->cb_data = cmd; cmd 1242 lrmd/lrmd.c cmd->exec_rc = action->rc; cmd 1244 lrmd/lrmd.c cmd->lrmd_op_status = action->status; cmd 1246 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_ERROR; cmd 1252 lrmd/lrmd.c cmd_finalize(cmd, rsc); cmd 1259 lrmd/lrmd.c lrmd_cmd_t *cmd = NULL; cmd 1271 lrmd/lrmd.c cmd = first->data; cmd 1272 lrmd/lrmd.c if (cmd->delay_id) { cmd 1275 lrmd/lrmd.c cmd->rsc_id, cmd->action, cmd->start_delay); cmd 1282 lrmd/lrmd.c if (cmd->t_first_run.time == 0) { cmd 1283 lrmd/lrmd.c ftime(&cmd->t_first_run); cmd 1285 lrmd/lrmd.c ftime(&cmd->t_run); cmd 1289 lrmd/lrmd.c if (!cmd) { cmd 1294 lrmd/lrmd.c rsc->active = cmd; /* only one op at a time for a rsc */ cmd 1295 lrmd/lrmd.c if (cmd->interval) { cmd 1296 lrmd/lrmd.c rsc->recurring_ops = g_list_append(rsc->recurring_ops, cmd); cmd 1299 lrmd/lrmd.c log_execute(cmd); cmd 1302 lrmd/lrmd.c lrmd_rsc_execute_stonith(rsc, cmd); cmd 1304 lrmd/lrmd.c lrmd_rsc_execute_service_lib(rsc, cmd); cmd 1326 lrmd/lrmd.c lrmd_cmd_t *cmd = gIter->data; cmd 1329 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_CANCELLED; cmd 1330 lrmd/lrmd.c cmd_finalize(cmd, NULL); cmd 1340 lrmd/lrmd.c lrmd_cmd_t *cmd = gIter->data; cmd 1343 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_CANCELLED; cmd 1348 lrmd/lrmd.c if (rsc->active != cmd) { cmd 1349 lrmd/lrmd.c cmd_finalize(cmd, NULL); cmd 1356 lrmd/lrmd.c services_action_cancel(rsc->rsc_id, normalize_action_name(rsc, cmd->action), cmd->interval); cmd 1508 lrmd/lrmd.c lrmd_cmd_t *cmd = NULL; cmd 1522 lrmd/lrmd.c cmd = create_lrmd_cmd(request, client, rsc); cmd 1523 lrmd/lrmd.c call_id = cmd->call_id; cmd 1527 lrmd/lrmd.c schedule_lrmd_cmd(rsc, cmd); cmd 1554 lrmd/lrmd.c lrmd_cmd_t *cmd = gIter->data; cmd 1556 lrmd/lrmd.c if (safe_str_eq(cmd->action, action) && cmd->interval == interval) { cmd 1557 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_CANCELLED; cmd 1558 lrmd/lrmd.c cmd_finalize(cmd, rsc); cmd 1567 lrmd/lrmd.c lrmd_cmd_t *cmd = gIter->data; cmd 1569 lrmd/lrmd.c if (safe_str_eq(cmd->action, action) && cmd->interval == interval) { cmd 1570 lrmd/lrmd.c cmd->lrmd_op_status = PCMK_LRM_OP_CANCELLED; cmd 1571 lrmd/lrmd.c if (rsc->active != cmd) { cmd 1572 lrmd/lrmd.c cmd_finalize(cmd, rsc); cmd 1611 lrmd/lrmd.c lrmd_cmd_t *cmd = cmd_iter->data; cmd 1613 lrmd/lrmd.c if (cmd->interval == 0) { cmd 1617 lrmd/lrmd.c if (client_id && safe_str_neq(cmd->client_id, client_id)) { cmd 1621 lrmd/lrmd.c cancel_op(rsc->rsc_id, cmd->action, cmd->interval); cmd 993 mcp/pacemaker.c xmlNode *cmd = cmd 997 mcp/pacemaker.c crm_ipc_send(old_instance, cmd, 0, 0, NULL); cmd 998 mcp/pacemaker.c free_xml(cmd); cmd 44 tools/cib_shadow.c void usage(const char *cmd, int exit_status); cmd 46 tools/cibadmin.c void usage(const char *cmd, int exit_status); cmd 138 tools/crm_node.c xmlNode *cmd = NULL; cmd 179 tools/crm_node.c cmd = create_xml_node(NULL, __FUNCTION__); cmd 181 tools/crm_node.c crm_xml_add(cmd, F_TYPE, T_ATTRD); cmd 182 tools/crm_node.c crm_xml_add(cmd, F_ORIG, crm_system_name); cmd 184 tools/crm_node.c crm_xml_add(cmd, F_ATTRD_TASK, ATTRD_OP_PEER_REMOVE); cmd 185 tools/crm_node.c crm_xml_add(cmd, F_ATTRD_HOST, name); cmd 190 tools/crm_node.c crm_xml_add(cmd, F_ATTRD_HOST_ID, buffer); cmd 195 tools/crm_node.c cmd = create_request(CRM_OP_RM_NODE_CACHE, cmd 198 tools/crm_node.c crm_xml_set_id(cmd, "%u", n); cmd 200 tools/crm_node.c crm_xml_add(cmd, XML_ATTR_UNAME, name); cmd 203 tools/crm_node.c rc = crm_ipc_send(conn, cmd, 0, 0, NULL); cmd 215 tools/crm_node.c free_xml(cmd); cmd 1160 tools/crm_resource.c xmlNode *cmd = NULL; cmd 1191 tools/crm_resource.c cmd = create_request(CRM_OP_REPROBE, msg_data, router_node, cmd 1200 tools/crm_resource.c if (crm_ipc_send(crmd_channel, cmd, 0, 0, NULL) > 0) { cmd 1204 tools/crm_resource.c free_xml(cmd); cmd 169 tools/crm_resource_runtime.c const char * attr_name, cib_t * cib, const char * cmd) cmd 182 tools/crm_resource_runtime.c printf("Performing %s of '%s' for '%s' will not apply to its peers in '%s'\n", cmd, attr_name, rsc_id, rsc->parent->id); cmd 194 tools/crm_resource_runtime.c printf("Performing %s of '%s' on '%s', the parent of '%s'\n", cmd, attr_name, rsc->id, rsc_id); cmd 203 tools/crm_resource_runtime.c printf("Forcing %s of '%s' for '%s' instead of '%s'\n", cmd, attr_name, rsc_id, rsc->parent->id); cmd 215 tools/crm_resource_runtime.c printf("A value for '%s' already exists in child '%s', performing %s on that instead of '%s'\n", attr_name, lookup_id, cmd, rsc_id); cmd 453 tools/crm_resource_runtime.c xmlNode *cmd = NULL; cmd 527 tools/crm_resource_runtime.c cmd = create_request(op, msg_data, router_node, CRM_SYSTEM_CRMD, crm_system_name, our_pid); cmd 532 tools/crm_resource_runtime.c if (crm_ipc_send(crmd_channel, cmd, 0, 0, NULL) > 0) { cmd 540 tools/crm_resource_runtime.c free_xml(cmd); cmd 41 tools/crm_verify.c void usage(const char *cmd, int exit_status); cmd 48 tools/crmadmin.c void usage(const char *cmd, int exit_status); cmd 379 tools/crmadmin.c xmlNode *cmd = create_request(crmd_operation, msg_data, dest_node, sys_to, cmd 382 tools/crmadmin.c crm_ipc_send(crmd_channel, cmd, 0, 0, NULL); cmd 383 tools/crmadmin.c free_xml(cmd);