task 257 daemons/controld/controld_callbacks.c const char *task = crm_element_value(down->xml, XML_LRM_ATTR_TASK); task 259 daemons/controld/controld_callbacks.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 265 daemons/controld/controld_callbacks.c } else if (!appeared && pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 275 daemons/controld/controld_callbacks.c task, node->uname, down->id); task 278 daemons/controld/controld_callbacks.c task, node->uname, down->id); task 288 daemons/controld/controld_callbacks.c task, down->id); task 272 daemons/controld/controld_execd.c const char *rsc_id, lrmd_rsc_info_t *rsc, const char *task, task 275 daemons/controld/controld_execd.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); task 365 daemons/controld/controld_fencing.c const char *task = NULL; task 387 daemons/controld/controld_fencing.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 388 daemons/controld/controld_fencing.c if (task && pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 339 daemons/controld/controld_messages.c const char *task = crm_element_value(msg, F_CRM_TASK); task 350 daemons/controld/controld_messages.c } else if (pcmk__str_eq(task, CRM_OP_HELLO, pcmk__str_casei)) { task 379 daemons/controld/controld_messages.c if (pcmk__strcase_any_of(task, CRM_OP_NODE_INFO, task 397 daemons/controld/controld_messages.c } else if (is_for_crm && pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 43 daemons/controld/controld_te_actions.c const char *task = crm_element_value(pseudo->xml, XML_LRM_ATTR_TASK); task 46 daemons/controld/controld_te_actions.c if (pcmk__str_eq(task, CRM_OP_MAINTENANCE_NODES, pcmk__str_casei)) { task 58 daemons/controld/controld_te_actions.c cmd = create_request(task, pseudo->xml, node->uname, task 94 daemons/controld/controld_te_actions.c const char *task = NULL; task 103 daemons/controld/controld_te_actions.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 109 daemons/controld/controld_te_actions.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 119 daemons/controld/controld_te_actions.c crm_err("Corrupted command (id=%s) %s: no node", crm_str(id), crm_str(task)); task 133 daemons/controld/controld_te_actions.c (no_wait? " without waiting" : ""), crm_str(task), on_node); task 135 daemons/controld/controld_te_actions.c if (is_local && pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 143 daemons/controld/controld_te_actions.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 149 daemons/controld/controld_te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); task 169 daemons/controld/controld_te_actions.c action->id, task, on_node, action->timeout, graph->network_delay); task 280 daemons/controld/controld_te_actions.c const char *task = NULL; task 293 daemons/controld/controld_te_actions.c crm_err("Corrupted command(id=%s) %s: no node", ID(action->xml), crm_str(task)); task 297 daemons/controld/controld_te_actions.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 319 daemons/controld/controld_te_actions.c task, task_uuid, (is_local? " locally" : ""), on_node, task 367 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout); task 371 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout, graph->network_delay); task 438 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 452 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 473 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 499 daemons/controld/controld_te_actions.c if (pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 515 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 528 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 659 daemons/controld/controld_te_callbacks.c const char *task = NULL; task 670 daemons/controld/controld_te_callbacks.c task = crm_element_value(timer->action->xml, XML_LRM_ATTR_TASK); task 677 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 684 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 696 daemons/controld/controld_te_callbacks.c && controld_action_is_recordable(task)) { task 54 daemons/controld/controld_te_events.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 56 daemons/controld/controld_te_events.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 116 daemons/controld/controld_te_events.c char *task = NULL; task 135 daemons/controld/controld_te_events.c CRM_CHECK(parse_op_key(id, &rsc_id, &task, &interval_ms), task 139 daemons/controld/controld_te_events.c if ((interval_ms > 0) || pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei) task 140 daemons/controld/controld_te_events.c || pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 143 daemons/controld/controld_te_events.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 150 daemons/controld/controld_te_events.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 174 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); task 178 daemons/controld/controld_te_events.c attr_name = pcmk__failcount_name(rsc_id, task, interval_ms); task 186 daemons/controld/controld_te_events.c attr_name = pcmk__lastfailure_name(rsc_id, task, interval_ms); task 195 daemons/controld/controld_te_events.c free(task); task 228 daemons/controld/controld_te_events.c const char *task = NULL; task 232 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 233 daemons/controld/controld_te_events.c if (!pcmk__str_eq(CRMD_ACTION_CANCEL, task, pcmk__str_casei)) { task 237 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); task 238 daemons/controld/controld_te_events.c if (!pcmk__str_eq(task, id, pcmk__str_casei)) { task 239 daemons/controld/controld_te_events.c crm_trace("Wrong key %s for %s on %s", task, id, node); task 28 daemons/controld/controld_transition.h const char *get_rsc_state(const char *task, enum pcmk_exec_status status); task 155 daemons/pacemakerd/pcmkd_messages.c const char *task = NULL; task 167 daemons/pacemakerd/pcmkd_messages.c task = crm_element_value(msg, F_CRM_TASK); task 168 daemons/pacemakerd/pcmkd_messages.c if (pcmk__str_eq(task, CRM_OP_QUIT, pcmk__str_none)) { task 172 daemons/pacemakerd/pcmkd_messages.c } else if (pcmk__str_eq(task, CRM_OP_RM_NODE_CACHE, pcmk__str_none)) { task 177 daemons/pacemakerd/pcmkd_messages.c } else if (pcmk__str_eq(task, CRM_OP_PING, pcmk__str_none)) { task 183 daemons/pacemakerd/pcmkd_messages.c crm_str(task), pcmk__client_name(c)); task 42 include/crm/common/ipc.h #define create_request(task, xml_data, host_to, sys_to, sys_from, uuid_from) \ task 43 include/crm/common/ipc.h create_request_adv(task, xml_data, host_to, sys_to, sys_from, uuid_from, \ task 46 include/crm/common/ipc.h xmlNode *create_request_adv(const char *task, xmlNode *xml_data, task 71 include/crm/common/util.h const char *task, const char *interval_spec, task 223 include/crm/crm.h crm_action_str(const char *task, guint interval_ms) { task 224 include/crm/crm.h if ((task != NULL) && (interval_ms == 0) task 225 include/crm/crm.h && (strcasecmp(task, RSC_STATUS) == 0)) { task 228 include/crm/crm.h return task; task 252 include/crm/lrmd.h lrmd_event_data_t *lrmd_new_event(const char *rsc_id, const char *task, task 30 include/crm/lrmd_internal.h const char *target, const char *task, task 138 include/crm/pengine/common.h const char *task2text(enum action_tasks task); task 139 include/crm/pengine/common.h enum action_tasks text2task(const char *task); task 363 include/crm/pengine/internal.h extern pe_action_t *custom_action(pe_resource_t * rsc, char *key, const char *task, pe_node_t * on_node, task 415 include/crm/pengine/internal.h extern pe_action_t *find_first_action(GList *input, const char *uuid, const char *task, task 425 include/crm/pengine/internal.h const char *task, bool require_node); task 487 include/crm/pengine/internal.h op_digest_cache_t *pe__calculate_digests(pe_resource_t *rsc, const char *task, task 414 include/crm/pengine/pe_types.h char *task; task 59 include/pcmki/pcmki_sched_utils.h pe_action_t *create_pseudo_resource_op(pe_resource_t * rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set); task 139 lib/common/attrd_client.c const char *task = NULL; task 159 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE; task 165 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE; task 169 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_REFRESH; task 173 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE_BOTH; task 177 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE_DELAY; task 181 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_QUERY; task 185 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_PEER_REMOVE; task 198 lib/common/attrd_client.c crm_xml_add(update, PCMK__XA_TASK, task); task 212 lib/common/ipc_pacemakerd.c do_pacemakerd_api_call(pcmk_ipc_api_t *api, const char *ipc_name, const char *task) task 222 lib/common/ipc_pacemakerd.c cmd = create_request(task, NULL, NULL, CRM_SYSTEM_MCP, task 40 lib/common/messages.c create_request_adv(const char *task, xmlNode * msg_data, task 50 lib/common/messages.c (task? task : "_empty_"), task 70 lib/common/messages.c crm_xml_add(request, F_CRM_TASK, task); task 474 lib/common/operations.c crm_create_op_xml(xmlNode *parent, const char *prefix, const char *task, task 479 lib/common/operations.c CRM_CHECK(prefix && task && interval_spec, return NULL); task 482 lib/common/operations.c crm_xml_set_id(xml_op, "%s-%s-%s", prefix, task, interval_spec); task 484 lib/common/operations.c crm_xml_add(xml_op, "name", task); task 311 lib/lrmd/lrmd_alerts.c const char *target, const char *task, const char *desc, task 322 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_task, task); task 196 lib/lrmd/lrmd_client.c lrmd_new_event(const char *rsc_id, const char *task, guint interval_ms) task 205 lib/lrmd/lrmd_client.c if (task != NULL) { task 206 lib/lrmd/lrmd_client.c event->op_type = strdup(task); task 69 lib/pacemaker/pcmk_graph_producer.c int task = no_action; task 88 lib/pacemaker/pcmk_graph_producer.c task = text2task(raw_task); task 89 lib/pacemaker/pcmk_graph_producer.c switch (task) { task 101 lib/pacemaker/pcmk_graph_producer.c task--; task 106 lib/pacemaker/pcmk_graph_producer.c task = no_action; task 110 lib/pacemaker/pcmk_graph_producer.c task = no_action; task 114 lib/pacemaker/pcmk_graph_producer.c if (task != no_action) { task 116 lib/pacemaker/pcmk_graph_producer.c uuid = pcmk__notify_key(rid, "confirmed-post", task2text(task + 1)); task 119 lib/pacemaker/pcmk_graph_producer.c uuid = pcmk__op_key(rid, task2text(task + 1), 0); task 390 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(first->task, RSC_STOP, pcmk__str_casei) task 467 lib/pacemaker/pcmk_graph_producer.c if (first->rsc && first->rsc->variant == pe_group && pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { task 475 lib/pacemaker/pcmk_graph_producer.c if (then->rsc && then->rsc->variant == pe_group && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei)) { task 504 lib/pacemaker/pcmk_graph_producer.c if (!strcmp(first->task, CRMD_ACTION_RELOAD_AGENT)) { task 713 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 719 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 731 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 743 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(input->task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 767 lib/pacemaker/pcmk_graph_producer.c if (action->node->details->shutdown && action->task task 768 lib/pacemaker/pcmk_graph_producer.c && strcmp(action->task, RSC_STOP)) { task 790 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 797 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 800 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_CLEAR_FAILCOUNT, pcmk__str_casei)) { task 803 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_REFRESH, pcmk__str_casei)) { task 806 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 815 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_MAINTENANCE_NODES, pcmk__str_casei)) { task 830 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(action_xml, XML_LRM_ATTR_TASK, action->task); task 841 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, RSC_NOTIFY, pcmk__str_casei)) { task 856 lib/pacemaker/pcmk_graph_producer.c action->task, interval_ms); task 1028 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei) && action->node) { task 1064 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->task, CRM_OP_PROBED, pcmk__str_casei)) { task 1087 lib/pacemaker/pcmk_graph_producer.c } else if (!pcmk__str_eq(wrapper->action->task, RSC_START, pcmk__str_casei)) { task 1113 lib/pacemaker/pcmk_graph_producer.c && !pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_casei)) { task 1127 lib/pacemaker/pcmk_graph_producer.c pcmk__strcase_any_of(action->task, CRM_OP_FENCE, CRM_OP_SHUTDOWN, NULL)) { task 1291 lib/pacemaker/pcmk_graph_producer.c if (action->rsc && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei)) { task 765 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 775 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 776 lib/pacemaker/pcmk_output.c } else if (pcmk__str_eq(task, "monitor", pcmk__str_none)) { task 780 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 835 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 845 lib/pacemaker/pcmk_output.c "task", crm_str(task), task 1061 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1065 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1068 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s %s '%s'", task, node_name, reason); task 1070 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s\n", task, node_name); task 1080 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1084 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1088 lib/pacemaker/pcmk_output.c "task", task, task 1093 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s\n", task, node_name); task 1104 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1112 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s for %s on %s", task, ID(rsc), node); task 1114 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s on %s", task, node); task 1125 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1135 lib/pacemaker/pcmk_output.c "task", task, task 1394 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1400 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Pseudo action: %s%s%s", task, node ? " on " : "", task 1410 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1419 lib/pacemaker/pcmk_output.c "task", task, task 88 lib/pacemaker/pcmk_resource.c const char *task = NULL; task 107 lib/pacemaker/pcmk_resource.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 110 lib/pacemaker/pcmk_resource.c if (task == NULL) { // Assume start if no history is available task 111 lib/pacemaker/pcmk_resource.c task = RSC_START; task 116 lib/pacemaker/pcmk_resource.c digests = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, task 118 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); task 151 lib/pacemaker/pcmk_sched_allocate.c const char *task = NULL; task 157 lib/pacemaker/pcmk_sched_allocate.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 162 lib/pacemaker/pcmk_sched_allocate.c rsc->id, task, interval_ms, task 165 lib/pacemaker/pcmk_sched_allocate.c cancel = pe_cancel_op(rsc, task, interval_ms, active_node, data_set); task 180 lib/pacemaker/pcmk_sched_allocate.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 190 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 211 lib/pacemaker/pcmk_sched_allocate.c rsc->id, task, interval_ms, active_node->details->uname); task 212 lib/pacemaker/pcmk_sched_allocate.c if ((interval_ms == 0) && pcmk__str_eq(task, RSC_STATUS, pcmk__str_casei)) { task 214 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 216 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms == 0) && pcmk__str_eq(task, RSC_MIGRATED, pcmk__str_casei)) { task 218 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 219 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms == 0) && pcmk__str_eq(task, RSC_PROMOTE, pcmk__str_casei)) { task 221 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 237 lib/pacemaker/pcmk_sched_allocate.c PCMK__OP_FMT " on %s changed: %s", rsc->id, task, task 247 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 249 lib/pacemaker/pcmk_sched_allocate.c required = custom_action(rsc, key, task, NULL, FALSE, TRUE, data_set); task 260 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 270 lib/pacemaker/pcmk_sched_allocate.c op = custom_action(rsc, key, task, active_node, TRUE, TRUE, data_set); task 275 lib/pacemaker/pcmk_sched_allocate.c pe_rsc_trace(rsc, "Reloading '%s' action for resource %s", task, rsc->id); task 289 lib/pacemaker/pcmk_sched_allocate.c required = custom_action(rsc, key, task, NULL, FALSE, TRUE, task 350 lib/pacemaker/pcmk_sched_allocate.c const char *task = NULL; task 410 lib/pacemaker/pcmk_sched_allocate.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 418 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms > 0) || pcmk__strcase_any_of(task, RSC_STATUS, RSC_START, task 1466 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(dc_down->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 1472 lib/pacemaker/pcmk_sched_allocate.c dc_down->task, dc_down->node->details->uname); task 1511 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(rh_action->task, CRM_OP_FENCE, pcmk__str_casei) task 1522 lib/pacemaker/pcmk_sched_allocate.c if ((pcmk__str_eq(rh_action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) task 1570 lib/pacemaker/pcmk_sched_allocate.c if (lh_action && !pcmk__str_eq(lh_action->task, RSC_STOP, pcmk__str_casei)) { task 1584 lib/pacemaker/pcmk_sched_allocate.c if (rh_action && pcmk__str_eq(rh_action->task, RSC_STOP, pcmk__str_casei)) { task 1676 lib/pacemaker/pcmk_sched_allocate.c if (!pcmk__str_eq(probe->task, RSC_STATUS, pcmk__str_casei)) { task 1699 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(after->task, RSC_START, pcmk__str_casei)) { task 1702 lib/pacemaker/pcmk_sched_allocate.c } else if (pcmk__str_eq(after->task, RSC_PROMOTE, pcmk__str_casei)) { task 1931 lib/pacemaker/pcmk_sched_allocate.c } else if(!pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { task 2081 lib/pacemaker/pcmk_sched_allocate.c && pcmk__str_eq(action->task, RSC_STOP, pcmk__str_none) task 2115 lib/pacemaker/pcmk_sched_allocate.c char *task = NULL; task 2131 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 2132 lib/pacemaker/pcmk_sched_allocate.c task = strdup("Shutdown"); task 2133 lib/pacemaker/pcmk_sched_allocate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 2135 lib/pacemaker/pcmk_sched_allocate.c task = crm_strdup_printf("Fence (%s)", op); task 2138 lib/pacemaker/pcmk_sched_allocate.c out->message(out, "node-action", task, node_name, action->reason); task 2141 lib/pacemaker/pcmk_sched_allocate.c free(task); task 559 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = get_complex_task(data->child, action->task, TRUE); task 560 lib/pacemaker/pcmk_sched_bundle.c switch(task) { task 683 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = clone_child_action(first); task 684 lib/pacemaker/pcmk_sched_bundle.c const char *first_task = task2text(task); task 691 lib/pacemaker/pcmk_sched_bundle.c if (strstr(first->task, "stop") && first_replica && first_replica->child) { task 698 lib/pacemaker/pcmk_sched_bundle.c NULL, task2text(task), node); task 700 lib/pacemaker/pcmk_sched_bundle.c first_action = find_first_action(first_child->actions, NULL, task2text(task), node); task 704 lib/pacemaker/pcmk_sched_bundle.c if (strstr(then->task, "mote") task 714 lib/pacemaker/pcmk_sched_bundle.c NULL, then->task, node); task 716 lib/pacemaker/pcmk_sched_bundle.c then_action = find_first_action(then_child->actions, NULL, then->task, node); task 736 lib/pacemaker/pcmk_sched_bundle.c && !pcmk__str_any_of(then->task, RSC_STOP, RSC_DEMOTE, NULL)) { task 738 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id); task 742 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id, task 766 lib/pacemaker/pcmk_sched_bundle.c then_child->id, then_action, task2text(task)); task 837 lib/pacemaker/pcmk_sched_bundle.c pe_action_t *then_child_action = find_first_action(then_child->actions, NULL, then->task, node); task 786 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_STOP, action->task, pcmk__str_casei)) { task 790 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_START, action->task, pcmk__str_casei)) { task 809 lib/pacemaker/pcmk_sched_clone.c find_rsc_action(pe_resource_t *rsc, const char *task) task 812 lib/pacemaker/pcmk_sched_clone.c GList *actions = pe__resource_actions(rsc, NULL, task, FALSE); task 1219 lib/pacemaker/pcmk_sched_clone.c if (pcmk__strcase_any_of(action->task, "notify", "notified", NULL)) { task 1246 lib/pacemaker/pcmk_sched_clone.c result = get_complex_task(child, action->task, TRUE); task 1263 lib/pacemaker/pcmk_sched_clone.c enum action_tasks task = clone_child_action(action); task 1265 lib/pacemaker/pcmk_sched_clone.c const char *task_s = task2text(task); task 754 lib/pacemaker/pcmk_sched_colocation.c && pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 779 lib/pacemaker/pcmk_sched_colocation.c && pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 77 lib/pacemaker/pcmk_sched_fencing.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 353 lib/pacemaker/pcmk_sched_fencing.c rsc->id, action->task); task 210 lib/pacemaker/pcmk_sched_group.c if (pcmk__str_eq(RSC_STOP, action->task, pcmk__str_casei) task 216 lib/pacemaker/pcmk_sched_group.c } else if (pcmk__str_eq(RSC_START, action->task, pcmk__str_casei) task 457 lib/pacemaker/pcmk_sched_group.c enum action_tasks task = get_complex_task(child, action->task, TRUE); task 458 lib/pacemaker/pcmk_sched_group.c const char *task_s = task2text(task); task 472 lib/pacemaker/pcmk_sched_group.c if (!pcmk__str_eq(task_s, action->task, pcmk__str_casei) task 483 lib/pacemaker/pcmk_sched_group.c } else if (task != stop_rsc && task != action_demote) { task 508 lib/pacemaker/pcmk_sched_group.c pe_action_t *child_action = find_first_action(child->actions, NULL, then->task, node); task 844 lib/pacemaker/pcmk_sched_native.c mon->task, interval_ms / 1000, rsc->id, node_uname); task 1080 lib/pacemaker/pcmk_sched_native.c crm_notice(" Start recurring %s (%us) for %s on %s", stopped_mon->task, task 1863 lib/pacemaker/pcmk_sched_native.c } else if ((then_rsc_role == RSC_ROLE_STOPPED) && pcmk__str_eq(then->task, RSC_STOP, pcmk__str_casei)) { task 1867 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei) task 212 lib/pacemaker/pcmk_sched_notif.c const char *task = NULL; task 231 lib/pacemaker/pcmk_sched_notif.c task = g_hash_table_lookup(op->meta, "notify_operation"); task 233 lib/pacemaker/pcmk_sched_notif.c pe_rsc_trace(rsc, "Creating notify actions for %s: %s (%s-%s)", op->uuid, rsc->id, value, task); task 235 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, value, task); task 236 lib/pacemaker/pcmk_sched_notif.c trigger = custom_action(rsc, key, op->task, node, task 279 lib/pacemaker/pcmk_sched_notif.c } else if (pcmk__str_eq(mon->task, RSC_CANCEL, pcmk__str_casei)) { task 314 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "pre", start->task); task 325 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->pre->meta, "notify_key_operation", start->task); task 328 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "confirmed-pre", start->task); task 339 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->pre_done->meta, "notify_key_operation", start->task); task 347 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "post", end->task); task 364 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->post->meta, "notify_key_operation", end->task); task 367 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "confirmed-post", end->task); task 384 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->post_done->meta, "notify_key_operation", end->task); task 454 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task; task 464 lib/pacemaker/pcmk_sched_notif.c task = text2task(op->task); task 466 lib/pacemaker/pcmk_sched_notif.c if(task == stop_rsc && op->node->details->unclean) { task 476 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 642 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task = text2task(n_data->action); task 662 lib/pacemaker/pcmk_sched_notif.c enum action_tasks t = text2task(op->task); task 677 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 714 lib/pacemaker/pcmk_sched_notif.c if (task == stop_rsc || task == action_demote) { task 729 lib/pacemaker/pcmk_sched_notif.c if (task == action_demote || stop == NULL task 743 lib/pacemaker/pcmk_sched_notif.c } else if (task == start_rsc || task == action_promote) { task 758 lib/pacemaker/pcmk_sched_notif.c if ((task != start_rsc) || (start == NULL) task 322 lib/pacemaker/pcmk_sched_ordering.c char *task = crm_strdup_printf(CRM_OP_RELAXED_CLONE ":%s", id); task 323 lib/pacemaker/pcmk_sched_ordering.c pe_action_t *clone_min_met = get_pseudo_op(task, data_set); task 325 lib/pacemaker/pcmk_sched_ordering.c free(task); task 484 lib/pacemaker/pcmk_sched_ordering.c res = strdup(action->task); task 904 lib/pacemaker/pcmk_sched_ordering.c char *task = crm_strdup_printf(CRM_OP_RELAXED_SET ":%s", ID(set1)); task 905 lib/pacemaker/pcmk_sched_ordering.c pe_action_t *unordered_action = get_pseudo_op(task, data_set); task 907 lib/pacemaker/pcmk_sched_ordering.c free(task); task 1236 lib/pacemaker/pcmk_sched_ordering.c && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei) task 1280 lib/pacemaker/pcmk_sched_ordering.c || !pcmk__str_eq(action->task, RSC_STOP, pcmk__str_casei)) { task 1342 lib/pacemaker/pcmk_sched_ordering.c char *task = NULL; task 1345 lib/pacemaker/pcmk_sched_ordering.c if (parse_op_key(original_key, NULL, &task, &interval_ms)) { task 1346 lib/pacemaker/pcmk_sched_ordering.c key = pcmk__op_key(rsc->id, task, interval_ms); task 1349 lib/pacemaker/pcmk_sched_ordering.c free(task); task 134 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_DEMOTE, action->task, pcmk__str_casei)) { task 137 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_PROMOTE, action->task, pcmk__str_casei)) { task 181 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task = text2task(action->task); task 196 lib/pacemaker/pcmk_sched_remote.c action->task, action->uuid, task 200 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, task 205 lib/pacemaker/pcmk_sched_remote.c task = stop_rsc; task 208 lib/pacemaker/pcmk_sched_remote.c switch (task) { task 281 lib/pacemaker/pcmk_sched_remote.c if ((task == monitor_rsc) && (state == remote_state_failed)) { task 320 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task = text2task(action->task); task 337 lib/pacemaker/pcmk_sched_remote.c action->task, action->uuid, task 343 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, task 348 lib/pacemaker/pcmk_sched_remote.c task = stop_rsc; task 351 lib/pacemaker/pcmk_sched_remote.c switch (task) { task 393 lib/pacemaker/pcmk_sched_remote.c if(task != no_action) { task 434 lib/pacemaker/pcmk_sched_remote.c pcmk__str_eq(action->task, CRM_OP_CLEAR_FAILCOUNT, pcmk__str_casei)) { task 473 lib/pacemaker/pcmk_sched_remote.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 479 lib/pacemaker/pcmk_sched_remote.c && pcmk__str_eq(rsc_action->task, RSC_STOP, pcmk__str_casei)) { task 560 lib/pacemaker/pcmk_sched_remote.c const char *task = action->task; task 562 lib/pacemaker/pcmk_sched_remote.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei) task 580 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 589 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 598 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 611 lib/pacemaker/pcmk_sched_remote.c if (pcmk__str_eq(task, "notify", pcmk__str_casei)) { task 612 lib/pacemaker/pcmk_sched_remote.c task = g_hash_table_lookup(action->meta, "notify_operation"); task 627 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(task, "cancel", "stop", "demote", "migrate_from", task 631 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 643 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 695 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task; task 701 lib/pacemaker/pcmk_sched_remote.c task = text2task(action->task); task 702 lib/pacemaker/pcmk_sched_remote.c if ((task == action_notify) || (task == action_notified)) { task 703 lib/pacemaker/pcmk_sched_remote.c task = text2task(g_hash_table_lookup(action->meta, "notify_operation")); task 706 lib/pacemaker/pcmk_sched_remote.c switch (task) { task 69 lib/pacemaker/pcmk_sched_transition.c update_failcounts(xmlNode * cib_node, const char *resource, const char *task, task 82 lib/pacemaker/pcmk_sched_transition.c name = pcmk__failcount_name(resource, task, interval_ms); task 86 lib/pacemaker/pcmk_sched_transition.c name = pcmk__lastfailure_name(resource, task, interval_ms); task 118 lib/pacemaker/pcmk_sched_transition.c create_op(xmlNode *cib_resource, const char *task, guint interval_ms, task 124 lib/pacemaker/pcmk_sched_transition.c op = lrmd_new_event(ID(cib_resource), task, interval_ms); task 532 lib/pacemaker/pcmk_sched_transition.c char *task = NULL; task 553 lib/pacemaker/pcmk_sched_transition.c parse_op_key(key, &resource, &task, &interval_ms); task 566 lib/pacemaker/pcmk_sched_transition.c update_failcounts(cib_node, resource, task, interval_ms, outcome); task 572 lib/pacemaker/pcmk_sched_transition.c op = create_op(cib_resource, task, interval_ms, outcome); task 583 lib/pacemaker/pcmk_sched_transition.c free(task); task 597 lib/pacemaker/pcmk_sched_transition.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); task 600 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-pseudo-action", node, task); task 748 lib/pacemaker/pcmk_sched_transition.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 752 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-cluster-action", node, task, rsc); task 271 lib/pacemaker/pcmk_sched_utils.c if(pcmk__str_eq(RSC_STOP, op->task, pcmk__str_casei)) { task 274 lib/pacemaker/pcmk_sched_utils.c } else if(pcmk__str_eq(RSC_START, op->task, pcmk__str_casei)) { task 332 lib/pacemaker/pcmk_sched_utils.c switch (text2task(action->task)) { task 427 lib/pacemaker/pcmk_sched_utils.c create_pseudo_resource_op(pe_resource_t * rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set) task 429 lib/pacemaker/pcmk_sched_utils.c pe_action_t *action = custom_action(rsc, pcmk__op_key(rsc->id, task, 0), task 430 lib/pacemaker/pcmk_sched_utils.c task, NULL, optional, TRUE, data_set); task 452 lib/pacemaker/pcmk_sched_utils.c pe_cancel_op(pe_resource_t *rsc, const char *task, guint interval_ms, task 459 lib/pacemaker/pcmk_sched_utils.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 464 lib/pacemaker/pcmk_sched_utils.c free(cancel_op->task); task 465 lib/pacemaker/pcmk_sched_utils.c cancel_op->task = strdup(RSC_CANCEL); task 468 lib/pacemaker/pcmk_sched_utils.c cancel_op->cancel_task = strdup(task); task 470 lib/pacemaker/pcmk_sched_utils.c add_hash_param(cancel_op->meta, XML_LRM_ATTR_TASK, task); task 572 lib/pacemaker/pcmk_sched_utils.c const char *task = NULL; task 581 lib/pacemaker/pcmk_sched_utils.c task = op->op_type; task 592 lib/pacemaker/pcmk_sched_utils.c if (pcmk__str_any_of(task, CRMD_ACTION_RELOAD, CRMD_ACTION_RELOAD_AGENT, task 595 lib/pacemaker/pcmk_sched_utils.c task = CRMD_ACTION_START; task 597 lib/pacemaker/pcmk_sched_utils.c task = CRMD_ACTION_STATUS; task 601 lib/pacemaker/pcmk_sched_utils.c key = pcmk__op_key(op->rsc_id, task, op->interval_ms); task 602 lib/pacemaker/pcmk_sched_utils.c if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_none)) { task 655 lib/pacemaker/pcmk_sched_utils.c crm_xml_add(xml_op, XML_LRM_ATTR_TASK, task); task 29 lib/pacemaker/pcmk_simulate.c const char *task = action->task; task 37 lib/pacemaker/pcmk_simulate.c if (pcmk__str_eq(action->task, RSC_CANCEL, pcmk__str_casei)) { task 39 lib/pacemaker/pcmk_simulate.c task = action->cancel_task; task 56 lib/pacemaker/pcmk_simulate.c if (pcmk__strcase_any_of(action->task, RSC_NOTIFY, RSC_NOTIFIED, NULL)) { task 65 lib/pacemaker/pcmk_simulate.c key = pcmk__op_key(clone_name, task, interval_ms); task 75 lib/pacemaker/pcmk_simulate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 78 lib/pacemaker/pcmk_simulate.c action_name = crm_strdup_printf("%s%s '%s' %s", prefix, action->task, op, action_host); task 84 lib/pacemaker/pcmk_simulate.c action_name = crm_strdup_printf("%s%s %s", prefix, action->task, action_host); task 354 lib/pengine/common.c text2task(const char *task) task 356 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 358 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOPPED, pcmk__str_casei)) { task 360 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 362 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STARTED, pcmk__str_casei)) { task 364 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 366 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 368 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 370 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_casei)) { task 372 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFIED, pcmk__str_casei)) { task 374 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 376 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 378 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTED, pcmk__str_casei)) { task 380 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTED, pcmk__str_casei)) { task 384 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_CANCEL, pcmk__str_casei)) { task 386 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DELETE, pcmk__str_casei)) { task 388 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 390 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_PROBED, pcmk__str_casei)) { task 392 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_LRM_REFRESH, pcmk__str_casei)) { task 394 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 396 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 399 lib/pengine/common.c crm_trace("Unsupported action: %s", task); task 406 lib/pengine/common.c task2text(enum action_tasks task) task 410 lib/pengine/common.c switch (task) { task 140 lib/pengine/pe_digest.c const char *task, guint *interval_ms, task 172 lib/pengine/pe_digest.c action = custom_action(rsc, pcmk__op_key(rsc->id, task, *interval_ms), task 173 lib/pengine/pe_digest.c task, node, TRUE, FALSE, data_set); task 321 lib/pengine/pe_digest.c pe__calculate_digests(pe_resource_t *rsc, const char *task, guint *interval_ms, task 337 lib/pengine/pe_digest.c calculate_main_digest(data, rsc, node, params, task, interval_ms, xml_op, task 362 lib/pengine/pe_digest.c rsc_action_digest(pe_resource_t *rsc, const char *task, guint interval_ms, task 367 lib/pengine/pe_digest.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 371 lib/pengine/pe_digest.c data = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, task 399 lib/pengine/pe_digest.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 410 lib/pengine/pe_digest.c data = rsc_action_digest(rsc, task, interval_ms, node, xml_op, task 418 lib/pengine/pe_digest.c interval_ms, task, rsc->id, node->details->uname, task 431 lib/pengine/pe_digest.c interval_ms, task, rsc->id, node->details->uname, task 131 lib/pengine/pe_output.c const char *task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 140 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 142 lib/pengine/pe_output.c task = "probe"; task 146 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_casei) || (pcmk__str_eq(task, "probe", pcmk__str_casei) && (op_rc_i == 7))) { task 203 lib/pengine/pe_output.c op_history_string(xmlNode *xml_op, const char *task, const char *interval_ms_s, task 246 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s:%s%s%s%s rc=%d (%s)", call, task, task 265 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s%s%s", call, task, task 1126 lib/pengine/pe_output.c char *task = NULL; task 1133 lib/pengine/pe_output.c || !parse_op_key(op_key, &rsc_id, &task, &interval_ms)) { task 1135 lib/pengine/pe_output.c task = strdup("unknown action"); task 1139 lib/pengine/pe_output.c str = g_string_sized_new(strlen(rsc_id) + strlen(task) + strlen(node_name) task 1149 lib/pengine/pe_output.c crm_action_str(task, interval_ms), node_name); task 1183 lib/pengine/pe_output.c free(task); task 2282 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2287 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, task 2301 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2309 lib/pengine/pe_output.c "task", task, task 2606 lib/pengine/pe_output.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 2615 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 2617 lib/pengine/pe_output.c task = "probe"; task 2632 lib/pengine/pe_output.c out->message(out, "op-history", xml_op, task, interval_ms_s, task 2200 lib/pengine/unpack.c const char *task = NULL; task 2241 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2243 lib/pengine/unpack.c key = pcmk__op_key(rsc->id, task, interval_ms); task 2245 lib/pengine/unpack.c custom_action(rsc, key, task, node, TRUE, TRUE, data_set); task 2255 lib/pengine/unpack.c const char *task = NULL; task 2267 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2270 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei) task 2274 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_START, CRMD_ACTION_MIGRATED, NULL)) { task 2277 lib/pengine/unpack.c } else if ((implied_monitor_start <= *stop_index) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 2283 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_PROMOTE, CRMD_ACTION_DEMOTE, NULL)) { task 2339 lib/pengine/unpack.c const char *task = NULL; task 2400 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2401 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 2992 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 2997 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3002 lib/pengine/unpack.c if ((interval_ms == 0) && !strcmp(task, CRMD_ACTION_STATUS)) { task 3016 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 3023 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 3041 lib/pengine/unpack.c action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3048 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STOP)) { task 3051 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE)) { task 3054 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATED)) { task 3057 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3060 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_DEMOTE)) { task 3154 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3159 lib/pengine/unpack.c CRM_CHECK(task != NULL, return PCMK_EXEC_ERROR); task 3166 lib/pengine/unpack.c if ((interval_ms == 0) && !strcmp(task, CRMD_ACTION_STATUS)) { task 3168 lib/pengine/unpack.c task = "probe"; task 3247 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP)) { task 3251 lib/pengine/unpack.c CRM_XS " rc=%d id=%s", rsc->id, task, task 3265 lib/pengine/unpack.c rc, task, rsc->id, node->details->uname, task 3276 lib/pengine/unpack.c should_clear_for_param_change(xmlNode *xml_op, const char *task, task 3280 lib/pengine/unpack.c if (!strcmp(task, "start") || !strcmp(task, "monitor")) { task 3327 lib/pengine/unpack.c const char *task, guint interval_ms, task 3352 lib/pengine/unpack.c && (interval_ms != 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3398 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3414 lib/pengine/unpack.c && !should_ignore_failure_timeout(rsc, xml_op, task, interval_ms, task 3464 lib/pengine/unpack.c && should_clear_for_param_change(xml_op, task, rsc, node, data_set)) { task 3484 lib/pengine/unpack.c "fencing of %s completes", task, rsc->id); task 3489 lib/pengine/unpack.c if (expired && (interval_ms == 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3518 lib/pengine/unpack.c get_action_on_fail(pe_resource_t *rsc, const char *key, const char *task, pe_working_set_t * data_set) task 3521 lib/pengine/unpack.c pe_action_t *action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3530 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, task 3544 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3558 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 3562 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 3566 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 3570 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 3578 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 3582 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 3671 lib/pengine/unpack.c const char *task = NULL; task 3682 lib/pengine/unpack.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3693 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3697 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_NOTIFY) || task 3698 lib/pengine/unpack.c !strcmp(task, CRMD_ACTION_METADATA)) { task 3708 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); task 3733 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STATUS)) { task 3780 lib/pengine/unpack.c ID(xml_op), task, rsc->id, node->details->uname, task 3785 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_START)) { task 3789 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3792 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE) && node->details->unclean) { task 3803 lib/pengine/unpack.c if ((interval_ms != 0) || strcmp(task, CRMD_ACTION_STATUS)) { task 3804 lib/pengine/unpack.c rsc->pending_task = strdup(task); task 3822 lib/pengine/unpack.c task, rsc->id, node->details->uname, task 3824 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); task 3828 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3833 lib/pengine/unpack.c task, rsc->id, node->details->uname, status, rc, task 3873 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3876 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP))) { task 3880 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), task 3885 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, task 3923 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), task 482 lib/pengine/utils.c new_action(char *key, const char *task, pe_resource_t *rsc, pe_node_t *node, task 490 lib/pengine/utils.c action->task = strdup(task); CRM_ASSERT(action->task != NULL); task 499 lib/pengine/utils.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 523 lib/pengine/utils.c data_set->action_id, key, task, task 628 lib/pengine/utils.c && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 701 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 704 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_START, pcmk__str_casei)) { task 731 lib/pengine/utils.c custom_action(pe_resource_t *rsc, char *key, const char *task, task 737 lib/pengine/utils.c CRM_ASSERT((key != NULL) && (task != NULL) && (data_set != NULL)); task 744 lib/pengine/utils.c action = new_action(key, task, rsc, on_node, optional, save_action, task 784 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 792 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_DEMOTE, pcmk__str_casei) && !value) { task 827 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 1070 lib/pengine/utils.c bool is_probe = pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_casei) task 1083 lib/pengine/utils.c .op_name = action->task, task 1174 lib/pengine/utils.c && (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 1195 lib/pengine/utils.c if (!pcmk__strcase_any_of(action->task, RSC_START, RSC_PROMOTE, NULL)) { task 1289 lib/pengine/utils.c && !(pcmk__str_eq(action->task, CRMD_ACTION_STATUS, pcmk__str_casei) task 1291 lib/pengine/utils.c && !pcmk__str_eq(action->task, CRMD_ACTION_START, pcmk__str_casei)) { task 1311 lib/pengine/utils.c } else if (value == NULL && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 1342 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 1476 lib/pengine/utils.c free(action->task); task 1499 lib/pengine/utils.c } else if (pcmk__str_eq(CRMD_ACTION_CANCEL, action->task, pcmk__str_casei)) { task 1519 lib/pengine/utils.c enum action_tasks task = text2task(name); task 1522 lib/pengine/utils.c return task; task 1525 lib/pengine/utils.c switch (task) { task 1531 lib/pengine/utils.c return task - 1; task 1536 lib/pengine/utils.c return task; task 1540 lib/pengine/utils.c find_first_action(GList *input, const char *uuid, const char *task, pe_node_t * on_node) task 1544 lib/pengine/utils.c CRM_CHECK(uuid || task, return NULL); task 1552 lib/pengine/utils.c } else if (task != NULL && !pcmk__str_eq(task, action->task, pcmk__str_casei)) { task 1644 lib/pengine/utils.c const char *task, bool require_node) task 1647 lib/pengine/utils.c char *key = pcmk__op_key(rsc->id, task, 0); task 2344 lib/pengine/utils.c action->task); task 1374 maint/gnulib/lib/stackvma.c task_t task = mach_task_self (); task 1403 maint/gnulib/lib/stackvma.c more = (vm_region_64 (task, &address, &size, VM_REGION_BASIC_INFO_64, task 1410 maint/gnulib/lib/stackvma.c more = (vm_region (task, &address, &size, VM_REGION_BASIC_INFO, task 1307 maint/gnulib/lib/vma-iter.c task_t task = mach_task_self (); task 1340 maint/gnulib/lib/vma-iter.c more = (vm_region_64 (task, &address, &size, VM_REGION_BASIC_INFO_64, task 1347 maint/gnulib/lib/vma-iter.c more = (vm_region (task, &address, &size, VM_REGION_BASIC_INFO, task 1375 maint/gnulib/lib/vma-iter.c task_t task = mach_task_self (); task 1389 maint/gnulib/lib/vma-iter.c if (!(vm_region (task, &address, &size, &protection, &max_protection, task 1393 maint/gnulib/lib/vma-iter.c mach_port_deallocate (task, object_name); task 1774 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, task 1793 tools/crm_mon.c setenv("CRM_notify_task", task, 1); task 1825 tools/crm_mon.c char *task = NULL; task 1862 tools/crm_mon.c if (parse_op_key(id, &rsc, &task, NULL) == FALSE) { task 1893 tools/crm_mon.c crm_notice("%s of %s on %s completed: %s", task, rsc, node, desc); task 1900 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1904 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1908 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); task 1912 tools/crm_mon.c free(task); task 1544 tools/crm_resource_runtime.c || pcmk__str_eq("notify", action->task, pcmk__str_casei)) {