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 273 daemons/controld/controld_execd.c const char *task, const char *ack_host, const char *ack_sys) task 275 daemons/controld/controld_execd.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); task 367 daemons/controld/controld_fencing.c const char *task = NULL; task 390 daemons/controld/controld_fencing.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 391 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 378 daemons/controld/controld_messages.c if (pcmk__strcase_any_of(task, CRM_OP_NODE_INFO, task 396 daemons/controld/controld_messages.c } else if (is_for_crm && pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 48 daemons/controld/controld_te_actions.c const char *task = crm_element_value(pseudo->xml, XML_LRM_ATTR_TASK); task 51 daemons/controld/controld_te_actions.c if (pcmk__str_eq(task, CRM_OP_MAINTENANCE_NODES, pcmk__str_casei)) { task 63 daemons/controld/controld_te_actions.c cmd = create_request(task, pseudo->xml, node->uname, task 108 daemons/controld/controld_te_actions.c const char *task = NULL; task 119 daemons/controld/controld_te_actions.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 120 daemons/controld/controld_te_actions.c CRM_CHECK(!pcmk__str_empty(task), return EPROTO); task 128 daemons/controld/controld_te_actions.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_none)) { task 147 daemons/controld/controld_te_actions.c id, task, on_node, (is_local? " locally" : ""), task 150 daemons/controld/controld_te_actions.c if (is_local && pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_none)) { task 158 daemons/controld/controld_te_actions.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_none)) { task 164 daemons/controld/controld_te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); task 184 daemons/controld/controld_te_actions.c action->id, task, on_node, action->timeout, graph->network_delay); task 349 daemons/controld/controld_te_actions.c const char *task = NULL; task 363 daemons/controld/controld_te_actions.c ID(action->xml), pcmk__s(task, "without task")); task 367 daemons/controld/controld_te_actions.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 389 daemons/controld/controld_te_actions.c task, task_uuid, (is_local? " locally" : ""), on_node, task 438 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout); task 442 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout, graph->network_delay); task 509 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 523 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 555 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 581 daemons/controld/controld_te_actions.c if (pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 606 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 619 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 648 daemons/controld/controld_te_callbacks.c const char *task = NULL; task 656 daemons/controld/controld_te_callbacks.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 663 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 670 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 682 daemons/controld/controld_te_callbacks.c && controld_action_is_recordable(task)) { task 58 daemons/controld/controld_te_events.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 60 daemons/controld/controld_te_events.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 121 daemons/controld/controld_te_events.c char *task = NULL; task 140 daemons/controld/controld_te_events.c CRM_CHECK(parse_op_key(id, &rsc_id, &task, &interval_ms), task 144 daemons/controld/controld_te_events.c if ((interval_ms > 0) || pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei) task 145 daemons/controld/controld_te_events.c || pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 148 daemons/controld/controld_te_events.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 155 daemons/controld/controld_te_events.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 185 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); task 192 daemons/controld/controld_te_events.c fail_name = pcmk__failcount_name(rsc_id, task, interval_ms); task 206 daemons/controld/controld_te_events.c last_name = pcmk__lastfailure_name(rsc_id, task, interval_ms); task 229 daemons/controld/controld_te_events.c free(task); task 262 daemons/controld/controld_te_events.c const char *task = NULL; task 266 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 267 daemons/controld/controld_te_events.c if (!pcmk__str_eq(CRMD_ACTION_CANCEL, task, pcmk__str_casei)) { task 271 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); task 272 daemons/controld/controld_te_events.c if (!pcmk__str_eq(task, id, pcmk__str_casei)) { task 273 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 43 include/crm/common/ipc.h #define create_request(task, xml_data, host_to, sys_to, sys_from, uuid_from) \ task 44 include/crm/common/ipc.h create_request_adv(task, xml_data, host_to, sys_to, sys_from, uuid_from, \ task 47 include/crm/common/ipc.h xmlNode *create_request_adv(const char *task, xmlNode *xml_data, task 74 include/crm/common/util.h const char *task, const char *interval_spec, task 78 include/crm/common/util.h bool pcmk_is_probe(const char *task, guint interval); task 222 include/crm/crm.h crm_action_str(const char *task, guint interval_ms) { task 223 include/crm/crm.h if ((task != NULL) && (interval_ms == 0) task 224 include/crm/crm.h && (strcasecmp(task, RSC_STATUS) == 0)) { task 227 include/crm/crm.h return task; task 269 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 234 include/crm/pengine/internal.h pe_action_t *pe__new_rsc_pseudo_action(pe_resource_t *rsc, const char *task, task 293 include/crm/pengine/internal.h notify_data_t *pe__clone_notif_pseudo_ops(pe_resource_t *rsc, const char *task, task 400 include/crm/pengine/internal.h pe_action_t *custom_action(pe_resource_t *rsc, char *key, const char *task, task 454 include/crm/pengine/internal.h const char *task, const pe_node_t *on_node); task 462 include/crm/pengine/internal.h const char *task, bool require_node); task 526 include/crm/pengine/internal.h op_digest_cache_t *pe__calculate_digests(pe_resource_t *rsc, const char *task, task 410 include/crm/pengine/pe_types.h char *task; task 251 lib/common/ipc_pacemakerd.c do_pacemakerd_api_call(pcmk_ipc_api_t *api, const char *ipc_name, const char *task) task 264 lib/common/ipc_pacemakerd.c cmd = create_request(task, NULL, NULL, CRM_SYSTEM_MCP, task 143 lib/common/ipc_schedulerd.c do_schedulerd_api_call(pcmk_ipc_api_t *api, const char *task, xmlNode *cib, char **ref) task 156 lib/common/ipc_schedulerd.c cmd = create_request(task, cib, NULL, CRM_SYSTEM_PENGINE, 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 541 lib/common/operations.c pcmk_is_probe(const char *task, guint interval) task 543 lib/common/operations.c if (task == NULL) { task 547 lib/common/operations.c return (interval == 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_none); task 553 lib/common/operations.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 558 lib/common/operations.c return pcmk_is_probe(task, interval_ms); task 309 lib/lrmd/lrmd_alerts.c const char *target, const char *task, const char *desc, task 320 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_task, task); task 195 lib/lrmd/lrmd_client.c lrmd_new_event(const char *rsc_id, const char *task, guint interval_ms) task 201 lib/lrmd/lrmd_client.c pcmk__str_update((char **) &event->op_type, task); task 280 lib/pacemaker/libpacemaker_private.h const char *task, guint interval_ms, task 284 lib/pacemaker/libpacemaker_private.h void pcmk__reschedule_recurring(pe_resource_t *rsc, const char *task, task 695 lib/pacemaker/libpacemaker_private.h const char *resource, const char *task, task 143 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 149 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 161 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 173 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(input->task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 197 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, RSC_NOTIFY, pcmk__str_none)) { task 209 lib/pacemaker/pcmk_graph_producer.c return pcmk__op_key(action->rsc->clone_name, action->task, interval_ms); task 362 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_none) task 400 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 407 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_any_of(action->task, task 412 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_none)) { task 418 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_MAINTENANCE_NODES, task 430 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(action_xml, XML_LRM_ATTR_TASK, action->task); task 509 lib/pacemaker/pcmk_graph_producer.c && !pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_none)) { task 530 lib/pacemaker/pcmk_graph_producer.c || pcmk__strcase_any_of(action->task, CRM_OP_FENCE, CRM_OP_SHUTDOWN, task 658 lib/pacemaker/pcmk_graph_producer.c if (action->rsc && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei)) { task 1058 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->task, RSC_STOP, pcmk__str_none)) { task 90 lib/pacemaker/pcmk_injections.c const char *resource, const char *task, task 103 lib/pacemaker/pcmk_injections.c name = pcmk__failcount_name(resource, task, interval_ms); task 107 lib/pacemaker/pcmk_injections.c name = pcmk__lastfailure_name(resource, task, interval_ms); task 161 lib/pacemaker/pcmk_injections.c create_op(xmlNode *cib_resource, const char *task, guint interval_ms, task 167 lib/pacemaker/pcmk_injections.c op = lrmd_new_event(ID(cib_resource), task, interval_ms); task 530 lib/pacemaker/pcmk_injections.c char *task = NULL; task 554 lib/pacemaker/pcmk_injections.c parse_op_key(key, &resource, &task, &interval_ms); task 569 lib/pacemaker/pcmk_injections.c pcmk__inject_failcount(out, cib_node, resource, task, interval_ms, outcome); task 576 lib/pacemaker/pcmk_injections.c op = create_op(cib_resource, task, interval_ms, outcome); task 588 lib/pacemaker/pcmk_injections.c free(task); task 879 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 889 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 890 lib/pacemaker/pcmk_output.c } else if (pcmk__str_eq(task, "monitor", pcmk__str_none)) { task 894 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 949 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 959 lib/pacemaker/pcmk_output.c "task", pcmk__s(task, ""), task 1183 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1187 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1190 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s %s '%s'", task, node_name, reason); task 1192 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s", task, node_name); task 1202 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1206 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1210 lib/pacemaker/pcmk_output.c "task", task, task 1215 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s", task, node_name); task 1226 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1234 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s for %s on %s", task, ID(rsc), node); task 1236 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s on %s", task, node); task 1247 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1257 lib/pacemaker/pcmk_output.c "task", task, task 1516 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1522 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Pseudo action: %s%s%s", task, node ? " on " : "", task 1532 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1541 lib/pacemaker/pcmk_output.c "task", task, task 53 lib/pacemaker/pcmk_resource.c const char *task = crm_element_value(lrm_rsc_op, XML_LRM_ATTR_TASK); task 60 lib/pacemaker/pcmk_resource.c && pcmk__strcase_any_of(task, RSC_STATUS, task 120 lib/pacemaker/pcmk_resource.c const char *task = NULL; task 139 lib/pacemaker/pcmk_resource.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 142 lib/pacemaker/pcmk_resource.c if (task == NULL) { // Assume start if no history is available task 143 lib/pacemaker/pcmk_resource.c task = RSC_START; task 148 lib/pacemaker/pcmk_resource.c digests = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, task 150 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); task 463 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(first->task, RSC_STOP, pcmk__str_casei)) { task 541 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { task 552 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei)) { task 584 lib/pacemaker/pcmk_sched_actions.c if (!strcmp(first->task, CRMD_ACTION_RELOAD_AGENT)) { task 718 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(then->task, RSC_STOP, pcmk__str_none)) { task 730 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_none)) { task 973 lib/pacemaker/pcmk_sched_actions.c switch (text2task(action->task)) { task 1126 lib/pacemaker/pcmk_sched_actions.c const char *task = NULL; task 1134 lib/pacemaker/pcmk_sched_actions.c task = op->op_type; task 1145 lib/pacemaker/pcmk_sched_actions.c if (pcmk__str_any_of(task, CRMD_ACTION_RELOAD, CRMD_ACTION_RELOAD_AGENT, task 1148 lib/pacemaker/pcmk_sched_actions.c task = CRMD_ACTION_START; task 1150 lib/pacemaker/pcmk_sched_actions.c task = CRMD_ACTION_STATUS; task 1154 lib/pacemaker/pcmk_sched_actions.c key = pcmk__op_key(op->rsc_id, task, op->interval_ms); task 1155 lib/pacemaker/pcmk_sched_actions.c if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_none)) { task 1216 lib/pacemaker/pcmk_sched_actions.c crm_xml_add(xml_op, XML_LRM_ATTR_TASK, task); task 1308 lib/pacemaker/pcmk_sched_actions.c if (action->node->details->shutdown && (action->task != NULL) task 1309 lib/pacemaker/pcmk_sched_actions.c && (strcmp(action->task, RSC_STOP) != 0)) { task 1396 lib/pacemaker/pcmk_sched_actions.c char *task = NULL; task 1406 lib/pacemaker/pcmk_sched_actions.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 1407 lib/pacemaker/pcmk_sched_actions.c task = strdup("Shutdown"); task 1409 lib/pacemaker/pcmk_sched_actions.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 1412 lib/pacemaker/pcmk_sched_actions.c task = crm_strdup_printf("Fence (%s)", op); task 1426 lib/pacemaker/pcmk_sched_actions.c out->message(out, "node-action", task, node_name, action->reason); task 1429 lib/pacemaker/pcmk_sched_actions.c free(task); task 1451 lib/pacemaker/pcmk_sched_actions.c action_in_config(pe_resource_t *rsc, const char *task, guint interval_ms) task 1453 lib/pacemaker/pcmk_sched_actions.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 1470 lib/pacemaker/pcmk_sched_actions.c task_for_digest(const char *task, guint interval_ms) task 1476 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_any_of(task, RSC_STATUS, RSC_MIGRATED, RSC_PROMOTE, NULL)) { task 1477 lib/pacemaker/pcmk_sched_actions.c task = RSC_START; task 1479 lib/pacemaker/pcmk_sched_actions.c return task; task 1527 lib/pacemaker/pcmk_sched_actions.c force_restart(pe_resource_t *rsc, const char *task, guint interval_ms, task 1530 lib/pacemaker/pcmk_sched_actions.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 1531 lib/pacemaker/pcmk_sched_actions.c pe_action_t *required = custom_action(rsc, key, task, NULL, FALSE, TRUE, task 1613 lib/pacemaker/pcmk_sched_actions.c const char *task = NULL; task 1619 lib/pacemaker/pcmk_sched_actions.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 1620 lib/pacemaker/pcmk_sched_actions.c CRM_CHECK(task != NULL, return false); task 1626 lib/pacemaker/pcmk_sched_actions.c if (action_in_config(rsc, task, interval_ms)) { task 1628 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1634 lib/pacemaker/pcmk_sched_actions.c task, interval_ms, node, "orphan"); task 1638 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1645 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1647 lib/pacemaker/pcmk_sched_actions.c task = task_for_digest(task, interval_ms); task 1657 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1667 lib/pacemaker/pcmk_sched_actions.c force_restart(rsc, task, interval_ms, node); task 1680 lib/pacemaker/pcmk_sched_actions.c pcmk__reschedule_recurring(rsc, task, interval_ms, node); task 1697 lib/pacemaker/pcmk_sched_actions.c force_restart(rsc, task, interval_ms, node); task 1794 lib/pacemaker/pcmk_sched_actions.c const char *task = NULL; task 1802 lib/pacemaker/pcmk_sched_actions.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 1811 lib/pacemaker/pcmk_sched_actions.c task, interval_ms, node, "maintenance mode"); task 1814 lib/pacemaker/pcmk_sched_actions.c || pcmk__strcase_any_of(task, RSC_STATUS, RSC_START, task 616 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(dc_down->task, CRM_OP_SHUTDOWN, pcmk__str_none)) { task 553 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = get_complex_task(data->child, action->task, TRUE); task 554 lib/pacemaker/pcmk_sched_bundle.c switch(task) { task 677 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = clone_child_action(first); task 678 lib/pacemaker/pcmk_sched_bundle.c const char *first_task = task2text(task); task 685 lib/pacemaker/pcmk_sched_bundle.c if (strstr(first->task, "stop") && first_replica && first_replica->child) { task 692 lib/pacemaker/pcmk_sched_bundle.c NULL, task2text(task), node); task 694 lib/pacemaker/pcmk_sched_bundle.c first_action = find_first_action(first_child->actions, NULL, task2text(task), node); task 698 lib/pacemaker/pcmk_sched_bundle.c if (strstr(then->task, "mote") task 708 lib/pacemaker/pcmk_sched_bundle.c NULL, then->task, node); task 710 lib/pacemaker/pcmk_sched_bundle.c then_action = find_first_action(then_child->actions, NULL, then->task, node); task 730 lib/pacemaker/pcmk_sched_bundle.c && !pcmk__str_any_of(then->task, RSC_STOP, RSC_DEMOTE, NULL)) { task 732 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id); task 736 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id, task 763 lib/pacemaker/pcmk_sched_bundle.c then_child->id, then_action, task2text(task)); task 856 lib/pacemaker/pcmk_sched_bundle.c pe_action_t *then_child_action = find_first_action(then_child->actions, NULL, then->task, node); task 401 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_STOP, action->task, pcmk__str_casei)) { task 405 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_START, action->task, pcmk__str_casei)) { task 424 lib/pacemaker/pcmk_sched_clone.c find_rsc_action(pe_resource_t *rsc, const char *task) task 427 lib/pacemaker/pcmk_sched_clone.c GList *actions = pe__resource_actions(rsc, NULL, task, FALSE); task 828 lib/pacemaker/pcmk_sched_clone.c if (pcmk__strcase_any_of(action->task, "notify", "notified", NULL)) { task 855 lib/pacemaker/pcmk_sched_clone.c result = get_complex_task(child, action->task, TRUE); task 873 lib/pacemaker/pcmk_sched_clone.c enum action_tasks task = clone_child_action(action); task 875 lib/pacemaker/pcmk_sched_clone.c const char *task_s = task2text(task); task 799 lib/pacemaker/pcmk_sched_colocation.c mark_action_blocked(pe_resource_t *rsc, const char *task, task 808 lib/pacemaker/pcmk_sched_colocation.c && pcmk__str_eq(action->task, task, pcmk__str_casei)) { task 819 lib/pacemaker/pcmk_sched_colocation.c mark_action_blocked((pe_resource_t *) (iter->data), task, reason); task 847 lib/pacemaker/pcmk_sched_colocation.c is_start = pcmk__str_eq(action->task, RSC_START, pcmk__str_none); task 848 lib/pacemaker/pcmk_sched_colocation.c if (!is_start && !pcmk__str_eq(action->task, RSC_PROMOTE, pcmk__str_none)) { task 871 lib/pacemaker/pcmk_sched_colocation.c action->task, NULL); task 877 lib/pacemaker/pcmk_sched_colocation.c rsc->id, child->id, action->task); task 883 lib/pacemaker/pcmk_sched_colocation.c rsc->id, action->rsc->id, action->task); task 77 lib/pacemaker/pcmk_sched_fencing.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 335 lib/pacemaker/pcmk_sched_fencing.c rsc->id, action->task); task 525 lib/pacemaker/pcmk_sched_group.c enum action_tasks task = get_complex_task(member, action->task, TRUE); task 526 lib/pacemaker/pcmk_sched_group.c const char *task_s = task2text(task); task 546 lib/pacemaker/pcmk_sched_group.c if (!pcmk__str_eq(task_s, action->task, pcmk__str_none) task 560 lib/pacemaker/pcmk_sched_group.c } else if ((task != stop_rsc) && (task != action_demote)) { task 616 lib/pacemaker/pcmk_sched_group.c then->task, node); task 238 lib/pacemaker/pcmk_sched_migration.c res = strdup(action->task); task 337 lib/pacemaker/pcmk_sched_ordering.c char *task = crm_strdup_printf(CRM_OP_RELAXED_CLONE ":%s", id); task 338 lib/pacemaker/pcmk_sched_ordering.c pe_action_t *clone_min_met = get_pseudo_op(task, data_set); task 340 lib/pacemaker/pcmk_sched_ordering.c free(task); task 759 lib/pacemaker/pcmk_sched_ordering.c char *task = crm_strdup_printf(CRM_OP_RELAXED_SET ":%s", ID(set1)); task 760 lib/pacemaker/pcmk_sched_ordering.c pe_action_t *unordered_action = get_pseudo_op(task, data_set); task 762 lib/pacemaker/pcmk_sched_ordering.c free(task); task 1090 lib/pacemaker/pcmk_sched_ordering.c && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei) task 1134 lib/pacemaker/pcmk_sched_ordering.c || !pcmk__str_eq(action->task, RSC_STOP, pcmk__str_casei)) { task 1197 lib/pacemaker/pcmk_sched_ordering.c char *task = NULL; task 1200 lib/pacemaker/pcmk_sched_ordering.c if (parse_op_key(original_key, NULL, &task, &interval_ms)) { task 1201 lib/pacemaker/pcmk_sched_ordering.c key = pcmk__op_key(rsc->id, task, interval_ms); task 1204 lib/pacemaker/pcmk_sched_ordering.c free(task); task 1271 lib/pacemaker/pcmk_sched_ordering.c "to order it after", then_action_iter->task, rsc->id, task 1423 lib/pacemaker/pcmk_sched_ordering.c const char *after_desc = (after->task == NULL)? after->uuid : after->task; task 1427 lib/pacemaker/pcmk_sched_ordering.c const char *before_desc = before->task? before->task : before->uuid; task 300 lib/pacemaker/pcmk_sched_probes.c if (pcmk__str_eq(then->task, CRM_OP_FENCE, pcmk__str_casei) task 311 lib/pacemaker/pcmk_sched_probes.c if (pcmk__str_eq(then->task, CRM_OP_SHUTDOWN, pcmk__str_none) task 363 lib/pacemaker/pcmk_sched_probes.c && !pcmk__str_eq(order->lh_action->task, RSC_STOP, pcmk__str_none)) { task 378 lib/pacemaker/pcmk_sched_probes.c && pcmk__str_eq(order->rh_action->task, RSC_STOP, task 473 lib/pacemaker/pcmk_sched_probes.c || !pcmk__str_eq(probe->task, RSC_STATUS, pcmk__str_casei)) { task 495 lib/pacemaker/pcmk_sched_probes.c if (pcmk__str_eq(after->task, RSC_START, pcmk__str_casei)) { task 499 lib/pacemaker/pcmk_sched_probes.c } else if (pcmk__str_eq(after->task, RSC_PROMOTE, pcmk__str_casei)) { task 727 lib/pacemaker/pcmk_sched_probes.c } else if (!pcmk__str_eq(first->task, RSC_START, pcmk__str_none)) { task 98 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_DEMOTE, action->task, pcmk__str_none)) { task 101 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_PROMOTE, action->task, pcmk__str_none)) { task 318 lib/pacemaker/pcmk_sched_recurring.c pcmk__readable_interval(op->interval_ms), mon->task, task 539 lib/pacemaker/pcmk_sched_recurring.c stopped_mon->task, rsc->id, pe__node_name(stop_node)); task 614 lib/pacemaker/pcmk_sched_recurring.c pcmk__new_cancel_action(pe_resource_t *rsc, const char *task, guint interval_ms, task 621 lib/pacemaker/pcmk_sched_recurring.c CRM_ASSERT((rsc != NULL) && (task != NULL) && (node != NULL)); task 624 lib/pacemaker/pcmk_sched_recurring.c key = pcmk__op_key(rsc->id, task, interval_ms); task 629 lib/pacemaker/pcmk_sched_recurring.c pcmk__str_update(&cancel_op->task, RSC_CANCEL); task 630 lib/pacemaker/pcmk_sched_recurring.c pcmk__str_update(&cancel_op->cancel_task, task); task 633 lib/pacemaker/pcmk_sched_recurring.c add_hash_param(cancel_op->meta, XML_LRM_ATTR_TASK, task); task 652 lib/pacemaker/pcmk_sched_recurring.c pcmk__schedule_cancel(pe_resource_t *rsc, const char *call_id, const char *task, task 658 lib/pacemaker/pcmk_sched_recurring.c CRM_CHECK((rsc != NULL) && (task != NULL) task 663 lib/pacemaker/pcmk_sched_recurring.c pcmk__readable_interval(interval_ms), task, rsc->id, task 665 lib/pacemaker/pcmk_sched_recurring.c cancel = pcmk__new_cancel_action(rsc, task, interval_ms, node); task 683 lib/pacemaker/pcmk_sched_recurring.c pcmk__reschedule_recurring(pe_resource_t *rsc, const char *task, task 690 lib/pacemaker/pcmk_sched_recurring.c op = custom_action(rsc, pcmk__op_key(rsc->id, task, interval_ms), task 691 lib/pacemaker/pcmk_sched_recurring.c task, node, TRUE, TRUE, rsc->cluster); task 168 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task = text2task(action->task); task 183 lib/pacemaker/pcmk_sched_remote.c action->task, action->uuid, task 187 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, task 192 lib/pacemaker/pcmk_sched_remote.c task = stop_rsc; task 195 lib/pacemaker/pcmk_sched_remote.c switch (task) { task 268 lib/pacemaker/pcmk_sched_remote.c if ((task == monitor_rsc) && (state == remote_state_failed)) { task 307 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task = text2task(action->task); task 324 lib/pacemaker/pcmk_sched_remote.c action->task, action->uuid, task 330 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, task 335 lib/pacemaker/pcmk_sched_remote.c task = stop_rsc; task 338 lib/pacemaker/pcmk_sched_remote.c switch (task) { task 380 lib/pacemaker/pcmk_sched_remote.c if(task != no_action) { task 421 lib/pacemaker/pcmk_sched_remote.c pcmk__str_eq(action->task, CRM_OP_CLEAR_FAILCOUNT, pcmk__str_casei)) { task 460 lib/pacemaker/pcmk_sched_remote.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 466 lib/pacemaker/pcmk_sched_remote.c && pcmk__str_eq(rsc_action->task, RSC_STOP, pcmk__str_casei)) { task 547 lib/pacemaker/pcmk_sched_remote.c const char *task = action->task; task 549 lib/pacemaker/pcmk_sched_remote.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei) task 567 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 576 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 585 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 598 lib/pacemaker/pcmk_sched_remote.c if (pcmk__str_eq(task, "notify", pcmk__str_casei)) { task 599 lib/pacemaker/pcmk_sched_remote.c task = g_hash_table_lookup(action->meta, "notify_operation"); task 614 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(task, "cancel", "stop", "demote", "migrate_from", task 618 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 630 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), task 680 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task; task 686 lib/pacemaker/pcmk_sched_remote.c task = text2task(action->task); task 687 lib/pacemaker/pcmk_sched_remote.c if ((task == action_notify) || (task == action_notified)) { task 688 lib/pacemaker/pcmk_sched_remote.c task = text2task(g_hash_table_lookup(action->meta, "notify_operation")); task 691 lib/pacemaker/pcmk_sched_remote.c switch (task) { task 371 lib/pacemaker/pcmk_sched_resource.c if (pcmk__str_eq(op->task, RSC_STOP, pcmk__str_casei)) { task 374 lib/pacemaker/pcmk_sched_resource.c } else if (pcmk__str_eq(op->task, RSC_START, pcmk__str_casei)) { task 50 lib/pacemaker/pcmk_simulate.c const char *task = action->task; task 58 lib/pacemaker/pcmk_simulate.c if (pcmk__str_eq(action->task, RSC_CANCEL, pcmk__str_none)) { task 60 lib/pacemaker/pcmk_simulate.c task = action->cancel_task; task 77 lib/pacemaker/pcmk_simulate.c if (pcmk__strcase_any_of(action->task, RSC_NOTIFY, RSC_NOTIFIED, task 88 lib/pacemaker/pcmk_simulate.c key = pcmk__op_key(clone_name, task, interval_ms); task 99 lib/pacemaker/pcmk_simulate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 103 lib/pacemaker/pcmk_simulate.c prefix, action->task, op, action_host); task 111 lib/pacemaker/pcmk_simulate.c prefix, action->task, action_host); task 468 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); task 471 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-pseudo-action", node, task); task 659 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 663 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-cluster-action", node, task, rsc); task 353 lib/pengine/common.c text2task(const char *task) task 355 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 357 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOPPED, pcmk__str_casei)) { task 359 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 361 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STARTED, pcmk__str_casei)) { task 363 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 365 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 367 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 369 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_casei)) { task 371 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFIED, pcmk__str_casei)) { task 373 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 375 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 377 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTED, pcmk__str_casei)) { task 379 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTED, pcmk__str_casei)) { task 383 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_CANCEL, pcmk__str_casei)) { task 385 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DELETE, pcmk__str_casei)) { task 387 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 389 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 391 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 394 lib/pengine/common.c crm_trace("Unsupported action: %s", task); task 401 lib/pengine/common.c task2text(enum action_tasks task) task 405 lib/pengine/common.c switch (task) { task 167 lib/pengine/pe_actions.c new_action(char *key, const char *task, pe_resource_t *rsc, task 176 lib/pengine/pe_actions.c action->task = strdup(task); CRM_ASSERT(action->task != NULL); task 185 lib/pengine/pe_actions.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 209 lib/pengine/pe_actions.c data_set->action_id, key, task, task 340 lib/pengine/pe_actions.c && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 413 lib/pengine/pe_actions.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 416 lib/pengine/pe_actions.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_START, pcmk__str_casei)) { task 440 lib/pengine/pe_actions.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 448 lib/pengine/pe_actions.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_DEMOTE, pcmk__str_casei) && !value) { task 483 lib/pengine/pe_actions.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 649 lib/pengine/pe_actions.c .op_name = action->task, task 664 lib/pengine/pe_actions.c is_probe = pcmk_is_probe(action->task, interval_ms); task 729 lib/pengine/pe_actions.c && (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 750 lib/pengine/pe_actions.c if (!pcmk__strcase_any_of(action->task, RSC_START, RSC_PROMOTE, NULL)) { task 845 lib/pengine/pe_actions.c && !(pcmk__str_eq(action->task, CRMD_ACTION_STATUS, pcmk__str_casei) task 847 lib/pengine/pe_actions.c && !pcmk__str_eq(action->task, CRMD_ACTION_START, pcmk__str_casei)) { task 867 lib/pengine/pe_actions.c } else if (value == NULL && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 898 lib/pengine/pe_actions.c if (pcmk__str_eq(action->task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 940 lib/pengine/pe_actions.c custom_action(pe_resource_t *rsc, char *key, const char *task, task 946 lib/pengine/pe_actions.c CRM_ASSERT((key != NULL) && (task != NULL) && (data_set != NULL)); task 953 lib/pengine/pe_actions.c action = new_action(key, task, rsc, on_node, optional, save_action, task 1208 lib/pengine/pe_actions.c free(action->task); task 1264 lib/pengine/pe_actions.c enum action_tasks task = text2task(name); task 1267 lib/pengine/pe_actions.c return task; task 1270 lib/pengine/pe_actions.c switch (task) { task 1276 lib/pengine/pe_actions.c return task - 1; task 1281 lib/pengine/pe_actions.c return task; task 1296 lib/pengine/pe_actions.c find_first_action(const GList *input, const char *uuid, const char *task, task 1299 lib/pengine/pe_actions.c CRM_CHECK(uuid || task, return NULL); task 1307 lib/pengine/pe_actions.c } else if (task != NULL && !pcmk__str_eq(task, action->task, pcmk__str_casei)) { task 1399 lib/pengine/pe_actions.c const char *task, bool require_node) task 1402 lib/pengine/pe_actions.c char *key = pcmk__op_key(rsc->id, task, 0); task 1444 lib/pengine/pe_actions.c action->task); task 1647 lib/pengine/pe_actions.c pe__new_rsc_pseudo_action(pe_resource_t *rsc, const char *task, bool optional, task 1652 lib/pengine/pe_actions.c CRM_ASSERT((rsc != NULL) && (task != NULL)); task 1654 lib/pengine/pe_actions.c action = custom_action(rsc, pcmk__op_key(rsc->id, task, 0), task, NULL, task 101 lib/pengine/pe_digest.c const char *task, guint *interval_ms, task 130 lib/pengine/pe_digest.c action = custom_action(rsc, pcmk__op_key(rsc->id, task, *interval_ms), task 131 lib/pengine/pe_digest.c task, node, TRUE, FALSE, data_set); task 298 lib/pengine/pe_digest.c pe__calculate_digests(pe_resource_t *rsc, const char *task, guint *interval_ms, task 325 lib/pengine/pe_digest.c calculate_main_digest(data, rsc, node, params, task, interval_ms, xml_op, task 350 lib/pengine/pe_digest.c rsc_action_digest(pe_resource_t *rsc, const char *task, guint interval_ms, task 355 lib/pengine/pe_digest.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 359 lib/pengine/pe_digest.c data = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, task 387 lib/pengine/pe_digest.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 398 lib/pengine/pe_digest.c data = rsc_action_digest(rsc, task, interval_ms, node, xml_op, task 405 lib/pengine/pe_digest.c interval_ms, task, rsc->id, pe__node_name(node), task 431 lib/pengine/pe_digest.c interval_ms, task, rsc->id, pe__node_name(node), task 439 lib/pengine/pe_digest.c interval_ms, task, rsc->id, pe__node_name(node), task 283 lib/pengine/pe_notif.c pcmk__notify_key(rsc->id, notif_type, action->task), task 289 lib/pengine/pe_notif.c add_hash_param(notify->meta, "notify_key_operation", action->task); task 312 lib/pengine/pe_notif.c const char *task = NULL; task 334 lib/pengine/pe_notif.c task = g_hash_table_lookup(op->meta, "notify_operation"); // original action task 337 lib/pengine/pe_notif.c rsc->id, pe__node_name(node), value, task); task 340 lib/pengine/pe_notif.c key = pcmk__notify_key(rsc->id, value, task); task 341 lib/pengine/pe_notif.c notify_action = custom_action(rsc, key, op->task, node, task 389 lib/pengine/pe_notif.c || pcmk__str_eq(mon->task, RSC_CANCEL, pcmk__str_none)) { task 428 lib/pengine/pe_notif.c pe__clone_notif_pseudo_ops(pe_resource_t *rsc, const char *task, task 440 lib/pengine/pe_notif.c n_data->action = task; task 603 lib/pengine/pe_notif.c enum action_tasks task = text2task(op->task); task 605 lib/pengine/pe_notif.c if ((task == stop_rsc) && op->node->details->unclean) { task 613 lib/pengine/pe_notif.c switch (task) { task 799 lib/pengine/pe_notif.c enum action_tasks task = text2task(n_data->action); task 812 lib/pengine/pe_notif.c switch (text2task(op->task)) { task 826 lib/pengine/pe_notif.c switch (task) { task 861 lib/pengine/pe_notif.c && ((task == stop_rsc) || (task == action_demote))) { task 880 lib/pengine/pe_notif.c if ((task == action_demote) || (stop == NULL) task 889 lib/pengine/pe_notif.c && ((task == start_rsc) || (task == action_promote))) { task 910 lib/pengine/pe_notif.c if ((task != start_rsc) || (start == NULL) 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 1185 lib/pengine/pe_output.c char *task = NULL; task 1192 lib/pengine/pe_output.c || !parse_op_key(op_key, &rsc_id, &task, &interval_ms)) { task 1194 lib/pengine/pe_output.c task = strdup("unknown action"); task 1197 lib/pengine/pe_output.c CRM_ASSERT((rsc_id != NULL) && (task != NULL)); task 1207 lib/pengine/pe_output.c pcmk__g_strcat(str, crm_action_str(task, interval_ms), " on ", node_name, task 1248 lib/pengine/pe_output.c free(task); task 2434 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2439 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, task 2452 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2460 lib/pengine/pe_output.c "task", task, task 2765 lib/pengine/pe_output.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 2774 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 2776 lib/pengine/pe_output.c task = "probe"; task 2791 lib/pengine/pe_output.c out->message(out, "op-history", xml_op, task, interval_ms_s, task 2235 lib/pengine/unpack.c const char *task = NULL; task 2281 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2283 lib/pengine/unpack.c key = pcmk__op_key(rsc->id, task, interval_ms); task 2285 lib/pengine/unpack.c custom_action(rsc, key, task, node, TRUE, TRUE, data_set); task 2295 lib/pengine/unpack.c const char *task = NULL; task 2307 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2310 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei) task 2314 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_START, CRMD_ACTION_MIGRATED, NULL)) { task 2317 lib/pengine/unpack.c } else if ((implied_monitor_start <= *stop_index) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 2323 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_PROMOTE, CRMD_ACTION_DEMOTE, NULL)) { task 2379 lib/pengine/unpack.c const char *task = NULL; task 2440 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2441 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 2718 lib/pengine/unpack.c const char * task = NULL; task 2724 lib/pengine/unpack.c task = crm_element_value(op, XML_LRM_ATTR_TASK); task 2726 lib/pengine/unpack.c if (pcmk__str_any_of(task, CRMD_ACTION_START, CRMD_ACTION_STOP, task 3202 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3207 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3223 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, pe__node_name(node), task 3230 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, pe__node_name(node), task 3248 lib/pengine/unpack.c action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3255 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STOP)) { task 3258 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE)) { task 3261 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATED)) { task 3264 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3267 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_DEMOTE)) { task 3348 lib/pengine/unpack.c check_recoverable(pe_resource_t *rsc, pe_node_t *node, const char *task, task 3353 lib/pengine/unpack.c if (strcmp(task, CRMD_ACTION_STOP) != 0) { task 3363 lib/pengine/unpack.c CRM_XS " rc=%d id=%s", rsc->id, task, pe__node_name(node), task 3404 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3409 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_none)) { task 3437 lib/pengine/unpack.c CRM_CHECK(task != NULL, task 3449 lib/pengine/unpack.c task = "probe"; task 3525 lib/pengine/unpack.c check_recoverable(rsc, node, task, *rc, xml_op); task 3536 lib/pengine/unpack.c check_recoverable(rsc, node, task, *rc, xml_op); task 3544 lib/pengine/unpack.c *rc, task, rsc->id, pe__node_name(node), task 3557 lib/pengine/unpack.c should_clear_for_param_change(xmlNode *xml_op, const char *task, task 3561 lib/pengine/unpack.c if (!strcmp(task, "start") || !strcmp(task, "monitor")) { task 3608 lib/pengine/unpack.c const char *task, guint interval_ms, task 3633 lib/pengine/unpack.c && (interval_ms != 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3679 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3695 lib/pengine/unpack.c && !should_ignore_failure_timeout(rsc, xml_op, task, interval_ms, task 3745 lib/pengine/unpack.c && should_clear_for_param_change(xml_op, task, rsc, node, data_set)) { task 3765 lib/pengine/unpack.c "fencing of %s completes", task, rsc->id); task 3770 lib/pengine/unpack.c if (expired && (interval_ms == 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3799 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 3802 lib/pengine/unpack.c pe_action_t *action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3811 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, task 3825 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3839 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 3843 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 3847 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 3851 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 3859 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 3863 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 3919 lib/pengine/unpack.c const char *task = NULL; task 3931 lib/pengine/unpack.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3942 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3946 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_NOTIFY) || task 3947 lib/pengine/unpack.c !strcmp(task, CRMD_ACTION_METADATA)) { task 3957 lib/pengine/unpack.c task_key, task, task_id, status, rc, pe__node_name(node), task 4031 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, task 4045 lib/pengine/unpack.c ID(xml_op), task, rsc->id, pe__node_name(node), task 4050 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_START)) { task 4054 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 4057 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE) && node->details->unclean) { task 4068 lib/pengine/unpack.c if ((interval_ms != 0) || strcmp(task, CRMD_ACTION_STATUS)) { task 4069 lib/pengine/unpack.c rsc->pending_task = strdup(task); task 4087 lib/pengine/unpack.c task, rsc->id, pe__node_name(node), task 4089 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); task 4093 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 4098 lib/pengine/unpack.c task, rsc->id, pe__node_name(node), status, rc, task 4135 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 4138 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP))) { task 4142 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), task 4147 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, task 4185 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), 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 1655 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, task 1674 tools/crm_mon.c setenv("CRM_notify_task", task, 1); task 1707 tools/crm_mon.c char *task = NULL; task 1739 tools/crm_mon.c if (parse_op_key(id, &rsc, &task, NULL) == FALSE) { task 1770 tools/crm_mon.c crm_notice("%s of %s on %s completed: %s", task, rsc, node, desc); task 1777 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1781 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1785 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); task 1790 tools/crm_mon.c free(task); task 1644 tools/crm_resource_runtime.c || pcmk__str_eq("notify", action->task, pcmk__str_casei)) {