cmd                26 daemons/controld/controld_remote_ra.c #define cmd_set_flags(cmd, flags_to_set) do { \
cmd                27 daemons/controld/controld_remote_ra.c     (cmd)->status = pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, \
cmd                28 daemons/controld/controld_remote_ra.c                                        "Remote command", (cmd)->rsc_id, (cmd)->status, \
cmd                32 daemons/controld/controld_remote_ra.c #define cmd_clear_flags(cmd, flags_to_clear) do { \
cmd                33 daemons/controld/controld_remote_ra.c     (cmd)->status = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \
cmd                34 daemons/controld/controld_remote_ra.c                                          "Remote command", (cmd)->rsc_id, (cmd)->status, \
cmd               114 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               115 daemons/controld/controld_remote_ra.c static void handle_remote_ra_stop(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd);
cmd               121 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = user_data;
cmd               123 daemons/controld/controld_remote_ra.c     if (!cmd) {
cmd               126 daemons/controld/controld_remote_ra.c     if (cmd->delay_id) {
cmd               127 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->delay_id);
cmd               129 daemons/controld/controld_remote_ra.c     if (cmd->interval_id) {
cmd               130 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->interval_id);
cmd               132 daemons/controld/controld_remote_ra.c     if (cmd->monitor_timeout_id) {
cmd               133 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->monitor_timeout_id);
cmd               135 daemons/controld/controld_remote_ra.c     if (cmd->takeover_timeout_id) {
cmd               136 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->takeover_timeout_id);
cmd               138 daemons/controld/controld_remote_ra.c     free(cmd->owner);
cmd               139 daemons/controld/controld_remote_ra.c     free(cmd->rsc_id);
cmd               140 daemons/controld/controld_remote_ra.c     free(cmd->action);
cmd               141 daemons/controld/controld_remote_ra.c     free(cmd->userdata);
cmd               142 daemons/controld/controld_remote_ra.c     pcmk__reset_result(&(cmd->result));
cmd               143 daemons/controld/controld_remote_ra.c     lrmd_key_value_freeall(cmd->params);
cmd               144 daemons/controld/controld_remote_ra.c     free(cmd);
cmd               163 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               166 daemons/controld/controld_remote_ra.c     cmd->interval_id = 0;
cmd               167 daemons/controld/controld_remote_ra.c     connection_rsc = lrm_state_find(cmd->rsc_id);
cmd               171 daemons/controld/controld_remote_ra.c         ra_data->recurring_cmds = g_list_remove(ra_data->recurring_cmds, cmd);
cmd               173 daemons/controld/controld_remote_ra.c         ra_data->cmds = g_list_append(ra_data->cmds, cmd);
cmd               182 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               185 daemons/controld/controld_remote_ra.c     cmd->delay_id = 0;
cmd               186 daemons/controld/controld_remote_ra.c     connection_rsc = lrm_state_find(cmd->rsc_id);
cmd               404 daemons/controld/controld_remote_ra.c check_remote_node_state(const remote_ra_cmd_t *cmd)
cmd               407 daemons/controld/controld_remote_ra.c     if (!pcmk__result_ok(&(cmd->result))) {
cmd               411 daemons/controld/controld_remote_ra.c     if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei)) {
cmd               412 daemons/controld/controld_remote_ra.c         remote_node_up(cmd->rsc_id);
cmd               414 daemons/controld/controld_remote_ra.c     } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_MIGRATE_FROM,
cmd               423 daemons/controld/controld_remote_ra.c         crm_node_t *node = pcmk__cluster_lookup_remote_node(cmd->rsc_id);
cmd               428 daemons/controld/controld_remote_ra.c     } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) {
cmd               429 daemons/controld/controld_remote_ra.c         lrm_state_t *lrm_state = lrm_state_find(cmd->rsc_id);
cmd               435 daemons/controld/controld_remote_ra.c                 remote_node_down(cmd->rsc_id, DOWN_KEEP_LRM);
cmd               441 daemons/controld/controld_remote_ra.c                 pcmk__cluster_forget_remote_node(cmd->rsc_id);
cmd               458 daemons/controld/controld_remote_ra.c report_remote_ra_result(remote_ra_cmd_t * cmd)
cmd               462 daemons/controld/controld_remote_ra.c     check_remote_node_state(cmd);
cmd               465 daemons/controld/controld_remote_ra.c     op.rsc_id = cmd->rsc_id;
cmd               466 daemons/controld/controld_remote_ra.c     op.op_type = cmd->action;
cmd               467 daemons/controld/controld_remote_ra.c     op.user_data = cmd->userdata;
cmd               468 daemons/controld/controld_remote_ra.c     op.timeout = cmd->timeout;
cmd               469 daemons/controld/controld_remote_ra.c     op.interval_ms = cmd->interval_ms;
cmd               471 daemons/controld/controld_remote_ra.c     op.t_run = (unsigned int) cmd->start_time;
cmd               473 daemons/controld/controld_remote_ra.c     op.t_rcchange = (unsigned int) cmd->start_time;
cmd               475 daemons/controld/controld_remote_ra.c     lrmd__set_result(&op, cmd->result.exit_status, cmd->result.execution_status,
cmd               476 daemons/controld/controld_remote_ra.c                      cmd->result.exit_reason);
cmd               478 daemons/controld/controld_remote_ra.c     if (pcmk_is_set(cmd->status, cmd_reported_success) && !pcmk__result_ok(&(cmd->result))) {
cmd               495 daemons/controld/controld_remote_ra.c     if (cmd->params) {
cmd               499 daemons/controld/controld_remote_ra.c         for (tmp = cmd->params; tmp; tmp = tmp->next) {
cmd               504 daemons/controld/controld_remote_ra.c     op.call_id = cmd->call_id;
cmd               505 daemons/controld/controld_remote_ra.c     op.remote_nodename = cmd->owner;
cmd               516 daemons/controld/controld_remote_ra.c update_remaining_timeout(remote_ra_cmd_t * cmd)
cmd               518 daemons/controld/controld_remote_ra.c     cmd->remaining_timeout = ((cmd->timeout / 1000) - (time(NULL) - cmd->start_time)) * 1000;
cmd               526 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd               532 daemons/controld/controld_remote_ra.c     cmd = ra_data->cur_cmd;
cmd               533 daemons/controld/controld_remote_ra.c     if (!pcmk__strcase_any_of(cmd->action, PCMK_ACTION_START,
cmd               537 daemons/controld/controld_remote_ra.c     update_remaining_timeout(cmd);
cmd               539 daemons/controld/controld_remote_ra.c     if (cmd->remaining_timeout > 0) {
cmd               540 daemons/controld/controld_remote_ra.c         rc = handle_remote_ra_start(lrm_state, cmd, cmd->remaining_timeout);
cmd               542 daemons/controld/controld_remote_ra.c         pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               548 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd               554 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd               567 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               569 daemons/controld/controld_remote_ra.c     crm_info("takeover event timed out for node %s", cmd->rsc_id);
cmd               570 daemons/controld/controld_remote_ra.c     cmd->takeover_timeout_id = 0;
cmd               572 daemons/controld/controld_remote_ra.c     lrm_state = lrm_state_find(cmd->rsc_id);
cmd               574 daemons/controld/controld_remote_ra.c     handle_remote_ra_stop(lrm_state, cmd);
cmd               575 daemons/controld/controld_remote_ra.c     free_cmd(cmd);
cmd               584 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = data;
cmd               586 daemons/controld/controld_remote_ra.c     lrm_state = lrm_state_find(cmd->rsc_id);
cmd               589 daemons/controld/controld_remote_ra.c              cmd->rsc_id, (lrm_state? "" : " (no LRM state)"));
cmd               590 daemons/controld/controld_remote_ra.c     cmd->monitor_timeout_id = 0;
cmd               591 daemons/controld/controld_remote_ra.c     pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, PCMK_EXEC_TIMEOUT,
cmd               597 daemons/controld/controld_remote_ra.c         if (ra_data->cur_cmd == cmd) {
cmd               605 daemons/controld/controld_remote_ra.c     report_remote_ra_result(cmd);
cmd               606 daemons/controld/controld_remote_ra.c     free_cmd(cmd);
cmd               642 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd               717 daemons/controld/controld_remote_ra.c     cmd = ra_data->cur_cmd;
cmd               722 daemons/controld/controld_remote_ra.c         && pcmk__strcase_any_of(cmd->action, PCMK_ACTION_START,
cmd               725 daemons/controld/controld_remote_ra.c             update_remaining_timeout(cmd);
cmd               730 daemons/controld/controld_remote_ra.c                 pcmk__set_result(&(cmd->result), PCMK_OCF_INVALID_PARAM,
cmd               734 daemons/controld/controld_remote_ra.c             } else if (cmd->remaining_timeout > 3000) {
cmd               735 daemons/controld/controld_remote_ra.c                 crm_trace("rescheduling start, remaining timeout %d", cmd->remaining_timeout);
cmd               741 daemons/controld/controld_remote_ra.c                           cmd->remaining_timeout);
cmd               742 daemons/controld/controld_remote_ra.c                 pcmk__format_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               750 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               754 daemons/controld/controld_remote_ra.c         crm_debug("Remote connection event matched %s action", cmd->action);
cmd               755 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd               759 daemons/controld/controld_remote_ra.c                && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR,
cmd               762 daemons/controld/controld_remote_ra.c         if (cmd->monitor_timeout_id) {
cmd               763 daemons/controld/controld_remote_ra.c             g_source_remove(cmd->monitor_timeout_id);
cmd               764 daemons/controld/controld_remote_ra.c             cmd->monitor_timeout_id = 0;
cmd               770 daemons/controld/controld_remote_ra.c         if (!pcmk_is_set(cmd->status, cmd_reported_success)) {
cmd               771 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               772 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               773 daemons/controld/controld_remote_ra.c             cmd_set_flags(cmd, cmd_reported_success);
cmd               776 daemons/controld/controld_remote_ra.c         crm_debug("Remote poke event matched %s action", cmd->action);
cmd               779 daemons/controld/controld_remote_ra.c         if (cmd->interval_ms && !pcmk_is_set(cmd->status, cmd_cancel)) {
cmd               780 daemons/controld/controld_remote_ra.c             ra_data->recurring_cmds = g_list_append(ra_data->recurring_cmds, cmd);
cmd               781 daemons/controld/controld_remote_ra.c             cmd->interval_id = g_timeout_add(cmd->interval_ms,
cmd               782 daemons/controld/controld_remote_ra.c                                              recurring_helper, cmd);
cmd               783 daemons/controld/controld_remote_ra.c             cmd = NULL;         /* prevent free */
cmd               788 daemons/controld/controld_remote_ra.c                && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR,
cmd               791 daemons/controld/controld_remote_ra.c             !pcmk_is_set(cmd->status, cmd_cancel)) {
cmd               792 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               796 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               803 daemons/controld/controld_remote_ra.c                && pcmk__str_eq(cmd->action, PCMK_ACTION_STOP,
cmd               806 daemons/controld/controld_remote_ra.c         handle_remote_ra_stop(lrm_state, cmd);
cmd               818 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd               823 daemons/controld/controld_remote_ra.c handle_remote_ra_stop(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd)
cmd               852 daemons/controld/controld_remote_ra.c     if (cmd) {
cmd               853 daemons/controld/controld_remote_ra.c         pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               854 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd               860 daemons/controld/controld_remote_ra.c handle_remote_ra_start(lrm_state_t * lrm_state, remote_ra_cmd_t * cmd, int timeout_ms)
cmd               868 daemons/controld/controld_remote_ra.c     for (tmp = cmd->params; tmp; tmp = tmp->next) {
cmd               887 daemons/controld/controld_remote_ra.c         pcmk__format_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               901 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd;
cmd               911 daemons/controld/controld_remote_ra.c         cmd = first->data;
cmd               912 daemons/controld/controld_remote_ra.c         if (cmd->delay_id) {
cmd               920 daemons/controld/controld_remote_ra.c         if (pcmk__str_any_of(cmd->action, PCMK_ACTION_START,
cmd               923 daemons/controld/controld_remote_ra.c             if (handle_remote_ra_start(lrm_state, cmd,
cmd               924 daemons/controld/controld_remote_ra.c                                        cmd->timeout) == pcmk_rc_ok) {
cmd               927 daemons/controld/controld_remote_ra.c                           cmd->action);
cmd               928 daemons/controld/controld_remote_ra.c                 ra_data->cur_cmd = cmd;
cmd               931 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               933 daemons/controld/controld_remote_ra.c         } else if (!strcmp(cmd->action, PCMK_ACTION_MONITOR)) {
cmd               938 daemons/controld/controld_remote_ra.c                     pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               943 daemons/controld/controld_remote_ra.c                 pcmk__set_result(&(cmd->result), PCMK_OCF_NOT_RUNNING,
cmd               949 daemons/controld/controld_remote_ra.c                           cmd->rsc_id);
cmd               950 daemons/controld/controld_remote_ra.c                 ra_data->cur_cmd = cmd;
cmd               951 daemons/controld/controld_remote_ra.c                 cmd->monitor_timeout_id = g_timeout_add(cmd->timeout, monitor_timeout_cb, cmd);
cmd               954 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               956 daemons/controld/controld_remote_ra.c         } else if (!strcmp(cmd->action, PCMK_ACTION_STOP)) {
cmd               965 daemons/controld/controld_remote_ra.c                 cmd->takeover_timeout_id = g_timeout_add((cmd->timeout/2), connection_takeover_timeout_cb, cmd);
cmd               966 daemons/controld/controld_remote_ra.c                 ra_data->cur_cmd = cmd;
cmd               970 daemons/controld/controld_remote_ra.c             handle_remote_ra_stop(lrm_state, cmd);
cmd               972 daemons/controld/controld_remote_ra.c         } else if (strcmp(cmd->action, PCMK_ACTION_MIGRATE_TO) == 0) {
cmd               975 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               976 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               978 daemons/controld/controld_remote_ra.c         } else if (pcmk__str_any_of(cmd->action, PCMK_ACTION_RELOAD,
cmd               989 daemons/controld/controld_remote_ra.c             pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL);
cmd               990 daemons/controld/controld_remote_ra.c             report_remote_ra_result(cmd);
cmd               993 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd              1083 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd              1087 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd              1088 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms > 0)
cmd              1089 daemons/controld/controld_remote_ra.c             && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR,
cmd              1091 daemons/controld/controld_remote_ra.c             rm_list = g_list_append(rm_list, cmd);
cmd              1096 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd              1098 daemons/controld/controld_remote_ra.c         pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd              1101 daemons/controld/controld_remote_ra.c                   cmd->action, cmd->rsc_id, cmd->interval_ms, cmd->userdata);
cmd              1102 daemons/controld/controld_remote_ra.c         report_remote_ra_result(cmd);
cmd              1104 daemons/controld/controld_remote_ra.c         list = g_list_remove(list, cmd);
cmd              1105 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd              1116 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd              1120 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd              1121 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms == interval_ms)
cmd              1122 daemons/controld/controld_remote_ra.c             && pcmk__str_eq(cmd->action, action, pcmk__str_casei)) {
cmd              1125 daemons/controld/controld_remote_ra.c         cmd = NULL;
cmd              1127 daemons/controld/controld_remote_ra.c     if (cmd) {
cmd              1128 daemons/controld/controld_remote_ra.c         list = g_list_remove(list, cmd);
cmd              1129 daemons/controld/controld_remote_ra.c         free_cmd(cmd);
cmd              1165 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd              1183 daemons/controld/controld_remote_ra.c         cmd = ra_data->cur_cmd;
cmd              1188 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd              1189 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms == interval_ms)
cmd              1190 daemons/controld/controld_remote_ra.c             && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR,
cmd              1197 daemons/controld/controld_remote_ra.c         cmd = gIter->data;
cmd              1198 daemons/controld/controld_remote_ra.c         if ((cmd->interval_ms == interval_ms)
cmd              1199 daemons/controld/controld_remote_ra.c             && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR,
cmd              1210 daemons/controld/controld_remote_ra.c               cmd->rsc_id, PCMK_ACTION_MONITOR, interval_ms);
cmd              1214 daemons/controld/controld_remote_ra.c        free(cmd->userdata);
cmd              1215 daemons/controld/controld_remote_ra.c        cmd->userdata = pcmk__str_copy(userdata);
cmd              1219 daemons/controld/controld_remote_ra.c     if (pcmk_is_set(cmd->status, cmd_reported_success)) {
cmd              1220 daemons/controld/controld_remote_ra.c         cmd->start_time = time(NULL);
cmd              1221 daemons/controld/controld_remote_ra.c         cmd->call_id = generate_callid();
cmd              1222 daemons/controld/controld_remote_ra.c         cmd_clear_flags(cmd, cmd_reported_success);
cmd              1228 daemons/controld/controld_remote_ra.c     if (cmd->interval_id) {
cmd              1229 daemons/controld/controld_remote_ra.c         g_source_remove(cmd->interval_id);
cmd              1230 daemons/controld/controld_remote_ra.c         cmd->interval_id = 0;
cmd              1231 daemons/controld/controld_remote_ra.c         recurring_helper(cmd);
cmd              1234 daemons/controld/controld_remote_ra.c     return cmd;
cmd              1263 daemons/controld/controld_remote_ra.c     remote_ra_cmd_t *cmd = NULL;
cmd              1286 daemons/controld/controld_remote_ra.c     cmd = handle_dup_monitor(ra_data, interval_ms, userdata);
cmd              1287 daemons/controld/controld_remote_ra.c     if (cmd) {
cmd              1288 daemons/controld/controld_remote_ra.c         *call_id = cmd->call_id;
cmd              1293 daemons/controld/controld_remote_ra.c     cmd = pcmk__assert_alloc(1, sizeof(remote_ra_cmd_t));
cmd              1295 daemons/controld/controld_remote_ra.c     cmd->owner = pcmk__str_copy(lrm_state->node_name);
cmd              1296 daemons/controld/controld_remote_ra.c     cmd->rsc_id = pcmk__str_copy(rsc_id);
cmd              1297 daemons/controld/controld_remote_ra.c     cmd->action = pcmk__str_copy(action);
cmd              1298 daemons/controld/controld_remote_ra.c     cmd->userdata = pcmk__str_copy(userdata);
cmd              1299 daemons/controld/controld_remote_ra.c     cmd->interval_ms = interval_ms;
cmd              1300 daemons/controld/controld_remote_ra.c     cmd->timeout = timeout_ms;
cmd              1301 daemons/controld/controld_remote_ra.c     cmd->start_delay = start_delay_ms;
cmd              1302 daemons/controld/controld_remote_ra.c     cmd->params = params;
cmd              1303 daemons/controld/controld_remote_ra.c     cmd->start_time = time(NULL);
cmd              1305 daemons/controld/controld_remote_ra.c     cmd->call_id = generate_callid();
cmd              1307 daemons/controld/controld_remote_ra.c     if (cmd->start_delay) {
cmd              1308 daemons/controld/controld_remote_ra.c         cmd->delay_id = g_timeout_add(cmd->start_delay, start_delay_helper, cmd);
cmd              1311 daemons/controld/controld_remote_ra.c     ra_data->cmds = g_list_append(ra_data->cmds, cmd);
cmd              1314 daemons/controld/controld_remote_ra.c     *call_id = cmd->call_id;
cmd                55 daemons/controld/controld_te_actions.c             xmlNode *cmd = NULL;
cmd                62 daemons/controld/controld_te_actions.c             cmd = create_request(task, pseudo->xml, node->uname,
cmd                64 daemons/controld/controld_te_actions.c             pcmk__cluster_send_message(node, crm_msg_crmd, cmd);
cmd                65 daemons/controld/controld_te_actions.c             free_xml(cmd);
cmd               103 daemons/controld/controld_te_actions.c     xmlNode *cmd = NULL;
cmd               168 daemons/controld/controld_te_actions.c     cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL);
cmd               173 daemons/controld/controld_te_actions.c     crm_xml_add(cmd, PCMK__XA_TRANSITION_KEY, counter);
cmd               177 daemons/controld/controld_te_actions.c     rc = pcmk__cluster_send_message(node, crm_msg_crmd, cmd);
cmd               179 daemons/controld/controld_te_actions.c     free_xml(cmd);
cmd               356 daemons/controld/controld_te_actions.c     xmlNode *cmd = NULL;
cmd               408 daemons/controld/controld_te_actions.c     cmd = create_request(CRM_OP_INVOKE_LRM, rsc_op, router_node,
cmd               414 daemons/controld/controld_te_actions.c             .msg = cmd,
cmd               436 daemons/controld/controld_te_actions.c         rc = pcmk__cluster_send_message(node, crm_msg_lrmd, cmd);
cmd               440 daemons/controld/controld_te_actions.c     free_xml(cmd);
cmd               100 daemons/execd/execd_commands.c static void cmd_finalize(lrmd_cmd_t * cmd, lrmd_rsc_t * rsc);
cmd               188 daemons/execd/execd_commands.c cmd_original_times(lrmd_cmd_t * cmd)
cmd               190 daemons/execd/execd_commands.c     cmd->t_run = cmd->t_first_run;
cmd               191 daemons/execd/execd_commands.c     cmd->t_queue = cmd->t_first_queue;
cmd               196 daemons/execd/execd_commands.c action_matches(const lrmd_cmd_t *cmd, const char *action, guint interval_ms)
cmd               198 daemons/execd/execd_commands.c     return (cmd->interval_ms == interval_ms)
cmd               199 daemons/execd/execd_commands.c            && pcmk__str_eq(cmd->action, action, pcmk__str_casei);
cmd               211 daemons/execd/execd_commands.c log_finished(const lrmd_cmd_t *cmd, int exec_time_ms, int queue_time_ms)
cmd               216 daemons/execd/execd_commands.c     if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, pcmk__str_casei)) {
cmd               221 daemons/execd/execd_commands.c                            cmd->rsc_id, cmd->action, cmd->call_id);
cmd               222 daemons/execd/execd_commands.c     if (cmd->last_pid != 0) {
cmd               223 daemons/execd/execd_commands.c         g_string_append_printf(str, ", PID %d", cmd->last_pid);
cmd               225 daemons/execd/execd_commands.c     if (cmd->result.execution_status == PCMK_EXEC_DONE) {
cmd               227 daemons/execd/execd_commands.c                                cmd->result.exit_status);
cmd               230 daemons/execd/execd_commands.c                        pcmk_exec_status_str(cmd->result.execution_status),
cmd               233 daemons/execd/execd_commands.c     if (cmd->result.exit_reason != NULL) {
cmd               234 daemons/execd/execd_commands.c         pcmk__g_strcat(str, " (", cmd->result.exit_reason, ")", NULL);
cmd               252 daemons/execd/execd_commands.c log_execute(lrmd_cmd_t * cmd)
cmd               256 daemons/execd/execd_commands.c     if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, pcmk__str_casei)) {
cmd               261 daemons/execd/execd_commands.c                cmd->rsc_id, cmd->action, cmd->call_id);
cmd               302 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = NULL;
cmd               304 daemons/execd/execd_commands.c     cmd = pcmk__assert_alloc(1, sizeof(lrmd_cmd_t));
cmd               307 daemons/execd/execd_commands.c     cmd->call_opts = call_options;
cmd               308 daemons/execd/execd_commands.c     cmd->client_id = pcmk__str_copy(client->id);
cmd               310 daemons/execd/execd_commands.c     crm_element_value_int(msg, PCMK__XA_LRMD_CALLID, &cmd->call_id);
cmd               312 daemons/execd/execd_commands.c                          &cmd->interval_ms);
cmd               313 daemons/execd/execd_commands.c     crm_element_value_int(rsc_xml, PCMK__XA_LRMD_TIMEOUT, &cmd->timeout);
cmd               315 daemons/execd/execd_commands.c                           &cmd->start_delay);
cmd               316 daemons/execd/execd_commands.c     cmd->timeout_orig = cmd->timeout;
cmd               318 daemons/execd/execd_commands.c     cmd->origin = crm_element_value_copy(rsc_xml, PCMK__XA_LRMD_ORIGIN);
cmd               319 daemons/execd/execd_commands.c     cmd->action = crm_element_value_copy(rsc_xml, PCMK__XA_LRMD_RSC_ACTION);
cmd               320 daemons/execd/execd_commands.c     cmd->userdata_str = crm_element_value_copy(rsc_xml,
cmd               322 daemons/execd/execd_commands.c     cmd->rsc_id = crm_element_value_copy(rsc_xml, PCMK__XA_LRMD_RSC_ID);
cmd               324 daemons/execd/execd_commands.c     cmd->params = xml2list(rsc_xml);
cmd               326 daemons/execd/execd_commands.c     if (pcmk__str_eq(g_hash_table_lookup(cmd->params, "CRM_meta_on_fail"),
cmd               330 daemons/execd/execd_commands.c                   cmd->rsc_id, cmd->action, cmd->interval_ms);
cmd               331 daemons/execd/execd_commands.c         cmd->service_flags = pcmk__set_flags_as(__func__, __LINE__,
cmd               333 daemons/execd/execd_commands.c                                                 cmd->action, 0,
cmd               337 daemons/execd/execd_commands.c     return cmd;
cmd               341 daemons/execd/execd_commands.c stop_recurring_timer(lrmd_cmd_t *cmd)
cmd               343 daemons/execd/execd_commands.c     if (cmd) {
cmd               344 daemons/execd/execd_commands.c         if (cmd->stonith_recurring_id) {
cmd               345 daemons/execd/execd_commands.c             g_source_remove(cmd->stonith_recurring_id);
cmd               347 daemons/execd/execd_commands.c         cmd->stonith_recurring_id = 0;
cmd               352 daemons/execd/execd_commands.c free_lrmd_cmd(lrmd_cmd_t * cmd)
cmd               354 daemons/execd/execd_commands.c     stop_recurring_timer(cmd);
cmd               355 daemons/execd/execd_commands.c     if (cmd->delay_id) {
cmd               356 daemons/execd/execd_commands.c         g_source_remove(cmd->delay_id);
cmd               358 daemons/execd/execd_commands.c     if (cmd->params) {
cmd               359 daemons/execd/execd_commands.c         g_hash_table_destroy(cmd->params);
cmd               361 daemons/execd/execd_commands.c     pcmk__reset_result(&(cmd->result));
cmd               362 daemons/execd/execd_commands.c     free(cmd->origin);
cmd               363 daemons/execd/execd_commands.c     free(cmd->action);
cmd               364 daemons/execd/execd_commands.c     free(cmd->real_action);
cmd               365 daemons/execd/execd_commands.c     free(cmd->userdata_str);
cmd               366 daemons/execd/execd_commands.c     free(cmd->rsc_id);
cmd               367 daemons/execd/execd_commands.c     free(cmd->client_id);
cmd               368 daemons/execd/execd_commands.c     free(cmd);
cmd               374 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = data;
cmd               377 daemons/execd/execd_commands.c     cmd->stonith_recurring_id = 0;
cmd               379 daemons/execd/execd_commands.c     if (!cmd->rsc_id) {
cmd               383 daemons/execd/execd_commands.c     rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id);
cmd               388 daemons/execd/execd_commands.c     rsc->recurring_ops = g_list_remove(rsc->recurring_ops, cmd);
cmd               389 daemons/execd/execd_commands.c     rsc->pending_ops = g_list_append(rsc->pending_ops, cmd);
cmd               391 daemons/execd/execd_commands.c     get_current_time(&(cmd->t_queue), &(cmd->t_first_queue));
cmd               399 daemons/execd/execd_commands.c start_recurring_timer(lrmd_cmd_t *cmd)
cmd               401 daemons/execd/execd_commands.c     if (cmd && (cmd->interval_ms > 0)) {
cmd               402 daemons/execd/execd_commands.c         cmd->stonith_recurring_id = g_timeout_add(cmd->interval_ms,
cmd               404 daemons/execd/execd_commands.c                                                   cmd);
cmd               411 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = data;
cmd               414 daemons/execd/execd_commands.c     cmd->delay_id = 0;
cmd               415 daemons/execd/execd_commands.c     rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL;
cmd               432 daemons/execd/execd_commands.c find_duplicate_action(const GList *action_list, const lrmd_cmd_t *cmd)
cmd               437 daemons/execd/execd_commands.c         if (action_matches(cmd, dup->action, dup->interval_ms)) {
cmd               445 daemons/execd/execd_commands.c merge_recurring_duplicate(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd)
cmd               450 daemons/execd/execd_commands.c     if (cmd->interval_ms == 0) {
cmd               455 daemons/execd/execd_commands.c     dup = find_duplicate_action(rsc->pending_ops, cmd);
cmd               458 daemons/execd/execd_commands.c         dup = find_duplicate_action(rsc->recurring_ops, cmd);
cmd               484 daemons/execd/execd_commands.c     dup->userdata_str = cmd->userdata_str;
cmd               485 daemons/execd/execd_commands.c     cmd->userdata_str = NULL;
cmd               486 daemons/execd/execd_commands.c     dup->call_id = cmd->call_id;
cmd               487 daemons/execd/execd_commands.c     free_lrmd_cmd(cmd);
cmd               488 daemons/execd/execd_commands.c     cmd = NULL;
cmd               509 daemons/execd/execd_commands.c schedule_lrmd_cmd(lrmd_rsc_t * rsc, lrmd_cmd_t * cmd)
cmd               511 daemons/execd/execd_commands.c     CRM_CHECK(cmd != NULL, return);
cmd               514 daemons/execd/execd_commands.c     crm_trace("Scheduling %s on %s", cmd->action, rsc->rsc_id);
cmd               516 daemons/execd/execd_commands.c     if (merge_recurring_duplicate(rsc, cmd)) {
cmd               524 daemons/execd/execd_commands.c     if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) {
cmd               528 daemons/execd/execd_commands.c     rsc->pending_ops = g_list_append(rsc->pending_ops, cmd);
cmd               530 daemons/execd/execd_commands.c     get_current_time(&(cmd->t_queue), &(cmd->t_first_queue));
cmd               534 daemons/execd/execd_commands.c     if (cmd->start_delay) {
cmd               535 daemons/execd/execd_commands.c         cmd->delay_id = g_timeout_add(cmd->start_delay, start_delay_helper, cmd);
cmd               595 daemons/execd/execd_commands.c send_cmd_complete_notify(lrmd_cmd_t * cmd)
cmd               602 daemons/execd/execd_commands.c     exec_time = time_diff_ms(NULL, &(cmd->t_run));
cmd               603 daemons/execd/execd_commands.c     queue_time = time_diff_ms(&cmd->t_run, &(cmd->t_queue));
cmd               605 daemons/execd/execd_commands.c     log_finished(cmd, exec_time, queue_time);
cmd               610 daemons/execd/execd_commands.c     if (cmd->first_notify_sent
cmd               611 daemons/execd/execd_commands.c         && pcmk_is_set(cmd->call_opts, lrmd_opt_notify_changes_only)
cmd               612 daemons/execd/execd_commands.c         && (cmd->last_notify_rc == cmd->result.exit_status)
cmd               613 daemons/execd/execd_commands.c         && (cmd->last_notify_op_status == cmd->result.execution_status)) {
cmd               617 daemons/execd/execd_commands.c     cmd->first_notify_sent = true;
cmd               618 daemons/execd/execd_commands.c     cmd->last_notify_rc = cmd->result.exit_status;
cmd               619 daemons/execd/execd_commands.c     cmd->last_notify_op_status = cmd->result.execution_status;
cmd               624 daemons/execd/execd_commands.c     crm_xml_add_int(notify, PCMK__XA_LRMD_TIMEOUT, cmd->timeout);
cmd               625 daemons/execd/execd_commands.c     crm_xml_add_ms(notify, PCMK__XA_LRMD_RSC_INTERVAL, cmd->interval_ms);
cmd               626 daemons/execd/execd_commands.c     crm_xml_add_int(notify, PCMK__XA_LRMD_RSC_START_DELAY, cmd->start_delay);
cmd               627 daemons/execd/execd_commands.c     crm_xml_add_int(notify, PCMK__XA_LRMD_EXEC_RC, cmd->result.exit_status);
cmd               629 daemons/execd/execd_commands.c                     cmd->result.execution_status);
cmd               630 daemons/execd/execd_commands.c     crm_xml_add_int(notify, PCMK__XA_LRMD_CALLID, cmd->call_id);
cmd               631 daemons/execd/execd_commands.c     crm_xml_add_int(notify, PCMK__XA_LRMD_RSC_DELETED, cmd->rsc_deleted);
cmd               634 daemons/execd/execd_commands.c                    (long long) cmd->epoch_last_run);
cmd               636 daemons/execd/execd_commands.c                    (long long) cmd->epoch_rcchange);
cmd               643 daemons/execd/execd_commands.c     crm_xml_add(notify, PCMK__XA_LRMD_RSC_ID, cmd->rsc_id);
cmd               644 daemons/execd/execd_commands.c     if(cmd->real_action) {
cmd               645 daemons/execd/execd_commands.c         crm_xml_add(notify, PCMK__XA_LRMD_RSC_ACTION, cmd->real_action);
cmd               647 daemons/execd/execd_commands.c         crm_xml_add(notify, PCMK__XA_LRMD_RSC_ACTION, cmd->action);
cmd               649 daemons/execd/execd_commands.c     crm_xml_add(notify, PCMK__XA_LRMD_RSC_USERDATA_STR, cmd->userdata_str);
cmd               650 daemons/execd/execd_commands.c     crm_xml_add(notify, PCMK__XA_LRMD_RSC_EXIT_REASON, cmd->result.exit_reason);
cmd               652 daemons/execd/execd_commands.c     if (cmd->result.action_stderr != NULL) {
cmd               654 daemons/execd/execd_commands.c                     cmd->result.action_stderr);
cmd               656 daemons/execd/execd_commands.c     } else if (cmd->result.action_stdout != NULL) {
cmd               658 daemons/execd/execd_commands.c                     cmd->result.action_stdout);
cmd               661 daemons/execd/execd_commands.c     if (cmd->params) {
cmd               668 daemons/execd/execd_commands.c         g_hash_table_iter_init(&iter, cmd->params);
cmd               673 daemons/execd/execd_commands.c     if ((cmd->client_id != NULL)
cmd               674 daemons/execd/execd_commands.c         && pcmk_is_set(cmd->call_opts, lrmd_opt_notify_orig_only)) {
cmd               676 daemons/execd/execd_commands.c         pcmk__client_t *client = pcmk__find_client_by_id(cmd->client_id);
cmd               715 daemons/execd/execd_commands.c cmd_reset(lrmd_cmd_t * cmd)
cmd               717 daemons/execd/execd_commands.c     cmd->last_pid = 0;
cmd               719 daemons/execd/execd_commands.c     memset(&cmd->t_run, 0, sizeof(cmd->t_run));
cmd               720 daemons/execd/execd_commands.c     memset(&cmd->t_queue, 0, sizeof(cmd->t_queue));
cmd               722 daemons/execd/execd_commands.c     cmd->epoch_last_run = 0;
cmd               724 daemons/execd/execd_commands.c     pcmk__reset_result(&(cmd->result));
cmd               725 daemons/execd/execd_commands.c     cmd->result.execution_status = PCMK_EXEC_DONE;
cmd               729 daemons/execd/execd_commands.c cmd_finalize(lrmd_cmd_t * cmd, lrmd_rsc_t * rsc)
cmd               731 daemons/execd/execd_commands.c     crm_trace("Resource operation rsc:%s action:%s completed (%p %p)", cmd->rsc_id, cmd->action,
cmd               732 daemons/execd/execd_commands.c               rsc ? rsc->active : NULL, cmd);
cmd               734 daemons/execd/execd_commands.c     if (rsc && (rsc->active == cmd)) {
cmd               740 daemons/execd/execd_commands.c         cmd->rsc_deleted = 1;
cmd               744 daemons/execd/execd_commands.c     cmd->timeout = cmd->timeout_orig;
cmd               746 daemons/execd/execd_commands.c     send_cmd_complete_notify(cmd);
cmd               748 daemons/execd/execd_commands.c     if ((cmd->interval_ms != 0)
cmd               749 daemons/execd/execd_commands.c         && (cmd->result.execution_status == PCMK_EXEC_CANCELLED)) {
cmd               752 daemons/execd/execd_commands.c             rsc->recurring_ops = g_list_remove(rsc->recurring_ops, cmd);
cmd               753 daemons/execd/execd_commands.c             rsc->pending_ops = g_list_remove(rsc->pending_ops, cmd);
cmd               755 daemons/execd/execd_commands.c         free_lrmd_cmd(cmd);
cmd               756 daemons/execd/execd_commands.c     } else if (cmd->interval_ms == 0) {
cmd               758 daemons/execd/execd_commands.c             rsc->pending_ops = g_list_remove(rsc->pending_ops, cmd);
cmd               760 daemons/execd/execd_commands.c         free_lrmd_cmd(cmd);
cmd               763 daemons/execd/execd_commands.c         cmd_reset(cmd);
cmd               817 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = action->cb_data;
cmd               825 daemons/execd/execd_commands.c     if (!cmd) {
cmd               832 daemons/execd/execd_commands.c     if (cmd->result.exit_status != action->rc) {
cmd               833 daemons/execd/execd_commands.c         cmd->epoch_rcchange = time(NULL);
cmd               837 daemons/execd/execd_commands.c     cmd->last_pid = action->pid;
cmd               840 daemons/execd/execd_commands.c     code = services_result2ocf(action->standard, cmd->action, action->rc);
cmd               841 daemons/execd/execd_commands.c     pcmk__set_result(&(cmd->result), (int) code,
cmd               844 daemons/execd/execd_commands.c     rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL;
cmd               858 daemons/execd/execd_commands.c         if (pcmk__result_ok(&(cmd->result))
cmd               859 daemons/execd/execd_commands.c             && pcmk__strcase_any_of(cmd->action, PCMK_ACTION_START,
cmd               867 daemons/execd/execd_commands.c             cmd->real_action = cmd->action;
cmd               868 daemons/execd/execd_commands.c             cmd->action = pcmk__str_copy(PCMK_ACTION_MONITOR);
cmd               870 daemons/execd/execd_commands.c         } else if (cmd->real_action != NULL) {
cmd               872 daemons/execd/execd_commands.c             if (cmd->result.execution_status == PCMK_EXEC_PENDING) {
cmd               875 daemons/execd/execd_commands.c             } else if (pcmk__result_ok(&(cmd->result))
cmd               876 daemons/execd/execd_commands.c                        && pcmk__str_eq(cmd->real_action, PCMK_ACTION_STOP,
cmd               881 daemons/execd/execd_commands.c                 int time_sum = time_diff_ms(NULL, &(cmd->t_first_run));
cmd               882 daemons/execd/execd_commands.c                 int timeout_left = cmd->timeout_orig - time_sum;
cmd               886 daemons/execd/execd_commands.c                           cmd->rsc_id, cmd->real_action, time_sum, timeout_left,
cmd               887 daemons/execd/execd_commands.c                           services_ocf_exitcode_str(cmd->result.exit_status),
cmd               888 daemons/execd/execd_commands.c                           cmd->result.exit_status);
cmd               889 daemons/execd/execd_commands.c                 cmd_original_times(cmd);
cmd               892 daemons/execd/execd_commands.c                 if ((cmd->result.execution_status == PCMK_EXEC_DONE)
cmd               893 daemons/execd/execd_commands.c                     && (cmd->result.exit_status == PCMK_OCF_NOT_RUNNING)) {
cmd               895 daemons/execd/execd_commands.c                     if (pcmk__str_eq(cmd->real_action, PCMK_ACTION_START,
cmd               897 daemons/execd/execd_commands.c                         cmd->result.exit_status = PCMK_OCF_UNKNOWN_ERROR;
cmd               898 daemons/execd/execd_commands.c                     } else if (pcmk__str_eq(cmd->real_action, PCMK_ACTION_STOP,
cmd               900 daemons/execd/execd_commands.c                         cmd->result.exit_status = PCMK_OCF_OK;
cmd               910 daemons/execd/execd_commands.c         if (action_matches(cmd, PCMK_ACTION_MONITOR, 0)
cmd               911 daemons/execd/execd_commands.c             && pcmk__result_ok(&(cmd->result))) {
cmd               913 daemons/execd/execd_commands.c             cmd->result.exit_status = PCMK_OCF_NOT_RUNNING;
cmd               915 daemons/execd/execd_commands.c         } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei)
cmd               916 daemons/execd/execd_commands.c                    && !pcmk__result_ok(&(cmd->result))) {
cmd               926 daemons/execd/execd_commands.c         int time_sum = time_diff_ms(NULL, &(cmd->t_first_run));
cmd               927 daemons/execd/execd_commands.c         int timeout_left = cmd->timeout_orig - time_sum;
cmd               928 daemons/execd/execd_commands.c         int delay = cmd->timeout_orig / 10;
cmd               936 daemons/execd/execd_commands.c             cmd->start_delay = delay;
cmd               937 daemons/execd/execd_commands.c             cmd->timeout = timeout_left;
cmd               939 daemons/execd/execd_commands.c             if (pcmk__result_ok(&(cmd->result))) {
cmd               941 daemons/execd/execd_commands.c                           cmd->rsc_id, cmd->real_action, time_sum, timeout_left, delay);
cmd               943 daemons/execd/execd_commands.c             } else if (cmd->result.execution_status == PCMK_EXEC_PENDING) {
cmd               945 daemons/execd/execd_commands.c                          cmd->rsc_id, cmd->action, time_sum, timeout_left, delay);
cmd               949 daemons/execd/execd_commands.c                            cmd->rsc_id, cmd->action,
cmd               950 daemons/execd/execd_commands.c                            services_ocf_exitcode_str(cmd->result.exit_status),
cmd               951 daemons/execd/execd_commands.c                            cmd->result.exit_status, time_sum, timeout_left,
cmd               955 daemons/execd/execd_commands.c             cmd_reset(cmd);
cmd               959 daemons/execd/execd_commands.c             schedule_lrmd_cmd(rsc, cmd);
cmd               966 daemons/execd/execd_commands.c                        cmd->rsc_id,
cmd               967 daemons/execd/execd_commands.c                        (cmd->real_action? cmd->real_action : cmd->action),
cmd               968 daemons/execd/execd_commands.c                        cmd->result.exit_status, time_sum, timeout_left);
cmd               969 daemons/execd/execd_commands.c             pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd               973 daemons/execd/execd_commands.c             cmd_original_times(cmd);
cmd               978 daemons/execd/execd_commands.c     pcmk__set_result_output(&(cmd->result), services__grab_stdout(action),
cmd               980 daemons/execd/execd_commands.c     cmd_finalize(cmd, rsc);
cmd               993 daemons/execd/execd_commands.c stonith_action_complete(lrmd_cmd_t *cmd, int exit_status,
cmd               998 daemons/execd/execd_commands.c     lrmd_rsc_t *rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id);
cmd              1005 daemons/execd/execd_commands.c     if (cmd->result.execution_status == PCMK_EXEC_CANCELLED) {
cmd              1026 daemons/execd/execd_commands.c                 if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR,
cmd              1030 daemons/execd/execd_commands.c                 } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP,
cmd              1049 daemons/execd/execd_commands.c     pcmk__set_result(&cmd->result, exit_status, execution_status, exit_reason);
cmd              1052 daemons/execd/execd_commands.c     if ((rsc != NULL) && pcmk__result_ok(&(cmd->result))) {
cmd              1054 daemons/execd/execd_commands.c         if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei)) {
cmd              1058 daemons/execd/execd_commands.c         } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP,
cmd              1068 daemons/execd/execd_commands.c     stop_recurring_timer(cmd);
cmd              1074 daemons/execd/execd_commands.c     if (rsc && (cmd->interval_ms > 0)
cmd              1075 daemons/execd/execd_commands.c         && (cmd->result.execution_status != PCMK_EXEC_CANCELLED)) {
cmd              1076 daemons/execd/execd_commands.c         start_recurring_timer(cmd);
cmd              1079 daemons/execd/execd_commands.c     cmd_finalize(cmd, rsc);
cmd              1128 daemons/execd/execd_commands.c             lrmd_cmd_t *cmd = op->data;
cmd              1134 daemons/execd/execd_commands.c             stonith_action_complete(cmd,
cmd              1166 daemons/execd/execd_commands.c                     const lrmd_cmd_t *cmd)
cmd              1174 daemons/execd/execd_commands.c     if (cmd->params) {
cmd              1177 daemons/execd/execd_commands.c         g_hash_table_iter_init(&iter, cmd->params);
cmd              1190 daemons/execd/execd_commands.c                                             cmd->rsc_id, rsc->provider,
cmd              1230 daemons/execd/execd_commands.c execd_stonith_monitor(stonith_t *stonith_api, lrmd_rsc_t *rsc, lrmd_cmd_t *cmd)
cmd              1232 daemons/execd/execd_commands.c     int rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id,
cmd              1233 daemons/execd/execd_commands.c                                         cmd->timeout / 1000);
cmd              1235 daemons/execd/execd_commands.c     rc = stonith_api->cmds->register_callback(stonith_api, rc, 0, 0, cmd,
cmd              1239 daemons/execd/execd_commands.c         rsc->active = cmd;
cmd              1248 daemons/execd/execd_commands.c execute_stonith_action(lrmd_rsc_t *rsc, lrmd_cmd_t *cmd)
cmd              1255 daemons/execd/execd_commands.c     if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, pcmk__str_casei)
cmd              1256 daemons/execd/execd_commands.c         && (cmd->interval_ms == 0)) {
cmd              1258 daemons/execd/execd_commands.c         stonith_action_complete(cmd, rsc->fence_probe_result.exit_status,
cmd              1264 daemons/execd/execd_commands.c         stonith_action_complete(cmd, PCMK_OCF_UNKNOWN_ERROR,
cmd              1269 daemons/execd/execd_commands.c     } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei)) {
cmd              1270 daemons/execd/execd_commands.c         rc = execd_stonith_start(stonith_api, rsc, cmd);
cmd              1275 daemons/execd/execd_commands.c     } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) {
cmd              1278 daemons/execd/execd_commands.c     } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR,
cmd              1283 daemons/execd/execd_commands.c         stonith_action_complete(cmd, PCMK_OCF_UNIMPLEMENT_FEATURE,
cmd              1290 daemons/execd/execd_commands.c         rc = execd_stonith_monitor(stonith_api, rsc, cmd);
cmd              1297 daemons/execd/execd_commands.c     stonith_action_complete(cmd,
cmd              1304 daemons/execd/execd_commands.c execute_nonstonith_action(lrmd_rsc_t *rsc, lrmd_cmd_t *cmd)
cmd              1309 daemons/execd/execd_commands.c     pcmk__assert((rsc != NULL) && (cmd != NULL));
cmd              1312 daemons/execd/execd_commands.c               rsc->rsc_id, cmd->action, rsc->class, rsc->provider, rsc->type);
cmd              1317 daemons/execd/execd_commands.c         && pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) {
cmd              1319 daemons/execd/execd_commands.c         cmd->result.exit_status = PCMK_OCF_OK;
cmd              1320 daemons/execd/execd_commands.c         cmd_finalize(cmd, rsc);
cmd              1325 daemons/execd/execd_commands.c     params_copy = pcmk__str_table_dup(cmd->params);
cmd              1329 daemons/execd/execd_commands.c                                      normalize_action_name(rsc, cmd->action),
cmd              1330 daemons/execd/execd_commands.c                                      cmd->interval_ms, cmd->timeout,
cmd              1331 daemons/execd/execd_commands.c                                      params_copy, cmd->service_flags);
cmd              1334 daemons/execd/execd_commands.c         pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR,
cmd              1336 daemons/execd/execd_commands.c         cmd_finalize(cmd, rsc);
cmd              1341 daemons/execd/execd_commands.c         pcmk__set_result(&(cmd->result), action->rc, action->status,
cmd              1344 daemons/execd/execd_commands.c         cmd_finalize(cmd, rsc);
cmd              1348 daemons/execd/execd_commands.c     action->cb_data = cmd;
cmd              1368 daemons/execd/execd_commands.c         pcmk__set_result(&(cmd->result), action->rc, action->status,
cmd              1378 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = NULL;
cmd              1390 daemons/execd/execd_commands.c         cmd = first->data;
cmd              1391 daemons/execd/execd_commands.c         if (cmd->delay_id) {
cmd              1394 daemons/execd/execd_commands.c                  cmd->rsc_id, cmd->action, cmd->start_delay);
cmd              1401 daemons/execd/execd_commands.c         get_current_time(&(cmd->t_run), &(cmd->t_first_run));
cmd              1403 daemons/execd/execd_commands.c         cmd->epoch_last_run = time(NULL);
cmd              1406 daemons/execd/execd_commands.c     if (!cmd) {
cmd              1411 daemons/execd/execd_commands.c     rsc->active = cmd;          /* only one op at a time for a rsc */
cmd              1412 daemons/execd/execd_commands.c     if (cmd->interval_ms) {
cmd              1413 daemons/execd/execd_commands.c         rsc->recurring_ops = g_list_append(rsc->recurring_ops, cmd);
cmd              1416 daemons/execd/execd_commands.c     log_execute(cmd);
cmd              1419 daemons/execd/execd_commands.c         execute_stonith_action(rsc, cmd);
cmd              1421 daemons/execd/execd_commands.c         execute_nonstonith_action(rsc, cmd);
cmd              1438 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = gIter->data;
cmd              1441 daemons/execd/execd_commands.c         cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1442 daemons/execd/execd_commands.c         cmd_finalize(cmd, NULL);
cmd              1452 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = gIter->data;
cmd              1455 daemons/execd/execd_commands.c             cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1460 daemons/execd/execd_commands.c             if (rsc->active != cmd) {
cmd              1461 daemons/execd/execd_commands.c                 cmd_finalize(cmd, NULL);
cmd              1469 daemons/execd/execd_commands.c                                    normalize_action_name(rsc, cmd->action),
cmd              1470 daemons/execd/execd_commands.c                                    cmd->interval_ms);
cmd              1629 daemons/execd/execd_commands.c     lrmd_cmd_t *cmd = NULL;
cmd              1644 daemons/execd/execd_commands.c     cmd = create_lrmd_cmd(request, client);
cmd              1645 daemons/execd/execd_commands.c     call_id = cmd->call_id;
cmd              1649 daemons/execd/execd_commands.c     schedule_lrmd_cmd(rsc, cmd);
cmd              1676 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = gIter->data;
cmd              1678 daemons/execd/execd_commands.c         if (action_matches(cmd, action, interval_ms)) {
cmd              1679 daemons/execd/execd_commands.c             cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1680 daemons/execd/execd_commands.c             cmd_finalize(cmd, rsc);
cmd              1689 daemons/execd/execd_commands.c             lrmd_cmd_t *cmd = gIter->data;
cmd              1691 daemons/execd/execd_commands.c             if (action_matches(cmd, action, interval_ms)) {
cmd              1692 daemons/execd/execd_commands.c                 cmd->result.execution_status = PCMK_EXEC_CANCELLED;
cmd              1693 daemons/execd/execd_commands.c                 if (rsc->active != cmd) {
cmd              1694 daemons/execd/execd_commands.c                     cmd_finalize(cmd, rsc);
cmd              1735 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = cmd_iter->data;
cmd              1737 daemons/execd/execd_commands.c         if (cmd->interval_ms == 0) {
cmd              1741 daemons/execd/execd_commands.c         if (client_id && !pcmk__str_eq(cmd->client_id, client_id, pcmk__str_casei)) {
cmd              1745 daemons/execd/execd_commands.c         cancel_op(rsc->rsc_id, cmd->action, cmd->interval_ms);
cmd              1776 daemons/execd/execd_commands.c         lrmd_cmd_t *cmd = item->data;
cmd              1780 daemons/execd/execd_commands.c                     pcmk__s(cmd->real_action, cmd->action));
cmd              1781 daemons/execd/execd_commands.c         crm_xml_add_ms(op_xml, PCMK__XA_LRMD_RSC_INTERVAL, cmd->interval_ms);
cmd              1782 daemons/execd/execd_commands.c         crm_xml_add_int(op_xml, PCMK__XA_LRMD_TIMEOUT, cmd->timeout_orig);
cmd               178 daemons/fenced/cts-fence-helper.c #define single_test(cmd, str, num_notifications, expected_rc) \
cmd               181 daemons/fenced/cts-fence-helper.c     rc = cmd; \
cmd               117 daemons/fenced/fenced_commands.c static xmlNode *construct_async_reply(const async_command_t *cmd,
cmd               250 daemons/fenced/fenced_commands.c cmd_device(const async_command_t *cmd)
cmd               252 daemons/fenced/fenced_commands.c     if ((cmd == NULL) || (cmd->device == NULL) || (device_list == NULL)) {
cmd               255 daemons/fenced/fenced_commands.c     return g_hash_table_lookup(device_list, cmd->device);
cmd               303 daemons/fenced/fenced_commands.c free_async_command(async_command_t * cmd)
cmd               305 daemons/fenced/fenced_commands.c     if (!cmd) {
cmd               309 daemons/fenced/fenced_commands.c     if (cmd->delay_id) {
cmd               310 daemons/fenced/fenced_commands.c         g_source_remove(cmd->delay_id);
cmd               313 daemons/fenced/fenced_commands.c     cmd_list = g_list_remove(cmd_list, cmd);
cmd               315 daemons/fenced/fenced_commands.c     g_list_free_full(cmd->device_list, free);
cmd               316 daemons/fenced/fenced_commands.c     free(cmd->device);
cmd               317 daemons/fenced/fenced_commands.c     free(cmd->action);
cmd               318 daemons/fenced/fenced_commands.c     free(cmd->target);
cmd               319 daemons/fenced/fenced_commands.c     free(cmd->remote_op_id);
cmd               320 daemons/fenced/fenced_commands.c     free(cmd->client);
cmd               321 daemons/fenced/fenced_commands.c     free(cmd->client_name);
cmd               322 daemons/fenced/fenced_commands.c     free(cmd->origin);
cmd               323 daemons/fenced/fenced_commands.c     free(cmd->op);
cmd               324 daemons/fenced/fenced_commands.c     free(cmd);
cmd               342 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd               354 daemons/fenced/fenced_commands.c     cmd = pcmk__assert_alloc(1, sizeof(async_command_t));
cmd               357 daemons/fenced/fenced_commands.c     cmd->action = crm_element_value_copy(op, PCMK__XA_ST_DEVICE_ACTION);
cmd               358 daemons/fenced/fenced_commands.c     cmd->op = crm_element_value_copy(msg, PCMK__XA_ST_OP);
cmd               359 daemons/fenced/fenced_commands.c     cmd->client = crm_element_value_copy(msg, PCMK__XA_ST_CLIENTID);
cmd               360 daemons/fenced/fenced_commands.c     if ((cmd->action == NULL) || (cmd->op == NULL) || (cmd->client == NULL)) {
cmd               361 daemons/fenced/fenced_commands.c         free_async_command(cmd);
cmd               365 daemons/fenced/fenced_commands.c     crm_element_value_int(msg, PCMK__XA_ST_CALLID, &(cmd->id));
cmd               366 daemons/fenced/fenced_commands.c     crm_element_value_int(msg, PCMK__XA_ST_DELAY, &(cmd->start_delay));
cmd               367 daemons/fenced/fenced_commands.c     crm_element_value_int(msg, PCMK__XA_ST_TIMEOUT, &(cmd->default_timeout));
cmd               368 daemons/fenced/fenced_commands.c     cmd->timeout = cmd->default_timeout;
cmd               370 daemons/fenced/fenced_commands.c     rc = pcmk__xe_get_flags(msg, PCMK__XA_ST_CALLOPT, &(cmd->options),
cmd               376 daemons/fenced/fenced_commands.c     cmd->origin = crm_element_value_copy(msg, PCMK__XA_SRC);
cmd               377 daemons/fenced/fenced_commands.c     cmd->remote_op_id = crm_element_value_copy(msg, PCMK__XA_ST_REMOTE_OP);
cmd               378 daemons/fenced/fenced_commands.c     cmd->client_name = crm_element_value_copy(msg, PCMK__XA_ST_CLIENTNAME);
cmd               379 daemons/fenced/fenced_commands.c     cmd->target = crm_element_value_copy(op, PCMK__XA_ST_TARGET);
cmd               380 daemons/fenced/fenced_commands.c     cmd->device = crm_element_value_copy(op, PCMK__XA_ST_DEVICE_ID);
cmd               382 daemons/fenced/fenced_commands.c     cmd->done_cb = st_child_done;
cmd               385 daemons/fenced/fenced_commands.c     cmd_list = g_list_append(cmd_list, cmd);
cmd               387 daemons/fenced/fenced_commands.c     return cmd;
cmd               415 daemons/fenced/fenced_commands.c         async_command_t *cmd = gIter->data;
cmd               419 daemons/fenced/fenced_commands.c         if (cmd->active_on == device) {
cmd               430 daemons/fenced/fenced_commands.c     async_command_t *cmd = (async_command_t *) user_data;
cmd               435 daemons/fenced/fenced_commands.c         cmd->activating_on?cmd->activating_on:cmd->active_on;
cmd               439 daemons/fenced/fenced_commands.c               cmd->action, pid,
cmd               440 daemons/fenced/fenced_commands.c               ((cmd->target == NULL)? "" : " targeting "),
cmd               441 daemons/fenced/fenced_commands.c               pcmk__s(cmd->target, ""), device->id, cmd->timeout);
cmd               442 daemons/fenced/fenced_commands.c     cmd->active_on = device;
cmd               443 daemons/fenced/fenced_commands.c     cmd->activating_on = NULL;
cmd               482 daemons/fenced/fenced_commands.c report_internal_result(async_command_t *cmd, int exit_status,
cmd               488 daemons/fenced/fenced_commands.c     cmd->done_cb(0, &result, cmd);
cmd               498 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd               534 daemons/fenced/fenced_commands.c         cmd = pending_op;
cmd               538 daemons/fenced/fenced_commands.c     if (cmd == NULL) {
cmd               545 daemons/fenced/fenced_commands.c         if (pcmk__is_fencing_action(cmd->action)) {
cmd               551 daemons/fenced/fenced_commands.c             crm_info("Faking success for %s watchdog operation", cmd->action);
cmd               552 daemons/fenced/fenced_commands.c             report_internal_result(cmd, CRM_EX_OK, PCMK_EXEC_DONE, NULL);
cmd               560 daemons/fenced/fenced_commands.c         if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_none)) {
cmd               568 daemons/fenced/fenced_commands.c             report_internal_result(cmd, CRM_EX_ERROR, PCMK_EXEC_NO_SECRETS,
cmd               575 daemons/fenced/fenced_commands.c     action_str = cmd->action;
cmd               576 daemons/fenced/fenced_commands.c     if (pcmk__str_eq(cmd->action, PCMK_ACTION_REBOOT, pcmk__str_none)
cmd               581 daemons/fenced/fenced_commands.c                    ((cmd->target == NULL)? "" : " targeting "),
cmd               582 daemons/fenced/fenced_commands.c                    pcmk__s(cmd->target, ""), device->id, device->agent);
cmd               593 daemons/fenced/fenced_commands.c     action = stonith__action_create(device->agent, action_str, cmd->target,
cmd               594 daemons/fenced/fenced_commands.c                                     cmd->target_nodeid, cmd->timeout,
cmd               599 daemons/fenced/fenced_commands.c     cmd->activating_on = device;
cmd               600 daemons/fenced/fenced_commands.c     exec_rc = stonith__execute_async(action, (void *)cmd, cmd->done_cb,
cmd               603 daemons/fenced/fenced_commands.c         cmd->activating_on = NULL;
cmd               604 daemons/fenced/fenced_commands.c         cmd->done_cb(0, stonith__action_result(action), cmd);
cmd               627 daemons/fenced/fenced_commands.c     async_command_t *cmd = data;
cmd               628 daemons/fenced/fenced_commands.c     stonith_device_t *device = cmd_device(cmd);
cmd               630 daemons/fenced/fenced_commands.c     cmd->delay_id = 0;
cmd               639 daemons/fenced/fenced_commands.c schedule_stonith_command(async_command_t * cmd, stonith_device_t * device)
cmd               643 daemons/fenced/fenced_commands.c     int requested_delay = cmd->start_delay;
cmd               645 daemons/fenced/fenced_commands.c     CRM_CHECK(cmd != NULL, return);
cmd               648 daemons/fenced/fenced_commands.c     if (cmd->device) {
cmd               649 daemons/fenced/fenced_commands.c         free(cmd->device);
cmd               652 daemons/fenced/fenced_commands.c     if (device->include_nodeid && (cmd->target != NULL)) {
cmd               653 daemons/fenced/fenced_commands.c         crm_node_t *node = pcmk__get_node(0, cmd->target, NULL,
cmd               656 daemons/fenced/fenced_commands.c         cmd->target_nodeid = node->id;
cmd               659 daemons/fenced/fenced_commands.c     cmd->device = pcmk__str_copy(device->id);
cmd               660 daemons/fenced/fenced_commands.c     cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout);
cmd               662 daemons/fenced/fenced_commands.c     if (cmd->remote_op_id) {
cmd               665 daemons/fenced/fenced_commands.c                   cmd->action,
cmd               666 daemons/fenced/fenced_commands.c                   (cmd->target == NULL)? "" : " targeting ",
cmd               667 daemons/fenced/fenced_commands.c                   pcmk__s(cmd->target, ""),
cmd               668 daemons/fenced/fenced_commands.c                   device->id, cmd->origin, cmd->remote_op_id, cmd->timeout);
cmd               671 daemons/fenced/fenced_commands.c                   cmd->action,
cmd               672 daemons/fenced/fenced_commands.c                   (cmd->target == NULL)? "" : " targeting ",
cmd               673 daemons/fenced/fenced_commands.c                   pcmk__s(cmd->target, ""),
cmd               674 daemons/fenced/fenced_commands.c                   device->id, cmd->client, cmd->timeout);
cmd               677 daemons/fenced/fenced_commands.c     device->pending_ops = g_list_append(device->pending_ops, cmd);
cmd               685 daemons/fenced/fenced_commands.c     delay_max = get_action_delay_max(device, cmd->action);
cmd               686 daemons/fenced/fenced_commands.c     delay_base = get_action_delay_base(device, cmd->action, cmd->target);
cmd               694 daemons/fenced/fenced_commands.c                  delay_base, delay_max, cmd->action, device->id);
cmd               699 daemons/fenced/fenced_commands.c         cmd->start_delay +=
cmd               704 daemons/fenced/fenced_commands.c     if (cmd->start_delay > 0) {
cmd               707 daemons/fenced/fenced_commands.c                    cmd->action,
cmd               708 daemons/fenced/fenced_commands.c                    (cmd->target == NULL)? "" : " targeting ",
cmd               709 daemons/fenced/fenced_commands.c                    pcmk__s(cmd->target, ""),
cmd               710 daemons/fenced/fenced_commands.c                    device->id, cmd->start_delay, cmd->timeout,
cmd               712 daemons/fenced/fenced_commands.c         cmd->delay_id =
cmd               713 daemons/fenced/fenced_commands.c             g_timeout_add_seconds(cmd->start_delay, start_delay_helper, cmd);
cmd               727 daemons/fenced/fenced_commands.c         async_command_t *cmd = gIter->data;
cmd               729 daemons/fenced/fenced_commands.c         crm_warn("Removal of device '%s' purged operation '%s'", device->id, cmd->action);
cmd               730 daemons/fenced/fenced_commands.c         report_internal_result(cmd, CRM_EX_ERROR, PCMK_EXEC_NO_FENCE_DEVICE,
cmd              1175 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd              1177 daemons/fenced/fenced_commands.c     cmd = pcmk__assert_alloc(1, sizeof(async_command_t));
cmd              1179 daemons/fenced/fenced_commands.c     cmd->id = -1;
cmd              1180 daemons/fenced/fenced_commands.c     cmd->default_timeout = timeout ? timeout : 60;
cmd              1181 daemons/fenced/fenced_commands.c     cmd->timeout = cmd->default_timeout;
cmd              1182 daemons/fenced/fenced_commands.c     cmd->action = pcmk__str_copy(action);
cmd              1183 daemons/fenced/fenced_commands.c     cmd->target = pcmk__str_copy(target);
cmd              1184 daemons/fenced/fenced_commands.c     cmd->device = pcmk__str_copy(device->id);
cmd              1185 daemons/fenced/fenced_commands.c     cmd->origin = pcmk__str_copy(origin);
cmd              1186 daemons/fenced/fenced_commands.c     cmd->client = pcmk__str_copy(crm_system_name);
cmd              1187 daemons/fenced/fenced_commands.c     cmd->client_name = pcmk__str_copy(crm_system_name);
cmd              1189 daemons/fenced/fenced_commands.c     cmd->internal_user_data = internal_user_data;
cmd              1190 daemons/fenced/fenced_commands.c     cmd->done_cb = done_cb; /* cmd, not internal_user_data, is passed to 'done_cb' as the userdata */
cmd              1192 daemons/fenced/fenced_commands.c     schedule_stonith_command(cmd, device);
cmd              1206 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              1207 daemons/fenced/fenced_commands.c     struct device_search_s *search = cmd->internal_user_data;
cmd              1208 daemons/fenced/fenced_commands.c     stonith_device_t *dev = cmd_device(cmd);
cmd              1211 daemons/fenced/fenced_commands.c     free_async_command(cmd);
cmd              1256 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              1257 daemons/fenced/fenced_commands.c     struct device_search_s *search = cmd->internal_user_data;
cmd              1258 daemons/fenced/fenced_commands.c     stonith_device_t *dev = cmd_device(cmd);
cmd              1261 daemons/fenced/fenced_commands.c     free_async_command(cmd);
cmd              1967 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd              2017 daemons/fenced/fenced_commands.c     cmd = create_async_command(msg);
cmd              2018 daemons/fenced/fenced_commands.c     if (cmd == NULL) {
cmd              2024 daemons/fenced/fenced_commands.c     schedule_stonith_command(cmd, device);
cmd              2558 daemons/fenced/fenced_commands.c log_async_result(const async_command_t *cmd,
cmd              2564 daemons/fenced/fenced_commands.c     guint devices_remaining = g_list_length(cmd->next_device_iter);
cmd              2570 daemons/fenced/fenced_commands.c         log_level = (cmd->target == NULL)? LOG_DEBUG : LOG_NOTICE;
cmd              2572 daemons/fenced/fenced_commands.c             && !pcmk__str_eq(cmd->action, PCMK_ACTION_METADATA,
cmd              2578 daemons/fenced/fenced_commands.c         log_level = (cmd->target == NULL)? LOG_NOTICE : LOG_ERR;
cmd              2580 daemons/fenced/fenced_commands.c             && !pcmk__str_eq(cmd->action, PCMK_ACTION_METADATA,
cmd              2587 daemons/fenced/fenced_commands.c     pcmk__g_strcat(msg, "Operation '", cmd->action, "' ", NULL);
cmd              2591 daemons/fenced/fenced_commands.c     if (cmd->target != NULL) {
cmd              2592 daemons/fenced/fenced_commands.c         pcmk__g_strcat(msg, "targeting ", cmd->target, " ", NULL);
cmd              2594 daemons/fenced/fenced_commands.c     if (cmd->device != NULL) {
cmd              2595 daemons/fenced/fenced_commands.c         pcmk__g_strcat(msg, "using ", cmd->device, " ", NULL);
cmd              2619 daemons/fenced/fenced_commands.c                            (op_merged? "merged " : ""), cmd->id,
cmd              2620 daemons/fenced/fenced_commands.c                            cmd->client_name);
cmd              2628 daemons/fenced/fenced_commands.c         char *prefix = crm_strdup_printf("%s[%d]", cmd->device, pid);
cmd              2645 daemons/fenced/fenced_commands.c send_async_reply(const async_command_t *cmd, const pcmk__action_result_t *result,
cmd              2651 daemons/fenced/fenced_commands.c     CRM_CHECK((cmd != NULL) && (result != NULL), return);
cmd              2653 daemons/fenced/fenced_commands.c     log_async_result(cmd, result, pid, NULL, merged);
cmd              2655 daemons/fenced/fenced_commands.c     if (cmd->client != NULL) {
cmd              2656 daemons/fenced/fenced_commands.c         client = pcmk__find_client_by_id(cmd->client);
cmd              2657 daemons/fenced/fenced_commands.c         if ((client == NULL) && (cmd->origin == NULL)) {
cmd              2658 daemons/fenced/fenced_commands.c             crm_trace("Skipping reply to %s: no longer a client", cmd->client);
cmd              2663 daemons/fenced/fenced_commands.c     reply = construct_async_reply(cmd, result);
cmd              2668 daemons/fenced/fenced_commands.c     if (!stand_alone && pcmk__is_fencing_action(cmd->action)
cmd              2669 daemons/fenced/fenced_commands.c         && pcmk__str_eq(cmd->origin, cmd->target, pcmk__str_casei)) {
cmd              2674 daemons/fenced/fenced_commands.c                   cmd->action, cmd->target);
cmd              2680 daemons/fenced/fenced_commands.c         stonith_send_reply(reply, cmd->options, cmd->origin, client);
cmd              2691 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, PCMK__XA_ST_TARGET, cmd->target);
cmd              2692 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, PCMK__XA_ST_OP, cmd->op);
cmd              2694 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, PCMK__XA_ST_DEVICE_ID, cmd->device);
cmd              2695 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, PCMK__XA_ST_REMOTE_OP, cmd->remote_op_id);
cmd              2696 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, PCMK__XA_ST_ORIGIN, cmd->client);
cmd              2705 daemons/fenced/fenced_commands.c cancel_stonith_command(async_command_t * cmd)
cmd              2707 daemons/fenced/fenced_commands.c     stonith_device_t *device = cmd_device(cmd);
cmd              2711 daemons/fenced/fenced_commands.c                   cmd->action, device->id);
cmd              2712 daemons/fenced/fenced_commands.c         device->pending_ops = g_list_remove(device->pending_ops, cmd);
cmd              2736 daemons/fenced/fenced_commands.c reply_to_duplicates(async_command_t *cmd, const pcmk__action_result_t *result,
cmd              2746 daemons/fenced/fenced_commands.c         if (cmd == cmd_other) {
cmd              2756 daemons/fenced/fenced_commands.c         if (pcmk__str_eq(cmd->client, cmd_other->client, pcmk__str_casei) ||
cmd              2757 daemons/fenced/fenced_commands.c             !pcmk__str_eq(cmd->target, cmd_other->target, pcmk__str_casei) ||
cmd              2758 daemons/fenced/fenced_commands.c             !pcmk__str_eq(cmd->action, cmd_other->action, pcmk__str_none) ||
cmd              2759 daemons/fenced/fenced_commands.c             !pcmk__str_eq(cmd->device, cmd_other->device, pcmk__str_casei)) {
cmd              2769 daemons/fenced/fenced_commands.c                    cmd->client_name);
cmd              2790 daemons/fenced/fenced_commands.c next_required_device(async_command_t *cmd)
cmd              2792 daemons/fenced/fenced_commands.c     for (GList *iter = cmd->next_device_iter; iter != NULL; iter = iter->next) {
cmd              2796 daemons/fenced/fenced_commands.c         if (is_action_required(cmd->action, next_device)) {
cmd              2800 daemons/fenced/fenced_commands.c             cmd->next_device_iter = iter->next;
cmd              2810 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              2815 daemons/fenced/fenced_commands.c     CRM_CHECK(cmd != NULL, return);
cmd              2817 daemons/fenced/fenced_commands.c     device = cmd_device(cmd);
cmd              2818 daemons/fenced/fenced_commands.c     cmd->active_on = NULL;
cmd              2823 daemons/fenced/fenced_commands.c             && pcmk__strcase_any_of(cmd->action, PCMK_ACTION_LIST,
cmd              2834 daemons/fenced/fenced_commands.c         next_device = next_required_device(cmd);
cmd              2836 daemons/fenced/fenced_commands.c     } else if ((cmd->next_device_iter != NULL)
cmd              2837 daemons/fenced/fenced_commands.c                && !is_action_required(cmd->action, device)) {
cmd              2841 daemons/fenced/fenced_commands.c                                           cmd->next_device_iter->data);
cmd              2842 daemons/fenced/fenced_commands.c         cmd->next_device_iter = cmd->next_device_iter->next;
cmd              2846 daemons/fenced/fenced_commands.c         send_async_reply(cmd, result, pid, false);
cmd              2848 daemons/fenced/fenced_commands.c             reply_to_duplicates(cmd, result, pid);
cmd              2850 daemons/fenced/fenced_commands.c         free_async_command(cmd);
cmd              2853 daemons/fenced/fenced_commands.c         log_async_result(cmd, result, pid, next_device->id, false);
cmd              2854 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, next_device);
cmd              2875 daemons/fenced/fenced_commands.c     async_command_t *cmd = user_data;
cmd              2880 daemons/fenced/fenced_commands.c              ndevices, pcmk__plural_s(ndevices), cmd->target);
cmd              2893 daemons/fenced/fenced_commands.c                             cmd->target);
cmd              2894 daemons/fenced/fenced_commands.c         send_async_reply(cmd, &result, 0, false);
cmd              2896 daemons/fenced/fenced_commands.c         free_async_command(cmd);
cmd              2900 daemons/fenced/fenced_commands.c         cmd->device_list = devices;
cmd              2901 daemons/fenced/fenced_commands.c         cmd->next_device_iter = devices->next;
cmd              2902 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, device);
cmd              2918 daemons/fenced/fenced_commands.c     async_command_t *cmd = NULL;
cmd              2925 daemons/fenced/fenced_commands.c     cmd = create_async_command(msg);
cmd              2926 daemons/fenced/fenced_commands.c     if (cmd == NULL) {
cmd              2941 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, device);
cmd              2946 daemons/fenced/fenced_commands.c         if (pcmk_is_set(cmd->options, st_opt_cs_nodeid)) {
cmd              2960 daemons/fenced/fenced_commands.c         get_capable_devices(host, cmd->action, cmd->default_timeout,
cmd              2961 daemons/fenced/fenced_commands.c                             TRUE, cmd, stonith_fence_get_devices_cb,
cmd              2962 daemons/fenced/fenced_commands.c                             fenced_support_flag(cmd->action));
cmd              3041 daemons/fenced/fenced_commands.c construct_async_reply(const async_command_t *cmd,
cmd              3048 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_OP, cmd->op);
cmd              3049 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_DEVICE_ID, cmd->device);
cmd              3050 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_REMOTE_OP, cmd->remote_op_id);
cmd              3051 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_CLIENTID, cmd->client);
cmd              3052 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_CLIENTNAME, cmd->client_name);
cmd              3053 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_TARGET, cmd->target);
cmd              3054 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_DEVICE_ACTION, cmd->op);
cmd              3055 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_ORIGIN, cmd->origin);
cmd              3056 daemons/fenced/fenced_commands.c     crm_xml_add_int(reply, PCMK__XA_ST_CALLID, cmd->id);
cmd              3057 daemons/fenced/fenced_commands.c     crm_xml_add_int(reply, PCMK__XA_ST_CALLOPT, cmd->options);
cmd                23 include/crm/common/options_internal.h _Noreturn void pcmk__cli_help(char cmd);
cmd               289 lib/common/ipc_pacemakerd.c     xmlNode *cmd;
cmd               299 lib/common/ipc_pacemakerd.c     cmd = create_request(task, NULL, NULL, CRM_SYSTEM_MCP,
cmd               303 lib/common/ipc_pacemakerd.c     if (cmd) {
cmd               304 lib/common/ipc_pacemakerd.c         rc = pcmk__send_ipc_request(api, cmd);
cmd               309 lib/common/ipc_pacemakerd.c         free_xml(cmd);
cmd               150 lib/common/ipc_schedulerd.c     xmlNode *cmd = NULL;
cmd               160 lib/common/ipc_schedulerd.c     cmd = create_request(task, cib, NULL, CRM_SYSTEM_PENGINE,
cmd               164 lib/common/ipc_schedulerd.c     if (cmd) {
cmd               165 lib/common/ipc_schedulerd.c         rc = pcmk__send_ipc_request(api, cmd);
cmd               171 lib/common/ipc_schedulerd.c         *ref = strdup(crm_element_value(cmd, PCMK_XA_REFERENCE));
cmd               172 lib/common/ipc_schedulerd.c         free_xml(cmd);
cmd                26 lib/common/options.c pcmk__cli_help(char cmd)
cmd                28 lib/common/options.c     if (cmd == 'v' || cmd == '$') {
cmd                33 lib/common/options.c     } else if (cmd == '!') {
cmd                23 lib/common/unittest.c     char *cmd = NULL;
cmd                53 lib/common/unittest.c     cmd = crm_strdup_printf("xmllint --relaxng %s/api/api-result.rng %s",
cmd                56 lib/common/unittest.c     if (!g_spawn_command_line_sync(cmd, &out, &err, &status, &gerr)) {
cmd                66 lib/common/unittest.c     free(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               318 maint/gnulib/lib/get_progname_of.c       char *cmd = status.pst_cmd;
cmd               325 maint/gnulib/lib/get_progname_of.c           char *space = strchr (cmd, ' ');
cmd               328 maint/gnulib/lib/get_progname_of.c           p = strrchr (cmd, '/');
cmd               332 maint/gnulib/lib/get_progname_of.c             p = cmd;
cmd               354 maint/gnulib/lib/get_progname_of.c           char *cmd = status64 + 168;
cmd               361 maint/gnulib/lib/get_progname_of.c               char *space = strchr (cmd, ' ');
cmd               364 maint/gnulib/lib/get_progname_of.c               p = strrchr (cmd, '/');
cmd               368 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               667 tools/crm_node.c     xmlNode *cmd = NULL;
cmd               689 tools/crm_node.c     cmd = create_request(CRM_OP_RM_NODE_CACHE, NULL, NULL, "stonith-ng",
cmd               692 tools/crm_node.c         crm_xml_add_ll(cmd, PCMK_XA_ID, node_id);
cmd               694 tools/crm_node.c     crm_xml_add(cmd, PCMK_XA_UNAME, node_name);
cmd               696 tools/crm_node.c     rc = crm_ipc_send(conn, cmd, 0, 0, NULL);
cmd               706 tools/crm_node.c     free_xml(cmd);
cmd               198 tools/crm_resource_runtime.c                              const char * attr_name, cib_t * cib, const char * cmd,
cmd               217 tools/crm_resource_runtime.c                       cmd, attr_name, rsc->id, rsc_id);
cmd               233 tools/crm_resource_runtime.c                           attr_name, lookup_id, cmd, rsc_id);
cmd                73 tools/crm_shadow.c     enum shadow_command cmd;
cmd              1054 tools/crm_shadow.c         options.cmd = shadow_cmd_which;
cmd              1057 tools/crm_shadow.c         options.cmd = shadow_cmd_display;
cmd              1060 tools/crm_shadow.c         options.cmd = shadow_cmd_diff;
cmd              1063 tools/crm_shadow.c         options.cmd = shadow_cmd_file;
cmd              1066 tools/crm_shadow.c         options.cmd = shadow_cmd_create;
cmd              1069 tools/crm_shadow.c         options.cmd = shadow_cmd_create_empty;
cmd              1072 tools/crm_shadow.c         options.cmd = shadow_cmd_commit;
cmd              1075 tools/crm_shadow.c         options.cmd = shadow_cmd_delete;
cmd              1078 tools/crm_shadow.c         options.cmd = shadow_cmd_edit;
cmd              1081 tools/crm_shadow.c         options.cmd = shadow_cmd_reset;
cmd              1084 tools/crm_shadow.c         options.cmd = shadow_cmd_switch;
cmd              1248 tools/crm_shadow.c     if (options.cmd == shadow_cmd_none) {
cmd              1267 tools/crm_shadow.c     switch (options.cmd) {