cmd                86 daemons/controld/controld_remote_ra.c static int handle_remote_ra_start(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd, int timeout_ms);
cmd                87 daemons/controld/controld_remote_ra.c static void handle_remote_ra_stop(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd);
cmd                93 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = user_data;
cmd                95 daemons/controld/controld_remote_ra.c     if (!cmd) {
cmd                98 daemons/controld/controld_remote_ra.c     if (cmd->delay_id) {
cmd                99 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->delay_id);
cmd               101 daemons/controld/controld_remote_ra.c     if (cmd->interval_id) {
cmd               102 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->interval_id);
cmd               104 daemons/controld/controld_remote_ra.c     if (cmd->monitor_timeout_id) {
cmd               105 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->monitor_timeout_id);
cmd               107 daemons/controld/controld_remote_ra.c     if (cmd->takeover_timeout_id) {
cmd               108 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->takeover_timeout_id);
cmd               110 daemons/controld/controld_remote_ra.c     free(cmd->owner);
cmd               111 daemons/controld/controld_remote_ra.c     free(cmd->rsc_id);
cmd               112 daemons/controld/controld_remote_ra.c     free(cmd->action);
cmd               113 daemons/controld/controld_remote_ra.c     free(cmd->userdata);
cmd               114 daemons/controld/controld_remote_ra.c     pcmk__reset_result(&(cmd->result));
cmd               115 daemons/controld/controld_remote_ra.c     lrmd_key_value_freeall(cmd->params);
cmd               116 daemons/controld/controld_remote_ra.c     free(cmd);
cmd               135 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               138 daemons/controld/controld_remote_ra.c     cmd->interval_id = 0;
cmd               139 daemons/controld/controld_remote_ra.c     connection_rsc = lrm_state_find(cmd->rsc_id);
cmd               143 daemons/controld/controld_remote_ra.c         ra_data->recurring_cmds = g_list_remove(ra_data->recurring_cmds, cmd);
cmd               145 daemons/controld/controld_remote_ra.c         ra_data->cmds = g_list_append(ra_data->cmds, cmd);
cmd               154 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               157 daemons/controld/controld_remote_ra.c     cmd->delay_id = 0;
cmd               158 daemons/controld/controld_remote_ra.c     connection_rsc = lrm_state_find(cmd->rsc_id);
cmd               297 daemons/controld/controld_remote_ra.c check_remote_node_state(remote_ra_cmd_t *cmd)
cmd               300 daemons/controld/controld_remote_ra.c     if (cmd->result.exit_status != PCMK_OCF_OK) {
cmd               304 daemons/controld/controld_remote_ra.c     if (pcmk__str_eq(cmd->action, "start", pcmk__str_casei)) {
cmd               305 daemons/controld/controld_remote_ra.c         remote_node_up(cmd->rsc_id);
cmd               307 daemons/controld/controld_remote_ra.c     } else if (pcmk__str_eq(cmd->action, "migrate_from", pcmk__str_casei)) {
cmd               315 daemons/controld/controld_remote_ra.c         crm_node_t *node = crm_remote_peer_get(cmd->rsc_id);
cmd               320 daemons/controld/controld_remote_ra.c     } else if (pcmk__str_eq(cmd->action, "stop", pcmk__str_casei)) {
cmd               321 daemons/controld/controld_remote_ra.c         lrm_state_t *lrm_state = lrm_state_find(cmd->rsc_id);
cmd               327 daemons/controld/controld_remote_ra.c                 remote_node_down(cmd->rsc_id, DOWN_KEEP_LRM);
cmd               333 daemons/controld/controld_remote_ra.c                 crm_remote_peer_cache_remove(cmd->rsc_id);
cmd               350 daemons/controld/controld_remote_ra.c report_remote_ra_result(remote_ra_cmd_t * cmd)
cmd               354 daemons/controld/controld_remote_ra.c     check_remote_node_state(cmd);
cmd               357 daemons/controld/controld_remote_ra.c     op.rsc_id = cmd->rsc_id;
cmd               358 daemons/controld/controld_remote_ra.c     op.op_type = cmd->action;
cmd               359 daemons/controld/controld_remote_ra.c     op.user_data = cmd->userdata;
cmd               360 daemons/controld/controld_remote_ra.c     op.timeout = cmd->timeout;
cmd               361 daemons/controld/controld_remote_ra.c     op.interval_ms = cmd->interval_ms;
cmd               362 daemons/controld/controld_remote_ra.c     op.t_run = (unsigned int) cmd->start_time;
cmd               363 daemons/controld/controld_remote_ra.c     op.t_rcchange = (unsigned int) cmd->start_time;
cmd               365 daemons/controld/controld_remote_ra.c     lrmd__set_result(&op, cmd->result.exit_status, cmd->result.execution_status,
cmd               366 daemons/controld/controld_remote_ra.c                      cmd->result.exit_reason);
cmd               368 daemons/controld/controld_remote_ra.c     if (cmd->reported_success && (cmd->result.exit_status != PCMK_OCF_OK)) {
cmd               384 daemons/controld/controld_remote_ra.c     if (cmd->params) {
cmd               388 daemons/controld/controld_remote_ra.c         for (tmp = cmd->params; tmp; tmp = tmp->next) {
cmd               393 daemons/controld/controld_remote_ra.c     op.call_id = cmd->call_id;
cmd               394 daemons/controld/controld_remote_ra.c     op.remote_nodename = cmd->owner;
cmd               405 daemons/controld/controld_remote_ra.c update_remaining_timeout(remote_ra_cmd_t * cmd)
cmd               407 daemons/controld/controld_remote_ra.c     cmd->remaining_timeout = ((cmd->timeout / 1000) - (time(NULL) - cmd->start_time)) * 1000;
cmd               415 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd               421 daemons/controld/controld_remote_ra.c     cmd = ra_data->cur_cmd;
cmd               422 daemons/controld/controld_remote_ra.c     if (!pcmk__strcase_any_of(cmd->action, "start", "migrate_from", NULL)) {
cmd               425 daemons/controld/controld_remote_ra.c     update_remaining_timeout(cmd);
cmd               427 daemons/controld/controld_remote_ra.c     if (cmd->remaining_timeout > 0) {
cmd               428 daemons/controld/controld_remote_ra.c         rc = handle_remote_ra_start(lrm_state, cmd, cmd->remaining_timeout);
cmd               430 daemons/controld/controld_remote_ra.c         pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               436 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd               442 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd               455 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               457 daemons/controld/controld_remote_ra.c     crm_info("takeover event timed out for node %s", cmd->rsc_id);
cmd               458 daemons/controld/controld_remote_ra.c     cmd->takeover_timeout_id = 0;
cmd               460 daemons/controld/controld_remote_ra.c     lrm_state = lrm_state_find(cmd->rsc_id);
cmd               462 daemons/controld/controld_remote_ra.c     handle_remote_ra_stop(lrm_state, cmd);
cmd               463 daemons/controld/controld_remote_ra.c     free_cmd(cmd);
cmd               472 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               474 daemons/controld/controld_remote_ra.c     lrm_state = lrm_state_find(cmd->rsc_id);
cmd               477 daemons/controld/controld_remote_ra.c              cmd->rsc_id, (lrm_state? "" : " (no LRM state)"));
cmd               478 daemons/controld/controld_remote_ra.c     cmd->monitor_timeout_id = 0;
cmd               479 daemons/controld/controld_remote_ra.c     pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, PCMK_EXEC_TIMEOUT,
cmd               485 daemons/controld/controld_remote_ra.c         if (ra_data->cur_cmd == cmd) {
cmd               493 daemons/controld/controld_remote_ra.c     report_remote_ra_result(cmd);
cmd               494 daemons/controld/controld_remote_ra.c     free_cmd(cmd);
cmd               529 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd               602 daemons/controld/controld_remote_ra.c     cmd = ra_data->cur_cmd;
cmd               606 daemons/controld/controld_remote_ra.c     if (op->type == lrmd_event_connect && pcmk__strcase_any_of(cmd->action, "start",
cmd               609 daemons/controld/controld_remote_ra.c             update_remaining_timeout(cmd);
cmd               613 daemons/controld/controld_remote_ra.c                 pcmk__set_result(&(cmd->result), PCMK_OCF_INVALID_PARAM,
cmd               617 daemons/controld/controld_remote_ra.c             } else if (cmd->remaining_timeout > 3000) {
cmd               618 daemons/controld/controld_remote_ra.c                 crm_trace("rescheduling start, remaining timeout %d", cmd->remaining_timeout);
cmd               624 daemons/controld/controld_remote_ra.c                           cmd->remaining_timeout);
cmd               625 daemons/controld/controld_remote_ra.c                 pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               632 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               636 daemons/controld/controld_remote_ra.c         crm_debug("Remote connection event matched %s action", cmd->action);
cmd               637 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd               640 daemons/controld/controld_remote_ra.c     } else if (op->type == lrmd_event_poke && pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd               642 daemons/controld/controld_remote_ra.c         if (cmd->monitor_timeout_id) {
cmd               643 daemons/controld/controld_remote_ra.c             g_source_remove(cmd->monitor_timeout_id);
cmd               644 daemons/controld/controld_remote_ra.c             cmd->monitor_timeout_id = 0;
cmd               650 daemons/controld/controld_remote_ra.c         if (!cmd->reported_success) {
cmd               651 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               652 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               653 daemons/controld/controld_remote_ra.c             cmd->reported_success = 1;
cmd               656 daemons/controld/controld_remote_ra.c         crm_debug("Remote poke event matched %s action", cmd->action);
cmd               659 daemons/controld/controld_remote_ra.c         if (cmd->interval_ms && (cmd->cancel == FALSE)) {
cmd               660 daemons/controld/controld_remote_ra.c             ra_data->recurring_cmds = g_list_append(ra_data->recurring_cmds, cmd);
cmd               661 daemons/controld/controld_remote_ra.c             cmd->interval_id = g_timeout_add(cmd->interval_ms,
cmd               662 daemons/controld/controld_remote_ra.c                                              recurring_helper, cmd);
cmd               663 daemons/controld/controld_remote_ra.c             cmd = NULL;         /* prevent free */
cmd               667 daemons/controld/controld_remote_ra.c     } else if (op->type == lrmd_event_disconnect && pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd               668 daemons/controld/controld_remote_ra.c         if (ra_data->active == TRUE && (cmd->cancel == FALSE)) {
cmd               669 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               673 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               679 daemons/controld/controld_remote_ra.c     } else if (op->type == lrmd_event_new_client && pcmk__str_eq(cmd->action, "stop", pcmk__str_casei)) {
cmd               681 daemons/controld/controld_remote_ra.c         handle_remote_ra_stop(lrm_state, cmd);
cmd               693 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd               698 daemons/controld/controld_remote_ra.c handle_remote_ra_stop(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd)
cmd               727 daemons/controld/controld_remote_ra.c     if (cmd) {
cmd               728 daemons/controld/controld_remote_ra.c         pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               729 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd               735 daemons/controld/controld_remote_ra.c handle_remote_ra_start(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd, int timeout_ms)
cmd               744 daemons/controld/controld_remote_ra.c     for (tmp = cmd->params; tmp; tmp = tmp->next) {
cmd               758 daemons/controld/controld_remote_ra.c         pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               770 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd;
cmd               780 daemons/controld/controld_remote_ra.c         cmd = first->data;
cmd               781 daemons/controld/controld_remote_ra.c         if (cmd->delay_id) {
cmd               789 daemons/controld/controld_remote_ra.c         if (!strcmp(cmd->action, "start") || !strcmp(cmd->action, "migrate_from")) {
cmd               791 daemons/controld/controld_remote_ra.c             if (handle_remote_ra_start(lrm_state, cmd,
cmd               792 daemons/controld/controld_remote_ra.c                                        cmd->timeout) == pcmk_rc_ok) {
cmd               795 daemons/controld/controld_remote_ra.c                           cmd->action);
cmd               796 daemons/controld/controld_remote_ra.c                 ra_data->cur_cmd = cmd;
cmd               799 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               801 daemons/controld/controld_remote_ra.c         } else if (!strcmp(cmd->action, "monitor")) {
cmd               806 daemons/controld/controld_remote_ra.c                     pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               811 daemons/controld/controld_remote_ra.c                 pcmk__set_result(&(cmd->result), PCMK_OCF_NOT_RUNNING,
cmd               817 daemons/controld/controld_remote_ra.c                           cmd->rsc_id);
cmd               818 daemons/controld/controld_remote_ra.c                 ra_data->cur_cmd = cmd;
cmd               819 daemons/controld/controld_remote_ra.c                 cmd->monitor_timeout_id = g_timeout_add(cmd->timeout, monitor_timeout_cb, cmd);
cmd               822 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               824 daemons/controld/controld_remote_ra.c         } else if (!strcmp(cmd->action, "stop")) {
cmd               833 daemons/controld/controld_remote_ra.c                 cmd->takeover_timeout_id = g_timeout_add((cmd->timeout/2), connection_takeover_timeout_cb, cmd);
cmd               834 daemons/controld/controld_remote_ra.c                 ra_data->cur_cmd = cmd;
cmd               838 daemons/controld/controld_remote_ra.c             handle_remote_ra_stop(lrm_state, cmd);
cmd               840 daemons/controld/controld_remote_ra.c         } else if (!strcmp(cmd->action, "migrate_to")) {
cmd               842 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               843 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               844 daemons/controld/controld_remote_ra.c         } else if (pcmk__str_any_of(cmd->action, CRMD_ACTION_RELOAD,
cmd               855 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               856 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               859 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd               948 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd               952 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd               953 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms > 0) && pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd               954 daemons/controld/controld_remote_ra.c             rm_list = g_list_append(rm_list, cmd);
cmd               959 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd               961 daemons/controld/controld_remote_ra.c         pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               964 daemons/controld/controld_remote_ra.c                   cmd->action, cmd->rsc_id, cmd->interval_ms, cmd->userdata);
cmd               965 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd               967 daemons/controld/controld_remote_ra.c         list = g_list_remove(list, cmd);
cmd               968 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd               979 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd               983 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd               984 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms == interval_ms)
cmd               985 daemons/controld/controld_remote_ra.c             && pcmk__str_eq(cmd->action, action, pcmk__str_casei)) {
cmd               988 daemons/controld/controld_remote_ra.c         cmd = NULL;
cmd               990 daemons/controld/controld_remote_ra.c     if (cmd) {
cmd               991 daemons/controld/controld_remote_ra.c         list = g_list_remove(list, cmd);
cmd               992 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd              1028 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd              1045 daemons/controld/controld_remote_ra.c         cmd = ra_data->cur_cmd;
cmd              1050 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd              1051 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms == interval_ms)
cmd              1052 daemons/controld/controld_remote_ra.c             && pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd              1058 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd              1059 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms == interval_ms)
cmd              1060 daemons/controld/controld_remote_ra.c             && pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd              1070 daemons/controld/controld_remote_ra.c               cmd->rsc_id, "monitor", interval_ms);
cmd              1074 daemons/controld/controld_remote_ra.c        free(cmd->userdata);
cmd              1075 daemons/controld/controld_remote_ra.c        cmd->userdata = strdup(userdata);
cmd              1079 daemons/controld/controld_remote_ra.c     if (cmd->reported_success) {
cmd              1080 daemons/controld/controld_remote_ra.c         cmd->start_time = time(NULL);
cmd              1081 daemons/controld/controld_remote_ra.c         cmd->call_id = generate_callid();
cmd              1082 daemons/controld/controld_remote_ra.c         cmd->reported_success = 0;
cmd              1088 daemons/controld/controld_remote_ra.c     if (cmd->interval_id) {
cmd              1089 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->interval_id);
cmd              1090 daemons/controld/controld_remote_ra.c         cmd->interval_id = 0;
cmd              1091 daemons/controld/controld_remote_ra.c         recurring_helper(cmd);
cmd              1094 daemons/controld/controld_remote_ra.c     return cmd;
cmd              1123 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd              1146 daemons/controld/controld_remote_ra.c     cmd = handle_dup_monitor(ra_data, interval_ms, userdata);
cmd              1147 daemons/controld/controld_remote_ra.c     if (cmd) {
cmd              1148 daemons/controld/controld_remote_ra.c         *call_id = cmd->call_id;
cmd              1153 daemons/controld/controld_remote_ra.c     cmd = calloc(1, sizeof(remote_ra_cmd_t));
cmd              1154 daemons/controld/controld_remote_ra.c     if (cmd == NULL) {
cmd              1159 daemons/controld/controld_remote_ra.c     cmd->owner = strdup(lrm_state->node_name);
cmd              1160 daemons/controld/controld_remote_ra.c     cmd->rsc_id = strdup(rsc_id);
cmd              1161 daemons/controld/controld_remote_ra.c     cmd->action = strdup(action);
cmd              1162 daemons/controld/controld_remote_ra.c     cmd->userdata = strdup(userdata);
cmd              1163 daemons/controld/controld_remote_ra.c     if ((cmd->owner == NULL) || (cmd->rsc_id == NULL) || (cmd->action == NULL)
cmd              1164 daemons/controld/controld_remote_ra.c         || (cmd->userdata == NULL)) {
cmd              1165 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd              1170 daemons/controld/controld_remote_ra.c     cmd->interval_ms = interval_ms;
cmd              1171 daemons/controld/controld_remote_ra.c     cmd->timeout = timeout_ms;
cmd              1172 daemons/controld/controld_remote_ra.c     cmd->start_delay = start_delay_ms;
cmd              1173 daemons/controld/controld_remote_ra.c     cmd->params = params;
cmd              1174 daemons/controld/controld_remote_ra.c     cmd->start_time = time(NULL);
cmd              1176 daemons/controld/controld_remote_ra.c     cmd->call_id = generate_callid();
cmd              1178 daemons/controld/controld_remote_ra.c     if (cmd->start_delay) {
cmd              1179 daemons/controld/controld_remote_ra.c         cmd->delay_id = g_timeout_add(cmd->start_delay, start_delay_helper, cmd);
cmd              1182 daemons/controld/controld_remote_ra.c     ra_data->cmds = g_list_append(ra_data->cmds, cmd);
cmd              1185 daemons/controld/controld_remote_ra.c     *call_id = cmd->call_id;
cmd               185 daemons/controld/controld_schedulerd.c pe_subsystem_send(xmlNode *cmd)
cmd               188 daemons/controld/controld_schedulerd.c         int sent = crm_ipc_send(mainloop_get_ipc_client(pe_subsystem), cmd,
cmd               420 daemons/controld/controld_schedulerd.c     xmlNode *cmd = NULL;
cmd               467 daemons/controld/controld_schedulerd.c     cmd = create_request(CRM_OP_PECALC, output, NULL, CRM_SYSTEM_PENGINE, CRM_SYSTEM_DC, NULL);
cmd               469 daemons/controld/controld_schedulerd.c     rc = pe_subsystem_send(cmd);
cmd               475 daemons/controld/controld_schedulerd.c         controld_expect_sched_reply(cmd);
cmd               479 daemons/controld/controld_schedulerd.c     free_xml(cmd);
cmd                52 daemons/controld/controld_te_actions.c             xmlNode *cmd = NULL;
cmd                58 daemons/controld/controld_te_actions.c             cmd = create_request(task, pseudo->xml, node->uname,
cmd                60 daemons/controld/controld_te_actions.c             send_cluster_message(node, crm_msg_crmd, cmd, FALSE);
cmd                61 daemons/controld/controld_te_actions.c             free_xml(cmd);
cmd                90 daemons/controld/controld_te_actions.c     xmlNode *cmd = NULL;
cmd               149 daemons/controld/controld_te_actions.c     cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL);
cmd               153 daemons/controld/controld_te_actions.c     crm_xml_add(cmd, XML_ATTR_TRANSITION_KEY, counter);
cmd               155 daemons/controld/controld_te_actions.c     rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_crmd, cmd, TRUE);
cmd               157 daemons/controld/controld_te_actions.c     free_xml(cmd);
cmd               272 daemons/controld/controld_te_actions.c     xmlNode *cmd = NULL;
cmd               322 daemons/controld/controld_te_actions.c     cmd = create_request(CRM_OP_INVOKE_LRM, rsc_op, router_node,
cmd               328 daemons/controld/controld_te_actions.c             .msg = cmd,
cmd               345 daemons/controld/controld_te_actions.c         rc = send_cluster_message(crm_get_peer(0, router_node), crm_msg_lrmd, cmd, TRUE);
cmd               349 daemons/controld/controld_te_actions.c     free_xml(cmd);
cmd                30 daemons/controld/pacemaker-controld.c void usage(const char *cmd, int exit_status);
cmd                98 daemons/execd/execd_commands.c static void cmd_finalize(lrmd_cmd_t * cmd, lrmd_rsc_t * rsc);
cmd               186 daemons/execd/execd_commands.c cmd_original_times(lrmd_cmd_t * cmd)
cmd               188 daemons/execd/execd_commands.c     cmd->t_run = cmd->t_first_run;
cmd               189 daemons/execd/execd_commands.c     cmd->t_queue = cmd->t_first_queue;
cmd               194 daemons/execd/execd_commands.c action_matches(lrmd_cmd_t *cmd, const char *action, guint interval_ms)
cmd               196 daemons/execd/execd_commands.c     return (cmd->interval_ms == interval_ms)
cmd               197 daemons/execd/execd_commands.c            && pcmk__str_eq(cmd->action, action, pcmk__str_casei);
cmd               209 daemons/execd/execd_commands.c log_finished(lrmd_cmd_t *cmd, int exec_time_ms, int queue_time_ms)
cmd               214 daemons/execd/execd_commands.c     if (pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd               219 daemons/execd/execd_commands.c                     cmd->rsc_id, cmd->action, cmd->call_id);
cmd               220 daemons/execd/execd_commands.c     if (cmd->last_pid != 0) {
cmd               221 daemons/execd/execd_commands.c         g_string_append_printf(str, ", PID %d", cmd->last_pid);
cmd               223 daemons/execd/execd_commands.c     if (cmd->result.execution_status == PCMK_EXEC_DONE) {
cmd               225 daemons/execd/execd_commands.c                                cmd->result.exit_status);
cmd               228 daemons/execd/execd_commands.c                                pcmk_exec_status_str(cmd->result.execution_status));
cmd               230 daemons/execd/execd_commands.c     if (cmd->result.exit_reason != NULL) {
cmd               231 daemons/execd/execd_commands.c         g_string_append_printf(str, " (%s)", cmd->result.exit_reason);
cmd               249 daemons/execd/execd_commands.c log_execute(lrmd_cmd_t * cmd)
cmd               253 daemons/execd/execd_commands.c     if (pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd               258 daemons/execd/execd_commands.c                cmd->rsc_id, cmd->action, cmd->call_id);
cmd               295 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = NULL;
cmd               297 daemons/execd/execd_commands.c     cmd = calloc(1, sizeof(lrmd_cmd_t));
cmd               300 daemons/execd/execd_commands.c     cmd->call_opts = call_options;
cmd               301 daemons/execd/execd_commands.c     cmd->client_id = strdup(client->id);
cmd               303 daemons/execd/execd_commands.c     crm_element_value_int(msg, F_LRMD_CALLID, &cmd->call_id);
cmd               304 daemons/execd/execd_commands.c     crm_element_value_ms(rsc_xml, F_LRMD_RSC_INTERVAL, &cmd->interval_ms);
cmd               305 daemons/execd/execd_commands.c     crm_element_value_int(rsc_xml, F_LRMD_TIMEOUT, &cmd->timeout);
cmd               306 daemons/execd/execd_commands.c     crm_element_value_int(rsc_xml, F_LRMD_RSC_START_DELAY, &cmd->start_delay);
cmd               307 daemons/execd/execd_commands.c     cmd->timeout_orig = cmd->timeout;
cmd               309 daemons/execd/execd_commands.c     cmd->origin = crm_element_value_copy(rsc_xml, F_LRMD_ORIGIN);
cmd               310 daemons/execd/execd_commands.c     cmd->action = crm_element_value_copy(rsc_xml, F_LRMD_RSC_ACTION);
cmd               311 daemons/execd/execd_commands.c     cmd->userdata_str = crm_element_value_copy(rsc_xml, F_LRMD_RSC_USERDATA_STR);
cmd               312 daemons/execd/execd_commands.c     cmd->rsc_id = crm_element_value_copy(rsc_xml, F_LRMD_RSC_ID);
cmd               314 daemons/execd/execd_commands.c     cmd->params = xml2list(rsc_xml);
cmd               316 daemons/execd/execd_commands.c     if (pcmk__str_eq(g_hash_table_lookup(cmd->params, "CRM_meta_on_fail"), "block", pcmk__str_casei)) {
cmd               319 daemons/execd/execd_commands.c                   cmd->rsc_id, cmd->action, cmd->interval_ms);
cmd               320 daemons/execd/execd_commands.c         cmd->service_flags = pcmk__set_flags_as(__func__, __LINE__,
cmd               322 daemons/execd/execd_commands.c                                                 cmd->action, 0,
cmd               326 daemons/execd/execd_commands.c     return cmd;
cmd               330 daemons/execd/execd_commands.c stop_recurring_timer(lrmd_cmd_t *cmd)
cmd               332 daemons/execd/execd_commands.c     if (cmd) {
cmd               333 daemons/execd/execd_commands.c         if (cmd->stonith_recurring_id) {
cmd               334 daemons/execd/execd_commands.c             g_source_remove(cmd->stonith_recurring_id);
cmd               336 daemons/execd/execd_commands.c         cmd->stonith_recurring_id = 0;
cmd               341 daemons/execd/execd_commands.c free_lrmd_cmd(lrmd_cmd_t * cmd)
cmd               343 daemons/execd/execd_commands.c     stop_recurring_timer(cmd);
cmd               344 daemons/execd/execd_commands.c     if (cmd->delay_id) {
cmd               345 daemons/execd/execd_commands.c         g_source_remove(cmd->delay_id);
cmd               347 daemons/execd/execd_commands.c     if (cmd->params) {
cmd               348 daemons/execd/execd_commands.c         g_hash_table_destroy(cmd->params);
cmd               350 daemons/execd/execd_commands.c     pcmk__reset_result(&(cmd->result));
cmd               351 daemons/execd/execd_commands.c     free(cmd->origin);
cmd               352 daemons/execd/execd_commands.c     free(cmd->action);
cmd               353 daemons/execd/execd_commands.c     free(cmd->real_action);
cmd               354 daemons/execd/execd_commands.c     free(cmd->userdata_str);
cmd               355 daemons/execd/execd_commands.c     free(cmd->rsc_id);
cmd               356 daemons/execd/execd_commands.c     free(cmd->client_id);
cmd               357 daemons/execd/execd_commands.c     free(cmd);
cmd               363 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = data;
cmd               366 daemons/execd/execd_commands.c     cmd->stonith_recurring_id = 0;
cmd               368 daemons/execd/execd_commands.c     if (!cmd->rsc_id) {
cmd               372 daemons/execd/execd_commands.c     rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id);
cmd               377 daemons/execd/execd_commands.c     rsc->recurring_ops = g_list_remove(rsc->recurring_ops, cmd);
cmd               378 daemons/execd/execd_commands.c     rsc->pending_ops = g_list_append(rsc->pending_ops, cmd);
cmd               380 daemons/execd/execd_commands.c     get_current_time(&(cmd->t_queue), &(cmd->t_first_queue));
cmd               388 daemons/execd/execd_commands.c start_recurring_timer(lrmd_cmd_t *cmd)
cmd               390 daemons/execd/execd_commands.c     if (cmd && (cmd->interval_ms > 0)) {
cmd               391 daemons/execd/execd_commands.c         cmd->stonith_recurring_id = g_timeout_add(cmd->interval_ms,
cmd               393 daemons/execd/execd_commands.c                                                   cmd);
cmd               400 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = data;
cmd               403 daemons/execd/execd_commands.c     cmd->delay_id = 0;
cmd               404 daemons/execd/execd_commands.c     rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL;
cmd               418 daemons/execd/execd_commands.c find_duplicate_action(GList *action_list, lrmd_cmd_t *cmd)
cmd               423 daemons/execd/execd_commands.c         if (action_matches(cmd, dup->action, dup->interval_ms)) {
cmd               431 daemons/execd/execd_commands.c merge_recurring_duplicate(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd)
cmd               436 daemons/execd/execd_commands.c     if (cmd->interval_ms == 0) {
cmd               441 daemons/execd/execd_commands.c     dup = find_duplicate_action(rsc->pending_ops, cmd);
cmd               444 daemons/execd/execd_commands.c         dup = find_duplicate_action(rsc->recurring_ops, cmd);
cmd               470 daemons/execd/execd_commands.c     dup->userdata_str = cmd->userdata_str;
cmd               471 daemons/execd/execd_commands.c     cmd->userdata_str = NULL;
cmd               472 daemons/execd/execd_commands.c     dup->call_id = cmd->call_id;
cmd               473 daemons/execd/execd_commands.c     free_lrmd_cmd(cmd);
cmd               474 daemons/execd/execd_commands.c     cmd = NULL;
cmd               495 daemons/execd/execd_commands.c schedule_lrmd_cmd(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd)
cmd               497 daemons/execd/execd_commands.c     CRM_CHECK(cmd != NULL, return);
cmd               500 daemons/execd/execd_commands.c     crm_trace("Scheduling %s on %s", cmd->action, rsc->rsc_id);
cmd               502 daemons/execd/execd_commands.c     if (merge_recurring_duplicate(rsc, cmd)) {
cmd               510 daemons/execd/execd_commands.c     if (pcmk__str_eq(cmd->action, "stop", pcmk__str_casei)) {
cmd               514 daemons/execd/execd_commands.c     rsc->pending_ops = g_list_append(rsc->pending_ops, cmd);
cmd               516 daemons/execd/execd_commands.c     get_current_time(&(cmd->t_queue), &(cmd->t_first_queue));
cmd               520 daemons/execd/execd_commands.c     if (cmd->start_delay) {
cmd               521 daemons/execd/execd_commands.c         cmd->delay_id = g_timeout_add(cmd->start_delay, start_delay_helper, cmd);
cmd               581 daemons/execd/execd_commands.c send_cmd_complete_notify(lrmd_cmd_t * cmd)
cmd               588 daemons/execd/execd_commands.c     exec_time = time_diff_ms(NULL, &(cmd->t_run));
cmd               589 daemons/execd/execd_commands.c     queue_time = time_diff_ms(&cmd->t_run, &(cmd->t_queue));
cmd               591 daemons/execd/execd_commands.c     log_finished(cmd, exec_time, queue_time);
cmd               596 daemons/execd/execd_commands.c     if (cmd->first_notify_sent && (cmd->call_opts & lrmd_opt_notify_changes_only)) {
cmd               597 daemons/execd/execd_commands.c         if ((cmd->last_notify_rc == cmd->result.exit_status) &&
cmd               598 daemons/execd/execd_commands.c             (cmd->last_notify_op_status == cmd->result.execution_status)) {
cmd               606 daemons/execd/execd_commands.c     cmd->first_notify_sent = true;
cmd               607 daemons/execd/execd_commands.c     cmd->last_notify_rc = cmd->result.exit_status;
cmd               608 daemons/execd/execd_commands.c     cmd->last_notify_op_status = cmd->result.execution_status;
cmd               613 daemons/execd/execd_commands.c     crm_xml_add_int(notify, F_LRMD_TIMEOUT, cmd->timeout);
cmd               614 daemons/execd/execd_commands.c     crm_xml_add_ms(notify, F_LRMD_RSC_INTERVAL, cmd->interval_ms);
cmd               615 daemons/execd/execd_commands.c     crm_xml_add_int(notify, F_LRMD_RSC_START_DELAY, cmd->start_delay);
cmd               616 daemons/execd/execd_commands.c     crm_xml_add_int(notify, F_LRMD_EXEC_RC, cmd->result.exit_status);
cmd               617 daemons/execd/execd_commands.c     crm_xml_add_int(notify, F_LRMD_OP_STATUS, cmd->result.execution_status);
cmd               618 daemons/execd/execd_commands.c     crm_xml_add_int(notify, F_LRMD_CALLID, cmd->call_id);
cmd               619 daemons/execd/execd_commands.c     crm_xml_add_int(notify, F_LRMD_RSC_DELETED, cmd->rsc_deleted);
cmd               622 daemons/execd/execd_commands.c                    (long long) cmd->epoch_last_run);
cmd               624 daemons/execd/execd_commands.c                    (long long) cmd->epoch_rcchange);
cmd               631 daemons/execd/execd_commands.c     crm_xml_add(notify, F_LRMD_RSC_ID, cmd->rsc_id);
cmd               632 daemons/execd/execd_commands.c     if(cmd->real_action) {
cmd               633 daemons/execd/execd_commands.c         crm_xml_add(notify, F_LRMD_RSC_ACTION, cmd->real_action);
cmd               635 daemons/execd/execd_commands.c         crm_xml_add(notify, F_LRMD_RSC_ACTION, cmd->action);
cmd               637 daemons/execd/execd_commands.c     crm_xml_add(notify, F_LRMD_RSC_USERDATA_STR, cmd->userdata_str);
cmd               638 daemons/execd/execd_commands.c     crm_xml_add(notify, F_LRMD_RSC_EXIT_REASON, cmd->result.exit_reason);
cmd               640 daemons/execd/execd_commands.c     if (cmd->result.action_stderr != NULL) {
cmd               641 daemons/execd/execd_commands.c         crm_xml_add(notify, F_LRMD_RSC_OUTPUT, cmd->result.action_stderr);
cmd               643 daemons/execd/execd_commands.c     } else if (cmd->result.action_stdout != NULL) {
cmd               644 daemons/execd/execd_commands.c         crm_xml_add(notify, F_LRMD_RSC_OUTPUT, cmd->result.action_stdout);
cmd               647 daemons/execd/execd_commands.c     if (cmd->params) {
cmd               654 daemons/execd/execd_commands.c         g_hash_table_iter_init(&iter, cmd->params);
cmd               659 daemons/execd/execd_commands.c     if (cmd->client_id && (cmd->call_opts & lrmd_opt_notify_orig_only)) {
cmd               660 daemons/execd/execd_commands.c         pcmk__client_t *client = pcmk__find_client_by_id(cmd->client_id);
cmd               698 daemons/execd/execd_commands.c cmd_reset(lrmd_cmd_t * cmd)
cmd               700 daemons/execd/execd_commands.c     cmd->last_pid = 0;
cmd               702 daemons/execd/execd_commands.c     memset(&cmd->t_run, 0, sizeof(cmd->t_run));
cmd               703 daemons/execd/execd_commands.c     memset(&cmd->t_queue, 0, sizeof(cmd->t_queue));
cmd               705 daemons/execd/execd_commands.c     cmd->epoch_last_run = 0;
cmd               707 daemons/execd/execd_commands.c     pcmk__reset_result(&(cmd->result));
cmd               708 daemons/execd/execd_commands.c     cmd->result.execution_status = PCMK_EXEC_DONE;
cmd               712 daemons/execd/execd_commands.c cmd_finalize(lrmd_cmd_t * cmd, lrmd_rsc_t * rsc)
cmd               714 daemons/execd/execd_commands.c     crm_trace("Resource operation rsc:%s action:%s completed (%p %p)", cmd->rsc_id, cmd->action,
cmd               715 daemons/execd/execd_commands.c               rsc ? rsc->active : NULL, cmd);
cmd               717 daemons/execd/execd_commands.c     if (rsc && (rsc->active == cmd)) {
cmd               723 daemons/execd/execd_commands.c         cmd->rsc_deleted = 1;
cmd               727 daemons/execd/execd_commands.c     cmd->timeout = cmd->timeout_orig;
cmd               729 daemons/execd/execd_commands.c     send_cmd_complete_notify(cmd);
cmd               731 daemons/execd/execd_commands.c     if ((cmd->interval_ms != 0)
cmd               732 daemons/execd/execd_commands.c         && (cmd->result.execution_status == PCMK_EXEC_CANCELLED)) {
cmd               735 daemons/execd/execd_commands.c             rsc->recurring_ops = g_list_remove(rsc->recurring_ops, cmd);
cmd               736 daemons/execd/execd_commands.c             rsc->pending_ops = g_list_remove(rsc->pending_ops, cmd);
cmd               738 daemons/execd/execd_commands.c         free_lrmd_cmd(cmd);
cmd               739 daemons/execd/execd_commands.c     } else if (cmd->interval_ms == 0) {
cmd               741 daemons/execd/execd_commands.c             rsc->pending_ops = g_list_remove(rsc->pending_ops, cmd);
cmd               743 daemons/execd/execd_commands.c         free_lrmd_cmd(cmd);
cmd               746 daemons/execd/execd_commands.c         cmd_reset(cmd);
cmd               785 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = action->cb_data;
cmd               789 daemons/execd/execd_commands.c         return stonith2uniform_rc(cmd->action, action->rc);
cmd               792 daemons/execd/execd_commands.c                                                      cmd->action, action->rc);
cmd               849 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = action->cb_data;
cmd               856 daemons/execd/execd_commands.c     if (!cmd) {
cmd               863 daemons/execd/execd_commands.c     if (cmd->result.exit_status != action->rc) {
cmd               864 daemons/execd/execd_commands.c         cmd->epoch_rcchange = time(NULL);
cmd               868 daemons/execd/execd_commands.c     cmd->last_pid = action->pid;
cmd               869 daemons/execd/execd_commands.c     pcmk__set_result(&(cmd->result), action_get_uniform_rc(action),
cmd               871 daemons/execd/execd_commands.c     rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL;
cmd               881 daemons/execd/execd_commands.c         if ((cmd->result.exit_status == PCMK_OCF_OK)
cmd               882 daemons/execd/execd_commands.c             && pcmk__strcase_any_of(cmd->action, "start", "stop", NULL)) {
cmd               889 daemons/execd/execd_commands.c             cmd->real_action = cmd->action;
cmd               890 daemons/execd/execd_commands.c             cmd->action = strdup("monitor");
cmd               892 daemons/execd/execd_commands.c         } else if (cmd->real_action != NULL) {
cmd               894 daemons/execd/execd_commands.c             if (cmd->result.execution_status == PCMK_EXEC_PENDING) {
cmd               897 daemons/execd/execd_commands.c             } else if ((cmd->result.exit_status == PCMK_OCF_OK)
cmd               898 daemons/execd/execd_commands.c                        && pcmk__str_eq(cmd->real_action, "stop", pcmk__str_casei)) {
cmd               902 daemons/execd/execd_commands.c                 int time_sum = time_diff_ms(NULL, &(cmd->t_first_run));
cmd               903 daemons/execd/execd_commands.c                 int timeout_left = cmd->timeout_orig - time_sum;
cmd               907 daemons/execd/execd_commands.c                           cmd->rsc_id, cmd->real_action, time_sum, timeout_left,
cmd               908 daemons/execd/execd_commands.c                           services_ocf_exitcode_str(cmd->result.exit_status),
cmd               909 daemons/execd/execd_commands.c                           cmd->result.exit_status);
cmd               910 daemons/execd/execd_commands.c                 cmd_original_times(cmd);
cmd               913 daemons/execd/execd_commands.c                 if ((cmd->result.execution_status == PCMK_EXEC_DONE)
cmd               914 daemons/execd/execd_commands.c                     && (cmd->result.exit_status == PCMK_OCF_NOT_RUNNING)) {
cmd               916 daemons/execd/execd_commands.c                     if (pcmk__str_eq(cmd->real_action, "start", pcmk__str_casei)) {
cmd               917 daemons/execd/execd_commands.c                         cmd->result.exit_status = PCMK_OCF_UNKNOWN_ERROR;
cmd               918 daemons/execd/execd_commands.c                     } else if (pcmk__str_eq(cmd->real_action, "stop", pcmk__str_casei)) {
cmd               919 daemons/execd/execd_commands.c                         cmd->result.exit_status = PCMK_OCF_OK;
cmd               929 daemons/execd/execd_commands.c         if (action_matches(cmd, "monitor", 0)
cmd               930 daemons/execd/execd_commands.c             && (cmd->result.exit_status == PCMK_OCF_OK)) {
cmd               932 daemons/execd/execd_commands.c             cmd->result.exit_status = PCMK_OCF_NOT_RUNNING;
cmd               934 daemons/execd/execd_commands.c         } else if (pcmk__str_eq(cmd->action, "start", pcmk__str_casei)
cmd               935 daemons/execd/execd_commands.c                    && (cmd->result.exit_status != PCMK_OCF_OK)) {
cmd               945 daemons/execd/execd_commands.c         int time_sum = time_diff_ms(NULL, &(cmd->t_first_run));
cmd               946 daemons/execd/execd_commands.c         int timeout_left = cmd->timeout_orig - time_sum;
cmd               947 daemons/execd/execd_commands.c         int delay = cmd->timeout_orig / 10;
cmd               955 daemons/execd/execd_commands.c             cmd->start_delay = delay;
cmd               956 daemons/execd/execd_commands.c             cmd->timeout = timeout_left;
cmd               958 daemons/execd/execd_commands.c             if (cmd->result.exit_status == PCMK_OCF_OK) {
cmd               960 daemons/execd/execd_commands.c                           cmd->rsc_id, cmd->real_action, time_sum, timeout_left, delay);
cmd               962 daemons/execd/execd_commands.c             } else if (cmd->result.execution_status == PCMK_EXEC_PENDING) {
cmd               964 daemons/execd/execd_commands.c                          cmd->rsc_id, cmd->action, time_sum, timeout_left, delay);
cmd               968 daemons/execd/execd_commands.c                            cmd->rsc_id, cmd->action,
cmd               969 daemons/execd/execd_commands.c                            services_ocf_exitcode_str(cmd->result.exit_status),
cmd               970 daemons/execd/execd_commands.c                            cmd->result.exit_status, time_sum, timeout_left,
cmd               974 daemons/execd/execd_commands.c             cmd_reset(cmd);
cmd               978 daemons/execd/execd_commands.c             schedule_lrmd_cmd(rsc, cmd);
cmd               985 daemons/execd/execd_commands.c                        cmd->rsc_id,
cmd               986 daemons/execd/execd_commands.c                        (cmd->real_action? cmd->real_action : cmd->action),
cmd               987 daemons/execd/execd_commands.c                        cmd->result.exit_status, time_sum, timeout_left);
cmd               988 daemons/execd/execd_commands.c             pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               992 daemons/execd/execd_commands.c             cmd_original_times(cmd);
cmd               997 daemons/execd/execd_commands.c     pcmk__set_result_output(&(cmd->result), services__grab_stdout(action),
cmd               999 daemons/execd/execd_commands.c     cmd_finalize(cmd, rsc);
cmd              1053 daemons/execd/execd_commands.c stonith_action_complete(lrmd_cmd_t * cmd, int rc)
cmd              1056 daemons/execd/execd_commands.c     lrmd_rsc_t *rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id);
cmd              1058 daemons/execd/execd_commands.c     cmd->result.exit_status = stonith2uniform_rc(cmd->action, rc);
cmd              1064 daemons/execd/execd_commands.c     if (cmd->result.execution_status != PCMK_EXEC_CANCELLED) {
cmd              1065 daemons/execd/execd_commands.c         cmd->result.execution_status = stonith_rc2status(cmd->action,
cmd              1066 daemons/execd/execd_commands.c                                                          cmd->interval_ms, rc);
cmd              1069 daemons/execd/execd_commands.c         if ((rsc != NULL) && (cmd->result.exit_status == PCMK_OCF_OK)) {
cmd              1070 daemons/execd/execd_commands.c             if (pcmk__str_eq(cmd->action, "start", pcmk__str_casei)) {
cmd              1072 daemons/execd/execd_commands.c             } else if (pcmk__str_eq(cmd->action, "stop", pcmk__str_casei)) {
cmd              1080 daemons/execd/execd_commands.c         cmd->result.exit_reason = strdup(pcmk_strerror(rc));
cmd              1086 daemons/execd/execd_commands.c     stop_recurring_timer(cmd);
cmd              1092 daemons/execd/execd_commands.c     if (rsc && (cmd->interval_ms > 0)
cmd              1093 daemons/execd/execd_commands.c         && (cmd->result.execution_status != PCMK_EXEC_CANCELLED)) {
cmd              1094 daemons/execd/execd_commands.c         start_recurring_timer(cmd);
cmd              1097 daemons/execd/execd_commands.c     cmd_finalize(cmd, rsc);
cmd              1169 daemons/execd/execd_commands.c execd_stonith_start(stonith_t *stonith_api, lrmd_rsc_t *rsc, lrmd_cmd_t *cmd)
cmd              1177 daemons/execd/execd_commands.c     if (cmd->params) {
cmd              1180 daemons/execd/execd_commands.c         g_hash_table_iter_init(&iter, cmd->params);
cmd              1193 daemons/execd/execd_commands.c                                             cmd->rsc_id, rsc->provider,
cmd              1233 daemons/execd/execd_commands.c execd_stonith_monitor(stonith_t *stonith_api, lrmd_rsc_t *rsc, lrmd_cmd_t *cmd)
cmd              1235 daemons/execd/execd_commands.c     int rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id,
cmd              1236 daemons/execd/execd_commands.c                                         cmd->timeout / 1000);
cmd              1238 daemons/execd/execd_commands.c     rc = stonith_api->cmds->register_callback(stonith_api, rc, 0, 0, cmd,
cmd              1242 daemons/execd/execd_commands.c         rsc->active = cmd;
cmd              1251 daemons/execd/execd_commands.c lrmd_rsc_execute_stonith(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd)
cmd              1261 daemons/execd/execd_commands.c     } else if (pcmk__str_eq(cmd->action, "start", pcmk__str_casei)) {
cmd              1262 daemons/execd/execd_commands.c         rc = execd_stonith_start(stonith_api, rsc, cmd);
cmd              1267 daemons/execd/execd_commands.c     } else if (pcmk__str_eq(cmd->action, "stop", pcmk__str_casei)) {
cmd              1270 daemons/execd/execd_commands.c     } else if (pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
cmd              1271 daemons/execd/execd_commands.c         if (cmd->interval_ms > 0) {
cmd              1279 daemons/execd/execd_commands.c         rc = execd_stonith_monitor(stonith_api, rsc, cmd);
cmd              1286 daemons/execd/execd_commands.c     stonith_action_complete(cmd, rc);
cmd              1290 daemons/execd/execd_commands.c lrmd_rsc_execute_service_lib(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd)
cmd              1296 daemons/execd/execd_commands.c     CRM_ASSERT(cmd);
cmd              1299 daemons/execd/execd_commands.c               rsc->rsc_id, cmd->action, rsc->class, rsc->provider, rsc->type);
cmd              1304 daemons/execd/execd_commands.c         && pcmk__str_eq(cmd->action, "stop", pcmk__str_casei)) {
cmd              1306 daemons/execd/execd_commands.c         cmd->result.exit_status = PCMK_OCF_OK;
cmd              1311 daemons/execd/execd_commands.c     params_copy = pcmk__str_table_dup(cmd->params);
cmd              1315 daemons/execd/execd_commands.c                                      normalize_action_name(rsc, cmd->action),
cmd              1316 daemons/execd/execd_commands.c                                      cmd->interval_ms, cmd->timeout,
cmd              1317 daemons/execd/execd_commands.c                                      params_copy, cmd->service_flags);
cmd              1320 daemons/execd/execd_commands.c         pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd              1326 daemons/execd/execd_commands.c         pcmk__set_result(&(cmd->result), action->rc, action->status,
cmd              1332 daemons/execd/execd_commands.c     action->cb_data = cmd;
cmd              1342 daemons/execd/execd_commands.c     pcmk__set_result(&(cmd->result), action->rc, action->status,
cmd              1348 daemons/execd/execd_commands.c     cmd_finalize(cmd, rsc);
cmd              1355 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = NULL;
cmd              1367 daemons/execd/execd_commands.c         cmd = first->data;
cmd              1368 daemons/execd/execd_commands.c         if (cmd->delay_id) {
cmd              1371 daemons/execd/execd_commands.c                  cmd->rsc_id, cmd->action, cmd->start_delay);
cmd              1378 daemons/execd/execd_commands.c         get_current_time(&(cmd->t_run), &(cmd->t_first_run));
cmd              1380 daemons/execd/execd_commands.c         cmd->epoch_last_run = time(NULL);
cmd              1383 daemons/execd/execd_commands.c     if (!cmd) {
cmd              1388 daemons/execd/execd_commands.c     rsc->active = cmd;          /* only one op at a time for a rsc */
cmd              1389 daemons/execd/execd_commands.c     if (cmd->interval_ms) {
cmd              1390 daemons/execd/execd_commands.c         rsc->recurring_ops = g_list_append(rsc->recurring_ops, cmd);
cmd              1393 daemons/execd/execd_commands.c     log_execute(cmd);
cmd              1396 daemons/execd/execd_commands.c         lrmd_rsc_execute_stonith(rsc, cmd);
cmd              1398 daemons/execd/execd_commands.c         lrmd_rsc_execute_service_lib(rsc, cmd);
cmd              1421 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = gIter->data;
cmd              1424 daemons/execd/execd_commands.c         cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1425 daemons/execd/execd_commands.c         cmd_finalize(cmd, NULL);
cmd              1435 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = gIter->data;
cmd              1438 daemons/execd/execd_commands.c             cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1443 daemons/execd/execd_commands.c             if (rsc->active != cmd) {
cmd              1444 daemons/execd/execd_commands.c                 cmd_finalize(cmd, NULL);
cmd              1452 daemons/execd/execd_commands.c                                    normalize_action_name(rsc, cmd->action),
cmd              1453 daemons/execd/execd_commands.c                                    cmd->interval_ms);
cmd              1591 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = NULL;
cmd              1605 daemons/execd/execd_commands.c     cmd = create_lrmd_cmd(request, client);
cmd              1606 daemons/execd/execd_commands.c     call_id = cmd->call_id;
cmd              1610 daemons/execd/execd_commands.c     schedule_lrmd_cmd(rsc, cmd);
cmd              1637 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = gIter->data;
cmd              1639 daemons/execd/execd_commands.c         if (action_matches(cmd, action, interval_ms)) {
cmd              1640 daemons/execd/execd_commands.c             cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1641 daemons/execd/execd_commands.c             cmd_finalize(cmd, rsc);
cmd              1650 daemons/execd/execd_commands.c             lrmd_cmd_t *cmd = gIter->data;
cmd              1652 daemons/execd/execd_commands.c             if (action_matches(cmd, action, interval_ms)) {
cmd              1653 daemons/execd/execd_commands.c                 cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1654 daemons/execd/execd_commands.c                 if (rsc->active != cmd) {
cmd              1655 daemons/execd/execd_commands.c                     cmd_finalize(cmd, rsc);
cmd              1696 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = cmd_iter->data;
cmd              1698 daemons/execd/execd_commands.c         if (cmd->interval_ms == 0) {
cmd              1702 daemons/execd/execd_commands.c         if (client_id && !pcmk__str_eq(cmd->client_id, client_id, pcmk__str_casei)) {
cmd              1706 daemons/execd/execd_commands.c         cancel_op(rsc->rsc_id, cmd->action, cmd->interval_ms);
cmd              1736 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = item->data;
cmd              1740 daemons/execd/execd_commands.c                     (cmd->real_action? cmd->real_action : cmd->action));
cmd              1741 daemons/execd/execd_commands.c         crm_xml_add_ms(op_xml, F_LRMD_RSC_INTERVAL, cmd->interval_ms);
cmd              1742 daemons/execd/execd_commands.c         crm_xml_add_int(op_xml, F_LRMD_TIMEOUT, cmd->timeout_orig);
cmd               158 daemons/fenced/cts-fence-helper.c #define single_test(cmd, str, num_notifications, expected_rc) \
cmd               161 daemons/fenced/cts-fence-helper.c     rc = cmd; \
cmd               113 daemons/fenced/fenced_commands.c static xmlNode *stonith_construct_async_reply(async_command_t * cmd, const char *output,
cmd               234 daemons/fenced/fenced_commands.c free_async_command(async_command_t * cmd)
cmd               236 daemons/fenced/fenced_commands.c     if (!cmd) {
cmd               240 daemons/fenced/fenced_commands.c     if (cmd->delay_id) {
cmd               241 daemons/fenced/fenced_commands.c         g_source_remove(cmd->delay_id);
cmd               244 daemons/fenced/fenced_commands.c     cmd_list = g_list_remove(cmd_list, cmd);
cmd               246 daemons/fenced/fenced_commands.c     g_list_free_full(cmd->device_list, free);
cmd               247 daemons/fenced/fenced_commands.c     free(cmd->device);
cmd               248 daemons/fenced/fenced_commands.c     free(cmd->action);
cmd               249 daemons/fenced/fenced_commands.c     free(cmd->victim);
cmd               250 daemons/fenced/fenced_commands.c     free(cmd->remote_op_id);
cmd               251 daemons/fenced/fenced_commands.c     free(cmd->client);
cmd               252 daemons/fenced/fenced_commands.c     free(cmd->client_name);
cmd               253 daemons/fenced/fenced_commands.c     free(cmd->origin);
cmd               254 daemons/fenced/fenced_commands.c     free(cmd->op);
cmd               255 daemons/fenced/fenced_commands.c     free(cmd);
cmd               261 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd               268 daemons/fenced/fenced_commands.c     cmd = calloc(1, sizeof(async_command_t));
cmd               269 daemons/fenced/fenced_commands.c     crm_element_value_int(msg, F_STONITH_CALLID, &(cmd->id));
cmd               270 daemons/fenced/fenced_commands.c     crm_element_value_int(msg, F_STONITH_CALLOPTS, &(cmd->options));
cmd               271 daemons/fenced/fenced_commands.c     crm_element_value_int(msg, F_STONITH_TIMEOUT, &(cmd->default_timeout));
cmd               272 daemons/fenced/fenced_commands.c     cmd->timeout = cmd->default_timeout;
cmd               274 daemons/fenced/fenced_commands.c     crm_element_value_int(msg, F_STONITH_DELAY, &(cmd->start_delay));
cmd               276 daemons/fenced/fenced_commands.c     cmd->origin = crm_element_value_copy(msg, F_ORIG);
cmd               277 daemons/fenced/fenced_commands.c     cmd->remote_op_id = crm_element_value_copy(msg, F_STONITH_REMOTE_OP_ID);
cmd               278 daemons/fenced/fenced_commands.c     cmd->client = crm_element_value_copy(msg, F_STONITH_CLIENTID);
cmd               279 daemons/fenced/fenced_commands.c     cmd->client_name = crm_element_value_copy(msg, F_STONITH_CLIENTNAME);
cmd               280 daemons/fenced/fenced_commands.c     cmd->op = crm_element_value_copy(msg, F_STONITH_OPERATION);
cmd               281 daemons/fenced/fenced_commands.c     cmd->action = strdup(action);
cmd               282 daemons/fenced/fenced_commands.c     cmd->victim = crm_element_value_copy(op, F_STONITH_TARGET);
cmd               283 daemons/fenced/fenced_commands.c     cmd->device = crm_element_value_copy(op, F_STONITH_DEVICE);
cmd               285 daemons/fenced/fenced_commands.c     CRM_CHECK(cmd->op != NULL, crm_log_xml_warn(msg, "NoOp"); free_async_command(cmd); return NULL);
cmd               286 daemons/fenced/fenced_commands.c     CRM_CHECK(cmd->client != NULL, crm_log_xml_warn(msg, "NoClient"));
cmd               288 daemons/fenced/fenced_commands.c     cmd->done_cb = st_child_done;
cmd               289 daemons/fenced/fenced_commands.c     cmd_list = g_list_append(cmd_list, cmd);
cmd               290 daemons/fenced/fenced_commands.c     return cmd;
cmd               318 daemons/fenced/fenced_commands.c         async_command_t *cmd = gIter->data;
cmd               322 daemons/fenced/fenced_commands.c         if (cmd->active_on == device) {
cmd               333 daemons/fenced/fenced_commands.c     async_command_t *cmd = (async_command_t *) user_data;
cmd               338 daemons/fenced/fenced_commands.c         cmd->activating_on?cmd->activating_on:cmd->active_on;
cmd               342 daemons/fenced/fenced_commands.c               cmd->action, pid,
cmd               343 daemons/fenced/fenced_commands.c               ((cmd->victim == NULL)? "" : " targeting "),
cmd               344 daemons/fenced/fenced_commands.c               ((cmd->victim == NULL)? "" : cmd->victim),
cmd               345 daemons/fenced/fenced_commands.c               device->id, cmd->timeout);
cmd               346 daemons/fenced/fenced_commands.c     cmd->active_on = device;
cmd               347 daemons/fenced/fenced_commands.c     cmd->activating_on = NULL;
cmd               384 daemons/fenced/fenced_commands.c report_internal_result(async_command_t *cmd, int rc)
cmd               386 daemons/fenced/fenced_commands.c     cmd->done_cb(0, rc, NULL, cmd);
cmd               395 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd               431 daemons/fenced/fenced_commands.c         cmd = pending_op;
cmd               435 daemons/fenced/fenced_commands.c     if (cmd == NULL) {
cmd               442 daemons/fenced/fenced_commands.c         if (pcmk__strcase_any_of(cmd->action, "reboot", "off", NULL)) {
cmd               448 daemons/fenced/fenced_commands.c             crm_info("Faking success for %s watchdog operation", cmd->action);
cmd               449 daemons/fenced/fenced_commands.c             report_internal_result(cmd, pcmk_ok);
cmd               457 daemons/fenced/fenced_commands.c         if (pcmk__str_eq(cmd->action, "stop", pcmk__str_casei)) {
cmd               465 daemons/fenced/fenced_commands.c             report_internal_result(cmd, -EACCES);
cmd               471 daemons/fenced/fenced_commands.c     action_str = cmd->action;
cmd               472 daemons/fenced/fenced_commands.c     if (pcmk__str_eq(cmd->action, "reboot", pcmk__str_casei)
cmd               477 daemons/fenced/fenced_commands.c                    ((cmd->victim == NULL)? "" : " targeting "),
cmd               478 daemons/fenced/fenced_commands.c                    ((cmd->victim == NULL)? "" : cmd->victim),
cmd               492 daemons/fenced/fenced_commands.c                                    cmd->victim,
cmd               493 daemons/fenced/fenced_commands.c                                    cmd->victim_nodeid,
cmd               494 daemons/fenced/fenced_commands.c                                    cmd->timeout, device->params,
cmd               499 daemons/fenced/fenced_commands.c     cmd->activating_on = device;
cmd               500 daemons/fenced/fenced_commands.c     exec_rc = stonith_action_execute_async(action, (void *)cmd,
cmd               501 daemons/fenced/fenced_commands.c                                            cmd->done_cb, fork_cb);
cmd               503 daemons/fenced/fenced_commands.c         cmd->activating_on = NULL;
cmd               504 daemons/fenced/fenced_commands.c         report_internal_result(cmd, exec_rc);
cmd               527 daemons/fenced/fenced_commands.c     async_command_t *cmd = data;
cmd               530 daemons/fenced/fenced_commands.c     cmd->delay_id = 0;
cmd               531 daemons/fenced/fenced_commands.c     device = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL;
cmd               541 daemons/fenced/fenced_commands.c schedule_stonith_command(async_command_t * cmd, stonith_device_t * device)
cmd               545 daemons/fenced/fenced_commands.c     int requested_delay = cmd->start_delay;
cmd               547 daemons/fenced/fenced_commands.c     CRM_CHECK(cmd != NULL, return);
cmd               550 daemons/fenced/fenced_commands.c     if (cmd->device) {
cmd               551 daemons/fenced/fenced_commands.c         free(cmd->device);
cmd               554 daemons/fenced/fenced_commands.c     if (device->include_nodeid && cmd->victim) {
cmd               555 daemons/fenced/fenced_commands.c         crm_node_t *node = crm_get_peer(0, cmd->victim);
cmd               557 daemons/fenced/fenced_commands.c         cmd->victim_nodeid = node->id;
cmd               560 daemons/fenced/fenced_commands.c     cmd->device = strdup(device->id);
cmd               561 daemons/fenced/fenced_commands.c     cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout);
cmd               563 daemons/fenced/fenced_commands.c     if (cmd->remote_op_id) {
cmd               566 daemons/fenced/fenced_commands.c                   cmd->action,
cmd               567 daemons/fenced/fenced_commands.c                   cmd->victim ? " targeting " : "", cmd->victim ? cmd->victim : "",
cmd               568 daemons/fenced/fenced_commands.c                   device->id, cmd->origin, cmd->remote_op_id, cmd->timeout);
cmd               571 daemons/fenced/fenced_commands.c                   cmd->action,
cmd               572 daemons/fenced/fenced_commands.c                   cmd->victim ? " targeting " : "", cmd->victim ? cmd->victim : "",
cmd               573 daemons/fenced/fenced_commands.c                   device->id, cmd->client, cmd->timeout);
cmd               576 daemons/fenced/fenced_commands.c     device->pending_ops = g_list_append(device->pending_ops, cmd);
cmd               584 daemons/fenced/fenced_commands.c     delay_max = get_action_delay_max(device, cmd->action);
cmd               585 daemons/fenced/fenced_commands.c     delay_base = get_action_delay_base(device, cmd->action, cmd->victim);
cmd               593 daemons/fenced/fenced_commands.c                  delay_base, delay_max, cmd->action, device->id);
cmd               598 daemons/fenced/fenced_commands.c         cmd->start_delay +=
cmd               603 daemons/fenced/fenced_commands.c     if (cmd->start_delay > 0) {
cmd               606 daemons/fenced/fenced_commands.c                    cmd->action,
cmd               607 daemons/fenced/fenced_commands.c                    cmd->victim ? " targeting " : "", cmd->victim ? cmd->victim : "",
cmd               608 daemons/fenced/fenced_commands.c                    device->id, cmd->start_delay, cmd->timeout,
cmd               610 daemons/fenced/fenced_commands.c         cmd->delay_id =
cmd               611 daemons/fenced/fenced_commands.c             g_timeout_add_seconds(cmd->start_delay, start_delay_helper, cmd);
cmd               625 daemons/fenced/fenced_commands.c         async_command_t *cmd = gIter->data;
cmd               627 daemons/fenced/fenced_commands.c         crm_warn("Removal of device '%s' purged operation '%s'", device->id, cmd->action);
cmd               628 daemons/fenced/fenced_commands.c         report_internal_result(cmd, -ENODEV);
cmd              1085 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd              1087 daemons/fenced/fenced_commands.c     cmd = calloc(1, sizeof(async_command_t));
cmd              1089 daemons/fenced/fenced_commands.c     cmd->id = -1;
cmd              1090 daemons/fenced/fenced_commands.c     cmd->default_timeout = timeout ? timeout : 60;
cmd              1091 daemons/fenced/fenced_commands.c     cmd->timeout = cmd->default_timeout;
cmd              1092 daemons/fenced/fenced_commands.c     cmd->action = strdup(action);
cmd              1093 daemons/fenced/fenced_commands.c     cmd->victim = victim ? strdup(victim) : NULL;
cmd              1094 daemons/fenced/fenced_commands.c     cmd->device = strdup(device->id);
cmd              1095 daemons/fenced/fenced_commands.c     cmd->origin = strdup(origin);
cmd              1096 daemons/fenced/fenced_commands.c     cmd->client = strdup(crm_system_name);
cmd              1097 daemons/fenced/fenced_commands.c     cmd->client_name = strdup(crm_system_name);
cmd              1099 daemons/fenced/fenced_commands.c     cmd->internal_user_data = internal_user_data;
cmd              1100 daemons/fenced/fenced_commands.c     cmd->done_cb = done_cb; /* cmd, not internal_user_data, is passed to 'done_cb' as the userdata */
cmd              1102 daemons/fenced/fenced_commands.c     schedule_stonith_command(cmd, device);
cmd              1116 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              1117 daemons/fenced/fenced_commands.c     struct device_search_s *search = cmd->internal_user_data;
cmd              1118 daemons/fenced/fenced_commands.c     stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL;
cmd              1121 daemons/fenced/fenced_commands.c     free_async_command(cmd);
cmd              1153 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              1154 daemons/fenced/fenced_commands.c     struct device_search_s *search = cmd->internal_user_data;
cmd              1155 daemons/fenced/fenced_commands.c     stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL;
cmd              1158 daemons/fenced/fenced_commands.c     free_async_command(cmd);
cmd              1751 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd              1784 daemons/fenced/fenced_commands.c     cmd = create_async_command(msg);
cmd              1785 daemons/fenced/fenced_commands.c     if (cmd == NULL) {
cmd              1789 daemons/fenced/fenced_commands.c     schedule_stonith_command(cmd, device);
cmd              2265 daemons/fenced/fenced_commands.c log_async_result(async_command_t *cmd, int rc, int pid, const char *next,
cmd              2270 daemons/fenced/fenced_commands.c     guint devices_remaining = g_list_length(cmd->device_next);
cmd              2276 daemons/fenced/fenced_commands.c         log_level = (cmd->victim == NULL)? LOG_DEBUG : LOG_NOTICE;
cmd              2278 daemons/fenced/fenced_commands.c             && !pcmk__str_eq(cmd->action, "metadata", pcmk__str_casei)) {
cmd              2283 daemons/fenced/fenced_commands.c         log_level = (cmd->victim == NULL)? LOG_NOTICE : LOG_ERR;
cmd              2285 daemons/fenced/fenced_commands.c             && !pcmk__str_eq(cmd->action, "metadata", pcmk__str_casei)) {
cmd              2291 daemons/fenced/fenced_commands.c     g_string_printf(msg, "Operation '%s' ", cmd->action);
cmd              2295 daemons/fenced/fenced_commands.c     if (cmd->victim != NULL) {
cmd              2296 daemons/fenced/fenced_commands.c         g_string_append_printf(msg, "targeting %s ", cmd->victim);
cmd              2298 daemons/fenced/fenced_commands.c     g_string_append_printf(msg, "using %s ", cmd->device);
cmd              2313 daemons/fenced/fenced_commands.c                            (op_merged? "merged " : ""), cmd->id,
cmd              2314 daemons/fenced/fenced_commands.c                            cmd->client_name);
cmd              2322 daemons/fenced/fenced_commands.c         char *prefix = crm_strdup_printf("%s[%d]", cmd->device, pid);
cmd              2330 daemons/fenced/fenced_commands.c stonith_send_async_reply(async_command_t *cmd, const char *output, int rc,
cmd              2336 daemons/fenced/fenced_commands.c     reply = stonith_construct_async_reply(cmd, output, NULL, rc);
cmd              2339 daemons/fenced/fenced_commands.c     if (pcmk__str_any_of(cmd->action, "metadata", "monitor", "list", "status",
cmd              2341 daemons/fenced/fenced_commands.c         crm_trace("Never broadcast '%s' replies", cmd->action);
cmd              2343 daemons/fenced/fenced_commands.c     } else if (!stand_alone && pcmk__str_eq(cmd->origin, cmd->victim, pcmk__str_casei) && !pcmk__str_eq(cmd->action, "on", pcmk__str_casei)) {
cmd              2344 daemons/fenced/fenced_commands.c         crm_trace("Broadcast '%s' reply for %s", cmd->action, cmd->victim);
cmd              2349 daemons/fenced/fenced_commands.c     log_async_result(cmd, rc, pid, NULL, output, merged);
cmd              2360 daemons/fenced/fenced_commands.c     } else if (cmd->origin) {
cmd              2361 daemons/fenced/fenced_commands.c         crm_trace("Directed reply to %s", cmd->origin);
cmd              2362 daemons/fenced/fenced_commands.c         send_cluster_message(crm_get_peer(0, cmd->origin), crm_msg_stonith_ng, reply, FALSE);
cmd              2366 daemons/fenced/fenced_commands.c                   (cmd->options & st_opt_sync_call) ? "" : "a-", cmd->client_name);
cmd              2367 daemons/fenced/fenced_commands.c         do_local_reply(reply, cmd->client, cmd->options & st_opt_sync_call, FALSE);
cmd              2375 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, F_STONITH_TARGET, cmd->victim);
cmd              2376 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, F_STONITH_OPERATION, cmd->op);
cmd              2378 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, F_STONITH_DEVICE, cmd->device);
cmd              2379 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, F_STONITH_REMOTE_OP_ID, cmd->remote_op_id);
cmd              2380 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, F_STONITH_ORIGIN, cmd->client);
cmd              2390 daemons/fenced/fenced_commands.c cancel_stonith_command(async_command_t * cmd)
cmd              2394 daemons/fenced/fenced_commands.c     CRM_CHECK(cmd != NULL, return);
cmd              2396 daemons/fenced/fenced_commands.c     if (!cmd->device) {
cmd              2400 daemons/fenced/fenced_commands.c     device = g_hash_table_lookup(device_list, cmd->device);
cmd              2404 daemons/fenced/fenced_commands.c                   cmd->action, device->id);
cmd              2405 daemons/fenced/fenced_commands.c         device->pending_ops = g_list_remove(device->pending_ops, cmd);
cmd              2414 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              2419 daemons/fenced/fenced_commands.c     CRM_CHECK(cmd != NULL, return);
cmd              2421 daemons/fenced/fenced_commands.c     cmd->active_on = NULL;
cmd              2424 daemons/fenced/fenced_commands.c     device = g_hash_table_lookup(device_list, cmd->device);
cmd              2427 daemons/fenced/fenced_commands.c             (pcmk__strcase_any_of(cmd->action, "list", "monitor", "status", NULL))) {
cmd              2438 daemons/fenced/fenced_commands.c         for (iter = cmd->device_next; iter != NULL; iter = iter->next) {
cmd              2441 daemons/fenced/fenced_commands.c             if (next_device != NULL && is_action_required(cmd->action, next_device)) {
cmd              2442 daemons/fenced/fenced_commands.c                 cmd->device_next = iter->next;
cmd              2448 daemons/fenced/fenced_commands.c     } else if (rc != 0 && cmd->device_next && (is_action_required(cmd->action, device) == FALSE)) {
cmd              2451 daemons/fenced/fenced_commands.c         next_device = g_hash_table_lookup(device_list, cmd->device_next->data);
cmd              2452 daemons/fenced/fenced_commands.c         cmd->device_next = cmd->device_next->next;
cmd              2457 daemons/fenced/fenced_commands.c         log_async_result(cmd, rc, pid, next_device->id, output, FALSE);
cmd              2458 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, next_device);
cmd              2460 daemons/fenced/fenced_commands.c         cmd = NULL;
cmd              2464 daemons/fenced/fenced_commands.c     stonith_send_async_reply(cmd, output, rc, pid, false);
cmd              2479 daemons/fenced/fenced_commands.c         if (cmd == cmd_other) {
cmd              2489 daemons/fenced/fenced_commands.c         if (pcmk__str_eq(cmd->client, cmd_other->client, pcmk__str_casei) ||
cmd              2490 daemons/fenced/fenced_commands.c             !pcmk__str_eq(cmd->victim, cmd_other->victim, pcmk__str_casei) ||
cmd              2491 daemons/fenced/fenced_commands.c             !pcmk__str_eq(cmd->action, cmd_other->action, pcmk__str_casei) ||
cmd              2492 daemons/fenced/fenced_commands.c             !pcmk__str_eq(cmd->device, cmd_other->device, pcmk__str_casei)) {
cmd              2508 daemons/fenced/fenced_commands.c                    cmd->client_name);
cmd              2520 daemons/fenced/fenced_commands.c     free_async_command(cmd);
cmd              2540 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              2545 daemons/fenced/fenced_commands.c              ndevices, pcmk__plural_s(ndevices), cmd->victim);
cmd              2553 daemons/fenced/fenced_commands.c             cmd->device_list = devices;
cmd              2554 daemons/fenced/fenced_commands.c             cmd->device_next = devices->next;
cmd              2561 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, device);
cmd              2567 daemons/fenced/fenced_commands.c     stonith_send_async_reply(cmd, NULL, -ENODEV, 0, false);
cmd              2569 daemons/fenced/fenced_commands.c     free_async_command(cmd);
cmd              2578 daemons/fenced/fenced_commands.c     async_command_t *cmd = create_async_command(msg);
cmd              2581 daemons/fenced/fenced_commands.c     if (cmd == NULL) {
cmd              2592 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, device);
cmd              2597 daemons/fenced/fenced_commands.c         if (cmd->options & st_opt_cs_nodeid) {
cmd              2609 daemons/fenced/fenced_commands.c         get_capable_devices(host, cmd->action, cmd->default_timeout,
cmd              2610 daemons/fenced/fenced_commands.c                             TRUE, cmd, stonith_fence_get_devices_cb);
cmd              2666 daemons/fenced/fenced_commands.c stonith_construct_async_reply(async_command_t * cmd, const char *output, xmlNode * data, int rc)
cmd              2676 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_OPERATION, cmd->op);
cmd              2677 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_DEVICE, cmd->device);
cmd              2678 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_REMOTE_OP_ID, cmd->remote_op_id);
cmd              2679 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_CLIENTID, cmd->client);
cmd              2680 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_CLIENTNAME, cmd->client_name);
cmd              2681 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_TARGET, cmd->victim);
cmd              2682 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_ACTION, cmd->op);
cmd              2683 daemons/fenced/fenced_commands.c     crm_xml_add(reply, F_STONITH_ORIGIN, cmd->origin);
cmd              2684 daemons/fenced/fenced_commands.c     crm_xml_add_int(reply, F_STONITH_CALLID, cmd->id);
cmd              2685 daemons/fenced/fenced_commands.c     crm_xml_add_int(reply, F_STONITH_CALLOPTS, cmd->options);
cmd                65 include/crm/common/options_internal.h _Noreturn void pcmk__cli_help(char cmd, crm_exit_t exit_code);
cmd               215 lib/common/ipc_pacemakerd.c     xmlNode *cmd;
cmd               222 lib/common/ipc_pacemakerd.c     cmd = create_request(task, NULL, NULL, CRM_SYSTEM_MCP,
cmd               226 lib/common/ipc_pacemakerd.c     if (cmd) {
cmd               227 lib/common/ipc_pacemakerd.c         rc = pcmk__send_ipc_request(api, cmd);
cmd               233 lib/common/ipc_pacemakerd.c         free_xml(cmd);
cmd               192 lib/common/options.c pcmk__cli_help(char cmd, crm_exit_t exit_code)
cmd               197 lib/common/options.c     if (cmd == 'v' || cmd == '$') {
cmd               203 lib/common/options.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               248 maint/gnulib/lib/chdir-long.c       char const *cmd = "pwd";
cmd               249 maint/gnulib/lib/chdir-long.c       execlp (cmd, (char *) NULL);
cmd               250 maint/gnulib/lib/chdir-long.c       error (EXIT_FAILURE, errno, "%s", cmd);
cmd               182 maint/gnulib/lib/flock.c   int cmd, r;
cmd               186 maint/gnulib/lib/flock.c     cmd = F_SETLK;
cmd               188 maint/gnulib/lib/flock.c     cmd = F_SETLKW;
cmd               211 maint/gnulib/lib/flock.c   r = fcntl (fd, cmd, &fl);
cmd               306 maint/gnulib/lib/get_progname_of.c       char *cmd = status.pst_cmd;
cmd               313 maint/gnulib/lib/get_progname_of.c           char *space = strchr (cmd, ' ');
cmd               316 maint/gnulib/lib/get_progname_of.c           p = strrchr (cmd, '/');
cmd               320 maint/gnulib/lib/get_progname_of.c             p = cmd;
cmd               342 maint/gnulib/lib/get_progname_of.c           char *cmd = status64 + 168;
cmd               349 maint/gnulib/lib/get_progname_of.c               char *space = strchr (cmd, ' ');
cmd               352 maint/gnulib/lib/get_progname_of.c               p = strrchr (cmd, '/');
cmd               356 maint/gnulib/lib/get_progname_of.c                 p = cmd;
cmd               126 maint/gnulib/lib/getprogname.c           char *cmd = status.pst_cmd;
cmd               133 maint/gnulib/lib/getprogname.c               char *space = strchr (cmd, ' ');
cmd               136 maint/gnulib/lib/getprogname.c               p = strrchr (cmd, '/');
cmd               140 maint/gnulib/lib/getprogname.c                 p = cmd;
cmd               162 maint/gnulib/lib/getprogname.c               char *cmd = status64 + 168;
cmd               169 maint/gnulib/lib/getprogname.c                   char *space = strchr (cmd, ' ');
cmd               172 maint/gnulib/lib/getprogname.c                   p = strrchr (cmd, '/');
cmd               176 maint/gnulib/lib/getprogname.c                     p = cmd;
cmd                31 maint/gnulib/lib/popen-safer.c popen_safer (char const *cmd, char const *mode)
cmd                47 maint/gnulib/lib/popen-safer.c       fp = popen_safer (cmd, mode);
cmd                57 maint/gnulib/lib/popen-safer.c       fp = popen (cmd, mode);
cmd              1053 maint/gnulib/lib/stdio.in.h                   (const char *cmd, const char *mode)
cmd              1055 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode));
cmd              1059 maint/gnulib/lib/stdio.in.h                   (const char *cmd, const char *mode)
cmd              1062 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode));
cmd              1069 maint/gnulib/lib/stdio.in.h                   (const char *cmd, const char *mode)
cmd                33 maint/gnulib/tests/test-popen.h   char *cmd;
cmd                50 maint/gnulib/tests/test-popen.h   cmd = malloc (len + 3); /* Adding " r" and NUL.  */
cmd                51 maint/gnulib/tests/test-popen.h   ASSERT (cmd);
cmd                53 maint/gnulib/tests/test-popen.h   strcpy (cmd, argv[0]);
cmd                54 maint/gnulib/tests/test-popen.h   cmd[len] = ' ';
cmd                55 maint/gnulib/tests/test-popen.h   cmd[len + 2] = '\0';
cmd                67 maint/gnulib/tests/test-popen.h       cmd[len + 1] = 'r';
cmd                68 maint/gnulib/tests/test-popen.h       ASSERT (child = popen (cmd, "r"));
cmd                79 maint/gnulib/tests/test-popen.h       cmd[len + 1] = 'w';
cmd                80 maint/gnulib/tests/test-popen.h       ASSERT (child = popen (cmd, "w"));
cmd                91 maint/gnulib/tests/test-popen.h   free (cmd);
cmd               410 tools/crm_node.c     xmlNode *cmd = NULL;
cmd               426 tools/crm_node.c         cmd = create_xml_node(NULL, __func__);
cmd               428 tools/crm_node.c         crm_xml_add(cmd, F_TYPE, T_ATTRD);
cmd               429 tools/crm_node.c         crm_xml_add(cmd, F_ORIG, crm_system_name);
cmd               431 tools/crm_node.c         crm_xml_add(cmd, PCMK__XA_TASK, PCMK__ATTRD_CMD_PEER_REMOVE);
cmd               432 tools/crm_node.c         crm_xml_add(cmd, PCMK__XA_ATTR_NODE_NAME, node_name);
cmd               435 tools/crm_node.c             crm_xml_add_int(cmd, PCMK__XA_ATTR_NODE_ID, (int) nodeid);
cmd               439 tools/crm_node.c         cmd = create_request(CRM_OP_RM_NODE_CACHE, NULL, NULL, target,
cmd               442 tools/crm_node.c             crm_xml_set_id(cmd, "%ld", nodeid);
cmd               444 tools/crm_node.c         crm_xml_add(cmd, XML_ATTR_UNAME, node_name);
cmd               447 tools/crm_node.c     rc = crm_ipc_send(conn, cmd, 0, 0, NULL);
cmd               460 tools/crm_node.c     free_xml(cmd);
cmd               126 tools/crm_resource.c #define SET_COMMAND(cmd) do {                                               \
cmd               132 tools/crm_resource.c         options.rsc_cmd = (cmd);                                            \
cmd               135 tools/crm_resource.c #define SET_COMMAND(cmd) do { options.rsc_cmd = (cmd); } while (0)
cmd               192 tools/crm_resource_runtime.c                                        cib_t * cib, const char * cmd, int depth)
cmd               202 tools/crm_resource_runtime.c                                                attr_id, attr_name, cib, cmd, depth+1);
cmd               228 tools/crm_resource_runtime.c                              const char * attr_name, cib_t * cib, const char * cmd,
cmd               251 tools/crm_resource_runtime.c                       cmd, attr_name, rsc->id, rsc_id);
cmd               265 tools/crm_resource_runtime.c                           attr_name, lookup_id, cmd, rsc_id);
cmd               276 tools/crm_resource_runtime.c                                            cib, cmd, 0);