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 270 daemons/controld/controld_execd.c const char *rsc_id, lrmd_rsc_info_t *rsc, const char *task, task 273 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 312 daemons/controld/controld_te_actions.c const char *task = NULL; task 325 daemons/controld/controld_te_actions.c crm_err("Corrupted command(id=%s) %s: no node", ID(action->xml), crm_str(task)); task 329 daemons/controld/controld_te_actions.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 351 daemons/controld/controld_te_actions.c task, task_uuid, (is_local? " locally" : ""), on_node, task 399 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout); task 403 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout, graph->network_delay); task 470 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 484 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 505 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 531 daemons/controld/controld_te_actions.c if (pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 547 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 560 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 634 daemons/controld/controld_te_callbacks.c const char *task = NULL; task 645 daemons/controld/controld_te_callbacks.c task = crm_element_value(timer->action->xml, XML_LRM_ATTR_TASK); task 652 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 659 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 671 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 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 75 include/crm/common/util.h const char *task, const char *interval_spec, task 79 include/crm/common/util.h bool pcmk_is_probe(const char *task, guint interval); task 224 include/crm/crm.h crm_action_str(const char *task, guint interval_ms) { task 225 include/crm/crm.h if ((task != NULL) && (interval_ms == 0) task 226 include/crm/crm.h && (strcasecmp(task, RSC_STATUS) == 0)) { task 229 include/crm/crm.h return task; task 253 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 365 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 417 include/crm/pengine/internal.h extern pe_action_t *find_first_action(GList *input, const char *uuid, const char *task, task 427 include/crm/pengine/internal.h const char *task, bool require_node); task 489 include/crm/pengine/internal.h op_digest_cache_t *pe__calculate_digests(pe_resource_t *rsc, const char *task, task 428 include/crm/pengine/pe_types.h char *task; 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 215 lib/common/ipc_pacemakerd.c do_pacemakerd_api_call(pcmk_ipc_api_t *api, const char *ipc_name, const char *task) task 228 lib/common/ipc_pacemakerd.c cmd = create_request(task, NULL, NULL, CRM_SYSTEM_MCP, task 141 lib/common/ipc_schedulerd.c do_schedulerd_api_call(pcmk_ipc_api_t *api, const char *task, xmlNode *cib, char **ref) task 154 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 542 lib/common/operations.c pcmk_is_probe(const char *task, guint interval) task 544 lib/common/operations.c if (task == NULL) { task 548 lib/common/operations.c return (interval == 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_none); task 554 lib/common/operations.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 559 lib/common/operations.c return pcmk_is_probe(task, interval_ms); 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 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 29 lib/pacemaker/libpacemaker_private.h pe_action_t *pcmk__new_rsc_pseudo_action(pe_resource_t *rsc, const char *task, task 281 lib/pacemaker/libpacemaker_private.h const char *resource, const char *task, task 315 lib/pacemaker/libpacemaker_private.h 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 399 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_none) task 440 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 447 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_any_of(action->task, task 453 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_none)) { task 459 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, CRM_OP_MAINTENANCE_NODES, task 474 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(action_xml, XML_LRM_ATTR_TASK, action->task); task 553 lib/pacemaker/pcmk_graph_producer.c && !pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_none)) { task 574 lib/pacemaker/pcmk_graph_producer.c || pcmk__strcase_any_of(action->task, CRM_OP_FENCE, CRM_OP_SHUTDOWN, task 702 lib/pacemaker/pcmk_graph_producer.c if (action->rsc && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei)) { task 1069 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 537 lib/pacemaker/pcmk_injections.c char *task = NULL; task 561 lib/pacemaker/pcmk_injections.c parse_op_key(key, &resource, &task, &interval_ms); task 576 lib/pacemaker/pcmk_injections.c pcmk__inject_failcount(out, cib_node, resource, task, interval_ms, outcome); task 583 lib/pacemaker/pcmk_injections.c op = create_op(cib_resource, task, interval_ms, outcome); task 595 lib/pacemaker/pcmk_injections.c free(task); task 767 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 777 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 778 lib/pacemaker/pcmk_output.c } else if (pcmk__str_eq(task, "monitor", pcmk__str_none)) { task 782 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 837 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 847 lib/pacemaker/pcmk_output.c "task", crm_str(task), task 1071 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1075 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1078 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s %s '%s'", task, node_name, reason); task 1080 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s", task, node_name); task 1090 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1094 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1098 lib/pacemaker/pcmk_output.c "task", task, task 1103 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s", task, node_name); task 1114 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1122 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s for %s on %s", task, ID(rsc), node); task 1124 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s on %s", task, node); task 1135 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1145 lib/pacemaker/pcmk_output.c "task", task, task 1404 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1410 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Pseudo action: %s%s%s", task, node ? " on " : "", task 1420 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1429 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 453 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(first->task, RSC_STOP, pcmk__str_casei)) { task 531 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { task 542 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei)) { task 574 lib/pacemaker/pcmk_sched_actions.c if (!strcmp(first->task, CRMD_ACTION_RELOAD_AGENT)) { task 690 lib/pacemaker/pcmk_sched_actions.c switch (text2task(action->task)) { task 771 lib/pacemaker/pcmk_sched_actions.c pcmk__new_rsc_pseudo_action(pe_resource_t *rsc, const char *task, task 776 lib/pacemaker/pcmk_sched_actions.c CRM_ASSERT((rsc != NULL) && (task != NULL)); task 778 lib/pacemaker/pcmk_sched_actions.c action = custom_action(rsc, pcmk__op_key(rsc->id, task, 0), task, NULL, task 800 lib/pacemaker/pcmk_sched_actions.c pcmk__new_cancel_action(pe_resource_t *rsc, const char *task, guint interval_ms, task 807 lib/pacemaker/pcmk_sched_actions.c CRM_ASSERT((rsc != NULL) && (task != NULL) && (node != NULL)); task 810 lib/pacemaker/pcmk_sched_actions.c key = pcmk__op_key(rsc->id, task, interval_ms); task 815 lib/pacemaker/pcmk_sched_actions.c pcmk__str_update(&cancel_op->task, RSC_CANCEL); task 816 lib/pacemaker/pcmk_sched_actions.c pcmk__str_update(&cancel_op->cancel_task, task); task 819 lib/pacemaker/pcmk_sched_actions.c add_hash_param(cancel_op->meta, XML_LRM_ATTR_TASK, task); task 911 lib/pacemaker/pcmk_sched_actions.c const char *task = NULL; task 919 lib/pacemaker/pcmk_sched_actions.c task = op->op_type; task 930 lib/pacemaker/pcmk_sched_actions.c if (pcmk__str_any_of(task, CRMD_ACTION_RELOAD, CRMD_ACTION_RELOAD_AGENT, task 933 lib/pacemaker/pcmk_sched_actions.c task = CRMD_ACTION_START; task 935 lib/pacemaker/pcmk_sched_actions.c task = CRMD_ACTION_STATUS; task 939 lib/pacemaker/pcmk_sched_actions.c key = pcmk__op_key(op->rsc_id, task, op->interval_ms); task 940 lib/pacemaker/pcmk_sched_actions.c if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_none)) { task 994 lib/pacemaker/pcmk_sched_actions.c crm_xml_add(xml_op, XML_LRM_ATTR_TASK, task); task 1086 lib/pacemaker/pcmk_sched_actions.c if (action->node->details->shutdown && (action->task != NULL) task 1087 lib/pacemaker/pcmk_sched_actions.c && (strcmp(action->task, RSC_STOP) != 0)) { task 1174 lib/pacemaker/pcmk_sched_actions.c char *task = NULL; task 1184 lib/pacemaker/pcmk_sched_actions.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 1185 lib/pacemaker/pcmk_sched_actions.c task = strdup("Shutdown"); task 1187 lib/pacemaker/pcmk_sched_actions.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 1190 lib/pacemaker/pcmk_sched_actions.c task = crm_strdup_printf("Fence (%s)", op); task 1204 lib/pacemaker/pcmk_sched_actions.c out->message(out, "node-action", task, node_name, action->reason); task 1207 lib/pacemaker/pcmk_sched_actions.c free(task); task 1230 lib/pacemaker/pcmk_sched_actions.c schedule_cancel(pe_resource_t *rsc, const char *call_id, const char *task, task 1235 lib/pacemaker/pcmk_sched_actions.c CRM_CHECK((rsc != NULL) && (task != NULL) task 1240 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1242 lib/pacemaker/pcmk_sched_actions.c cancel = pcmk__new_cancel_action(rsc, task, interval_ms, node); task 1261 lib/pacemaker/pcmk_sched_actions.c action_in_config(pe_resource_t *rsc, const char *task, guint interval_ms) task 1263 lib/pacemaker/pcmk_sched_actions.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 1280 lib/pacemaker/pcmk_sched_actions.c task_for_digest(const char *task, guint interval_ms) task 1286 lib/pacemaker/pcmk_sched_actions.c && pcmk__str_any_of(task, RSC_STATUS, RSC_MIGRATED, RSC_PROMOTE, NULL)) { task 1287 lib/pacemaker/pcmk_sched_actions.c task = RSC_START; task 1289 lib/pacemaker/pcmk_sched_actions.c return task; task 1337 lib/pacemaker/pcmk_sched_actions.c force_restart(pe_resource_t *rsc, const char *task, guint interval_ms, task 1340 lib/pacemaker/pcmk_sched_actions.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 1341 lib/pacemaker/pcmk_sched_actions.c pe_action_t *required = custom_action(rsc, key, task, NULL, FALSE, TRUE, task 1359 lib/pacemaker/pcmk_sched_actions.c reschedule_recurring(pe_resource_t *rsc, const char *task, guint interval_ms, task 1366 lib/pacemaker/pcmk_sched_actions.c op = custom_action(rsc, pcmk__op_key(rsc->id, task, interval_ms), task 1367 lib/pacemaker/pcmk_sched_actions.c task, node, TRUE, TRUE, rsc->cluster); task 1445 lib/pacemaker/pcmk_sched_actions.c const char *task = NULL; task 1451 lib/pacemaker/pcmk_sched_actions.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 1452 lib/pacemaker/pcmk_sched_actions.c CRM_CHECK(task != NULL, return false); task 1458 lib/pacemaker/pcmk_sched_actions.c if (action_in_config(rsc, task, interval_ms)) { task 1460 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1466 lib/pacemaker/pcmk_sched_actions.c task, interval_ms, node, "orphan"); task 1470 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1477 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1479 lib/pacemaker/pcmk_sched_actions.c task = task_for_digest(task, interval_ms); task 1489 lib/pacemaker/pcmk_sched_actions.c pcmk__readable_interval(interval_ms), task, rsc->id, task 1499 lib/pacemaker/pcmk_sched_actions.c force_restart(rsc, task, interval_ms, node); task 1512 lib/pacemaker/pcmk_sched_actions.c reschedule_recurring(rsc, task, interval_ms, node); task 1529 lib/pacemaker/pcmk_sched_actions.c force_restart(rsc, task, interval_ms, node); task 1626 lib/pacemaker/pcmk_sched_actions.c const char *task = NULL; task 1634 lib/pacemaker/pcmk_sched_actions.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 1643 lib/pacemaker/pcmk_sched_actions.c task, interval_ms, node, "maintenance mode"); task 1646 lib/pacemaker/pcmk_sched_actions.c || pcmk__strcase_any_of(task, RSC_STATUS, RSC_START, task 617 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(dc_down->task, CRM_OP_SHUTDOWN, pcmk__str_none)) { 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 1199 lib/pacemaker/pcmk_sched_clone.c if (pcmk__strcase_any_of(action->task, "notify", "notified", NULL)) { task 1226 lib/pacemaker/pcmk_sched_clone.c result = get_complex_task(child, action->task, TRUE); task 1243 lib/pacemaker/pcmk_sched_clone.c enum action_tasks task = clone_child_action(action); task 1245 lib/pacemaker/pcmk_sched_clone.c const char *task_s = task2text(task); task 759 lib/pacemaker/pcmk_sched_colocation.c && pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 784 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 334 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 843 lib/pacemaker/pcmk_sched_native.c mon->task, interval_ms / 1000, rsc->id, node_uname); task 1074 lib/pacemaker/pcmk_sched_native.c crm_notice(" Start recurring %s (%us) for %s on %s", stopped_mon->task, task 1858 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 1862 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei) task 292 lib/pacemaker/pcmk_sched_notif.c pcmk__notify_key(rsc->id, notif_type, action->task), task 298 lib/pacemaker/pcmk_sched_notif.c add_hash_param(notify->meta, "notify_key_operation", action->task); task 321 lib/pacemaker/pcmk_sched_notif.c const char *task = NULL; task 343 lib/pacemaker/pcmk_sched_notif.c task = g_hash_table_lookup(op->meta, "notify_operation"); // original action task 346 lib/pacemaker/pcmk_sched_notif.c rsc->id, node->details->uname, value, task); task 349 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, value, task); task 350 lib/pacemaker/pcmk_sched_notif.c notify_action = custom_action(rsc, key, op->task, node, task 396 lib/pacemaker/pcmk_sched_notif.c || pcmk__str_eq(mon->task, RSC_CANCEL, pcmk__str_none)) { task 435 lib/pacemaker/pcmk_sched_notif.c pcmk__clone_notif_pseudo_ops(pe_resource_t *rsc, const char *task, task 447 lib/pacemaker/pcmk_sched_notif.c n_data->action = task; task 607 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task = text2task(op->task); task 609 lib/pacemaker/pcmk_sched_notif.c if ((task == stop_rsc) && op->node->details->unclean) { task 617 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 794 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task = text2task(n_data->action); task 807 lib/pacemaker/pcmk_sched_notif.c switch (text2task(op->task)) { task 821 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 856 lib/pacemaker/pcmk_sched_notif.c && ((task == stop_rsc) || (task == action_demote))) { task 875 lib/pacemaker/pcmk_sched_notif.c if ((task == action_demote) || (stop == NULL) task 884 lib/pacemaker/pcmk_sched_notif.c && ((task == start_rsc) || (task == action_promote))) { task 905 lib/pacemaker/pcmk_sched_notif.c if ((task != start_rsc) || (start == NULL) task 329 lib/pacemaker/pcmk_sched_ordering.c char *task = crm_strdup_printf(CRM_OP_RELAXED_CLONE ":%s", id); task 330 lib/pacemaker/pcmk_sched_ordering.c pe_action_t *clone_min_met = get_pseudo_op(task, data_set); task 332 lib/pacemaker/pcmk_sched_ordering.c free(task); task 491 lib/pacemaker/pcmk_sched_ordering.c res = strdup(action->task); task 910 lib/pacemaker/pcmk_sched_ordering.c char *task = crm_strdup_printf(CRM_OP_RELAXED_SET ":%s", ID(set1)); task 911 lib/pacemaker/pcmk_sched_ordering.c pe_action_t *unordered_action = get_pseudo_op(task, data_set); task 913 lib/pacemaker/pcmk_sched_ordering.c free(task); task 1242 lib/pacemaker/pcmk_sched_ordering.c && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei) task 1286 lib/pacemaker/pcmk_sched_ordering.c || !pcmk__str_eq(action->task, RSC_STOP, pcmk__str_casei)) { task 1348 lib/pacemaker/pcmk_sched_ordering.c char *task = NULL; task 1351 lib/pacemaker/pcmk_sched_ordering.c if (parse_op_key(original_key, NULL, &task, &interval_ms)) { task 1352 lib/pacemaker/pcmk_sched_ordering.c key = pcmk__op_key(rsc->id, task, interval_ms); task 1355 lib/pacemaker/pcmk_sched_ordering.c free(task); task 1554 lib/pacemaker/pcmk_sched_ordering.c const char *after_desc = (after->task == NULL)? after->uuid : after->task; task 1558 lib/pacemaker/pcmk_sched_ordering.c const char *before_desc = before->task? before->task : before->uuid; task 32 lib/pacemaker/pcmk_sched_probes.c if (pcmk__str_eq(then->task, CRM_OP_FENCE, pcmk__str_casei) task 43 lib/pacemaker/pcmk_sched_probes.c if (pcmk__str_eq(then->task, CRM_OP_SHUTDOWN, pcmk__str_none) task 95 lib/pacemaker/pcmk_sched_probes.c && !pcmk__str_eq(order->lh_action->task, RSC_STOP, pcmk__str_none)) { task 110 lib/pacemaker/pcmk_sched_probes.c && pcmk__str_eq(order->rh_action->task, RSC_STOP, task 205 lib/pacemaker/pcmk_sched_probes.c || !pcmk__str_eq(probe->task, RSC_STATUS, pcmk__str_casei)) { task 229 lib/pacemaker/pcmk_sched_probes.c if (pcmk__str_eq(after->task, RSC_START, pcmk__str_casei)) { task 233 lib/pacemaker/pcmk_sched_probes.c } else if (pcmk__str_eq(after->task, RSC_PROMOTE, pcmk__str_casei)) { task 462 lib/pacemaker/pcmk_sched_probes.c } else if (!pcmk__str_eq(first->task, RSC_START, pcmk__str_none)) { 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 370 lib/pacemaker/pcmk_sched_resource.c if (pcmk__str_eq(op->task, RSC_STOP, pcmk__str_casei)) { task 373 lib/pacemaker/pcmk_sched_resource.c } else if (pcmk__str_eq(op->task, RSC_START, pcmk__str_casei)) { task 52 lib/pacemaker/pcmk_simulate.c const char *task = action->task; task 60 lib/pacemaker/pcmk_simulate.c if (pcmk__str_eq(action->task, RSC_CANCEL, pcmk__str_none)) { task 62 lib/pacemaker/pcmk_simulate.c task = action->cancel_task; task 79 lib/pacemaker/pcmk_simulate.c if (pcmk__strcase_any_of(action->task, RSC_NOTIFY, RSC_NOTIFIED, task 90 lib/pacemaker/pcmk_simulate.c key = pcmk__op_key(clone_name, task, interval_ms); task 101 lib/pacemaker/pcmk_simulate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 105 lib/pacemaker/pcmk_simulate.c prefix, action->task, op, action_host); task 113 lib/pacemaker/pcmk_simulate.c prefix, action->task, action_host); task 470 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); task 473 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-pseudo-action", node, task); task 661 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 665 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-cluster-action", node, task, rsc); task 351 lib/pengine/common.c text2task(const char *task) task 353 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 355 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOPPED, pcmk__str_casei)) { task 357 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 359 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STARTED, pcmk__str_casei)) { task 361 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 363 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 365 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 367 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_casei)) { task 369 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFIED, pcmk__str_casei)) { task 371 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 373 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 375 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTED, pcmk__str_casei)) { task 377 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTED, pcmk__str_casei)) { task 381 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_CANCEL, pcmk__str_casei)) { task 383 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DELETE, pcmk__str_casei)) { task 385 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 387 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_LRM_REFRESH, 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 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 1138 lib/pengine/pe_output.c CRM_ASSERT((rsc_id != NULL) && (task != NULL)); task 1149 lib/pengine/pe_output.c crm_action_str(task, interval_ms), node_name); task 1188 lib/pengine/pe_output.c free(task); task 2356 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2361 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, task 2374 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2382 lib/pengine/pe_output.c "task", task, task 2679 lib/pengine/pe_output.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 2688 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 2690 lib/pengine/pe_output.c task = "probe"; task 2705 lib/pengine/pe_output.c out->message(out, "op-history", xml_op, task, interval_ms_s, task 2209 lib/pengine/unpack.c const char *task = NULL; task 2250 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2252 lib/pengine/unpack.c key = pcmk__op_key(rsc->id, task, interval_ms); task 2254 lib/pengine/unpack.c custom_action(rsc, key, task, node, TRUE, TRUE, data_set); task 2264 lib/pengine/unpack.c const char *task = NULL; task 2276 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2279 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei) task 2283 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_START, CRMD_ACTION_MIGRATED, NULL)) { task 2286 lib/pengine/unpack.c } else if ((implied_monitor_start <= *stop_index) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 2292 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_PROMOTE, CRMD_ACTION_DEMOTE, NULL)) { task 2348 lib/pengine/unpack.c const char *task = NULL; task 2409 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2410 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 3000 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3005 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3021 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 3028 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 3046 lib/pengine/unpack.c action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3053 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STOP)) { task 3056 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE)) { task 3059 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATED)) { task 3062 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3065 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_DEMOTE)) { task 3164 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3169 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_none)) { task 3197 lib/pengine/unpack.c CRM_CHECK(task != NULL, task 3209 lib/pengine/unpack.c task = "probe"; task 3293 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP)) { task 3297 lib/pengine/unpack.c CRM_XS " rc=%d id=%s", rsc->id, task, task 3311 lib/pengine/unpack.c *rc, task, rsc->id, node->details->uname, task 3324 lib/pengine/unpack.c should_clear_for_param_change(xmlNode *xml_op, const char *task, task 3328 lib/pengine/unpack.c if (!strcmp(task, "start") || !strcmp(task, "monitor")) { task 3375 lib/pengine/unpack.c const char *task, guint interval_ms, task 3400 lib/pengine/unpack.c && (interval_ms != 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3446 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3462 lib/pengine/unpack.c && !should_ignore_failure_timeout(rsc, xml_op, task, interval_ms, task 3512 lib/pengine/unpack.c && should_clear_for_param_change(xml_op, task, rsc, node, data_set)) { task 3532 lib/pengine/unpack.c "fencing of %s completes", task, rsc->id); task 3537 lib/pengine/unpack.c if (expired && (interval_ms == 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3566 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 3569 lib/pengine/unpack.c pe_action_t *action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3578 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, task 3592 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3606 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 3610 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 3614 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 3618 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 3626 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 3630 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 3686 lib/pengine/unpack.c const char *task = NULL; task 3698 lib/pengine/unpack.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3709 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3713 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_NOTIFY) || task 3714 lib/pengine/unpack.c !strcmp(task, CRMD_ACTION_METADATA)) { task 3724 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); task 3795 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, task 3809 lib/pengine/unpack.c ID(xml_op), task, rsc->id, node->details->uname, task 3814 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_START)) { task 3818 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3821 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE) && node->details->unclean) { task 3832 lib/pengine/unpack.c if ((interval_ms != 0) || strcmp(task, CRMD_ACTION_STATUS)) { task 3833 lib/pengine/unpack.c rsc->pending_task = strdup(task); task 3851 lib/pengine/unpack.c task, rsc->id, node->details->uname, task 3853 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); task 3857 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3862 lib/pengine/unpack.c task, rsc->id, node->details->uname, status, rc, task 3899 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3902 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP))) { task 3906 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), task 3911 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, task 3949 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), task 481 lib/pengine/utils.c new_action(char *key, const char *task, pe_resource_t *rsc, pe_node_t *node, task 489 lib/pengine/utils.c action->task = strdup(task); CRM_ASSERT(action->task != NULL); task 498 lib/pengine/utils.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 522 lib/pengine/utils.c data_set->action_id, key, task, task 627 lib/pengine/utils.c && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 700 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 703 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_START, pcmk__str_casei)) { task 730 lib/pengine/utils.c custom_action(pe_resource_t *rsc, char *key, const char *task, task 736 lib/pengine/utils.c CRM_ASSERT((key != NULL) && (task != NULL) && (data_set != NULL)); task 743 lib/pengine/utils.c action = new_action(key, task, rsc, on_node, optional, save_action, task 782 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 790 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_DEMOTE, pcmk__str_casei) && !value) { task 825 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 1081 lib/pengine/utils.c .op_name = action->task, task 1096 lib/pengine/utils.c is_probe = pcmk_is_probe(action->task, interval_ms); 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 1477 lib/pengine/utils.c free(action->task); task 1500 lib/pengine/utils.c } else if (pcmk__str_eq(CRMD_ACTION_CANCEL, action->task, pcmk__str_casei)) { task 1520 lib/pengine/utils.c enum action_tasks task = text2task(name); task 1523 lib/pengine/utils.c return task; task 1526 lib/pengine/utils.c switch (task) { task 1532 lib/pengine/utils.c return task - 1; task 1537 lib/pengine/utils.c return task; task 1541 lib/pengine/utils.c find_first_action(GList *input, const char *uuid, const char *task, pe_node_t * on_node) task 1545 lib/pengine/utils.c CRM_CHECK(uuid || task, return NULL); task 1553 lib/pengine/utils.c } else if (task != NULL && !pcmk__str_eq(task, action->task, pcmk__str_casei)) { task 1645 lib/pengine/utils.c const char *task, bool require_node) task 1648 lib/pengine/utils.c char *key = pcmk__op_key(rsc->id, task, 0); task 2346 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 1652 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, task 1671 tools/crm_mon.c setenv("CRM_notify_task", task, 1); task 1703 tools/crm_mon.c char *task = NULL; task 1740 tools/crm_mon.c if (parse_op_key(id, &rsc, &task, NULL) == FALSE) { task 1771 tools/crm_mon.c crm_notice("%s of %s on %s completed: %s", task, rsc, node, desc); task 1778 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1782 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1786 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); task 1790 tools/crm_mon.c free(task); task 1589 tools/crm_resource_runtime.c || pcmk__str_eq("notify", action->task, pcmk__str_casei)) {