first 759 daemons/controld/controld_remote_ra.c GList *first = NULL; first 767 daemons/controld/controld_remote_ra.c first = ra_data->cmds; first 768 daemons/controld/controld_remote_ra.c cmd = first->data; first 774 daemons/controld/controld_remote_ra.c ra_data->cmds = g_list_remove_link(ra_data->cmds, first); first 775 daemons/controld/controld_remote_ra.c g_list_free_1(first); first 1409 daemons/execd/execd_commands.c GList *first = rsc->pending_ops; first 1411 daemons/execd/execd_commands.c cmd = first->data; first 1418 daemons/execd/execd_commands.c rsc->pending_ops = g_list_remove_link(rsc->pending_ops, first); first 1419 daemons/execd/execd_commands.c g_list_free_1(first); first 76 daemons/execd/remoted_pidone.c find_env_var_name(char *line, char **first, char **last) first 79 daemons/execd/remoted_pidone.c *first = line; first 80 daemons/execd/remoted_pidone.c while (isspace(**first)) { first 81 daemons/execd/remoted_pidone.c ++*first; first 84 daemons/execd/remoted_pidone.c if (isalpha(**first) || (**first == '_')) { // Valid first character first 85 daemons/execd/remoted_pidone.c *last = *first; first 92 daemons/execd/remoted_pidone.c *first = *last = NULL; first 1099 daemons/fenced/fenced_commands.c device_params_diff(GHashTable *first, GHashTable *second) { first 1104 daemons/fenced/fenced_commands.c g_hash_table_iter_init(&gIter, first); first 158 include/pcmki/pcmki_sched_allocate.h enum pe_graph_flags native_update_actions(pe_action_t *first, pe_action_t *then, first 164 include/pcmki/pcmki_sched_allocate.h enum pe_graph_flags group_update_actions(pe_action_t *first, pe_action_t *then, first 170 include/pcmki/pcmki_sched_allocate.h enum pe_graph_flags pcmk__multi_update_actions(pe_action_t *first, first 364 lib/cluster/cpg.c static int cmp_member_list_nodeid(const void *first, first 367 lib/cluster/cpg.c const struct cpg_address *const a = *((const struct cpg_address **) first), first 2747 lib/pacemaker/pcmk_sched_allocate.c pe_action_t *first = before->action; first 2748 lib/pacemaker/pcmk_sched_allocate.c pe_resource_t *first_rsc = first->rsc; first 2750 lib/pacemaker/pcmk_sched_allocate.c if(first->required_runnable_before) { first 2752 lib/pacemaker/pcmk_sched_allocate.c for (clone_actions = first->actions_before; clone_actions != NULL; clone_actions = clone_actions->next) { first 2755 lib/pacemaker/pcmk_sched_allocate.c crm_trace("Testing %s -> %s (%p) for %s", first->uuid, before->action->uuid, before->action->rsc, start->uuid); first 2762 lib/pacemaker/pcmk_sched_allocate.c } else if(!pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { first 2763 lib/pacemaker/pcmk_sched_allocate.c crm_trace("Not a start op %s for %s", first->uuid, start->uuid); first 2778 lib/pacemaker/pcmk_sched_allocate.c crm_err("Applying %s before %s %d", first->uuid, start->uuid, uber_parent(first_rsc)->variant); first 2783 lib/pacemaker/pcmk_sched_allocate.c crm_err("Ordering %s before %s", first->uuid, probe->uuid); first 2784 lib/pacemaker/pcmk_sched_allocate.c order_actions(first, probe, pe_order_optional); first 638 lib/pacemaker/pcmk_sched_bundle.c multi_update_interleave_actions(pe_action_t *first, pe_action_t *then, first 650 lib/pacemaker/pcmk_sched_bundle.c if (pcmk__ends_with(first->uuid, "_stopped_0") first 651 lib/pacemaker/pcmk_sched_bundle.c || pcmk__ends_with(first->uuid, "_demoted_0")) { first 659 lib/pacemaker/pcmk_sched_bundle.c first->rsc, first 666 lib/pacemaker/pcmk_sched_bundle.c crm_debug("No match found for %s (%d / %s / %s)", then_child->id, current, first->uuid, then->uuid); first 677 lib/pacemaker/pcmk_sched_bundle.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 685 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = clone_child_action(first); first 691 lib/pacemaker/pcmk_sched_bundle.c first_replica = replica_for_container(first->rsc, first_child, first 693 lib/pacemaker/pcmk_sched_bundle.c if (strstr(first->task, "stop") && first_replica && first_replica->child) { first 757 lib/pacemaker/pcmk_sched_bundle.c pe__set_graph_flags(changed, first, first 780 lib/pacemaker/pcmk_sched_bundle.c can_interleave_actions(pe_action_t *first, pe_action_t *then) first 786 lib/pacemaker/pcmk_sched_bundle.c if(first->rsc == NULL || then->rsc == NULL) { first 787 lib/pacemaker/pcmk_sched_bundle.c crm_trace("Not interleaving %s with %s (both must be resources)", first->uuid, then->uuid); first 789 lib/pacemaker/pcmk_sched_bundle.c } else if(first->rsc == then->rsc) { first 790 lib/pacemaker/pcmk_sched_bundle.c crm_trace("Not interleaving %s with %s (must belong to different resources)", first->uuid, then->uuid); first 792 lib/pacemaker/pcmk_sched_bundle.c } else if(first->rsc->variant < pe_clone || then->rsc->variant < pe_clone) { first 793 lib/pacemaker/pcmk_sched_bundle.c crm_trace("Not interleaving %s with %s (both sides must be clones or bundles)", first->uuid, then->uuid); first 799 lib/pacemaker/pcmk_sched_bundle.c rsc = first->rsc; first 807 lib/pacemaker/pcmk_sched_bundle.c first->uuid, then->uuid, interleave ? "yes" : "no", rsc->id); first 813 lib/pacemaker/pcmk_sched_bundle.c pcmk__multi_update_actions(pe_action_t *first, pe_action_t *then, first 820 lib/pacemaker/pcmk_sched_bundle.c crm_trace("%s -> %s", first->uuid, then->uuid); first 822 lib/pacemaker/pcmk_sched_bundle.c if(can_interleave_actions(first, then)) { first 823 lib/pacemaker/pcmk_sched_bundle.c changed = multi_update_interleave_actions(first, then, node, flags, first 831 lib/pacemaker/pcmk_sched_bundle.c changed |= native_update_actions(first, then, node, flags, filter, first 845 lib/pacemaker/pcmk_sched_bundle.c then_child_changed |= then_child->cmds->update_actions(first, first 23 lib/pacemaker/pcmk_sched_graph.c gboolean rsc_update_action(pe_action_t * first, pe_action_t * then, enum pe_ordering type); first 176 lib/pacemaker/pcmk_sched_graph.c graph_update_action(pe_action_t * first, pe_action_t * then, pe_node_t * node, first 201 lib/pacemaker/pcmk_sched_graph.c node = first->node; first 210 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 216 lib/pacemaker/pcmk_sched_graph.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 220 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "implies right: %s then %s: changed", first->uuid, then->uuid); first 222 lib/pacemaker/pcmk_sched_graph.c crm_trace("implies right: %s then %s %p", first->uuid, then->uuid, then->rsc); first 230 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 234 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "restart: %s then %s: changed", first->uuid, then->uuid); first 236 lib/pacemaker/pcmk_sched_graph.c crm_trace("restart: %s then %s", first->uuid, then->uuid); first 242 lib/pacemaker/pcmk_sched_graph.c if (first->rsc) { first 243 lib/pacemaker/pcmk_sched_graph.c changed |= first->rsc->cmds->update_actions(first, then, node, first 248 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(first->rsc, "first unrunnable: %s (%d) then %s (%d)", first 249 lib/pacemaker/pcmk_sched_graph.c first->uuid, pcmk_is_set(first_flags, pe_action_optional), first 251 lib/pacemaker/pcmk_sched_graph.c if (update_action_flags(first, pe_action_runnable | pe_action_clear, __func__, __LINE__)) { first 252 lib/pacemaker/pcmk_sched_graph.c pe__set_graph_flags(changed, first, pe_graph_updated_first); first 257 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "implies left: %s then %s: changed", first->uuid, then->uuid); first 260 lib/pacemaker/pcmk_sched_graph.c first->uuid, pcmk_is_set(first_flags, pe_action_optional), first 268 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 276 lib/pacemaker/pcmk_sched_graph.c first->uuid, then->uuid); first 278 lib/pacemaker/pcmk_sched_graph.c crm_trace("implies left when right rsc is Master role: %s then %s", first->uuid, first 286 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 299 lib/pacemaker/pcmk_sched_graph.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 304 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "runnable_one_or_more: %s then %s: changed", first->uuid, first 307 lib/pacemaker/pcmk_sched_graph.c crm_trace("runnable_one_or_more: %s then %s", first->uuid, then->uuid); first 315 lib/pacemaker/pcmk_sched_graph.c && (first->rsc->running_on != NULL)) { first 318 lib/pacemaker/pcmk_sched_graph.c first->uuid, then->uuid, first->rsc->id); first 323 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "Enforcing %s then %s", first->uuid, then->uuid); first 324 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 330 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "runnable: %s then %s: changed", first->uuid, then->uuid); first 332 lib/pacemaker/pcmk_sched_graph.c crm_trace("runnable: %s then %s", first->uuid, then->uuid); first 339 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 344 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "then unrunnable: %s then %s", first->uuid, then->uuid); first 346 lib/pacemaker/pcmk_sched_graph.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 350 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "runnable: %s then %s: changed", first->uuid, then->uuid); first 352 lib/pacemaker/pcmk_sched_graph.c crm_trace("runnable: %s then %s", first->uuid, then->uuid); first 359 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 364 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "optional: %s then %s: changed", first->uuid, then->uuid); first 366 lib/pacemaker/pcmk_sched_graph.c crm_trace("optional: %s then %s", first->uuid, then->uuid); first 373 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 378 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "optional: %s then %s: changed", first->uuid, then->uuid); first 380 lib/pacemaker/pcmk_sched_graph.c crm_trace("optional: %s then %s", first->uuid, then->uuid); first 387 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 391 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "optional: %s then %s: changed", first->uuid, then->uuid); first 393 lib/pacemaker/pcmk_sched_graph.c crm_trace("optional: %s then %s", first->uuid, then->uuid); first 400 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, first 406 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "asymmetrical: %s then %s: changed", first->uuid, then->uuid); first 408 lib/pacemaker/pcmk_sched_graph.c crm_trace("asymmetrical: %s then %s", first->uuid, then->uuid); first 413 lib/pacemaker/pcmk_sched_graph.c if ((first->flags & pe_action_runnable) && (type & pe_order_implies_then_printed) first 416 lib/pacemaker/pcmk_sched_graph.c crm_trace("%s implies %s printed", first->uuid, then->uuid); first 424 lib/pacemaker/pcmk_sched_graph.c crm_trace("%s implies %s printed", then->uuid, first->uuid); first 425 lib/pacemaker/pcmk_sched_graph.c update_action_flags(first, pe_action_print_always, __func__, __LINE__); /* don't care about changed */ first 431 lib/pacemaker/pcmk_sched_graph.c && first->rsc first 432 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(first->task, RSC_STOP, pcmk__str_casei) first 433 lib/pacemaker/pcmk_sched_graph.c && !pcmk_is_set(first->rsc->flags, pe_rsc_managed) first 434 lib/pacemaker/pcmk_sched_graph.c && pcmk_is_set(first->rsc->flags, pe_rsc_block) first 435 lib/pacemaker/pcmk_sched_graph.c && !pcmk_is_set(first->flags, pe_action_runnable)) { first 438 lib/pacemaker/pcmk_sched_graph.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 442 lib/pacemaker/pcmk_sched_graph.c pe_rsc_trace(then->rsc, "unmanaged left: %s then %s: changed", first->uuid, then->uuid); first 444 lib/pacemaker/pcmk_sched_graph.c crm_trace("unmanaged left: %s then %s", first->uuid, then->uuid); first 559 lib/pacemaker/pcmk_sched_graph.c pe_action_t *first = other->action; first 562 lib/pacemaker/pcmk_sched_graph.c pe_node_t *first_node = first->node; first 567 lib/pacemaker/pcmk_sched_graph.c if (first->rsc && first->rsc->variant == pe_group && pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { first 568 lib/pacemaker/pcmk_sched_graph.c first_node = first->rsc->fns->location(first->rsc, NULL, FALSE); first 570 lib/pacemaker/pcmk_sched_graph.c crm_trace("First: Found node %s for %s", first_node->details->uname, first->uuid); first 594 lib/pacemaker/pcmk_sched_graph.c if (first->rsc && pcmk_is_set(other->type, pe_order_then_cancels_first) first 601 lib/pacemaker/pcmk_sched_graph.c if (!strcmp(first->task, CRMD_ACTION_RELOAD)) { first 602 lib/pacemaker/pcmk_sched_graph.c pe__clear_resource_flags(first->rsc, pe_rsc_reload); first 606 lib/pacemaker/pcmk_sched_graph.c if (first->rsc && then->rsc && (first->rsc != then->rsc) first 607 lib/pacemaker/pcmk_sched_graph.c && (is_parent(then->rsc, first->rsc) == FALSE)) { first 608 lib/pacemaker/pcmk_sched_graph.c first = rsc_expand_action(first); first 610 lib/pacemaker/pcmk_sched_graph.c if (first != other->action) { first 611 lib/pacemaker/pcmk_sched_graph.c crm_trace("Ordering %s after %s instead of %s", then->uuid, first->uuid, first 615 lib/pacemaker/pcmk_sched_graph.c first_flags = get_action_flags(first, then_node); first 624 lib/pacemaker/pcmk_sched_graph.c first->uuid, first 628 lib/pacemaker/pcmk_sched_graph.c : (first->node? first->node->details->uname : ""), first 631 lib/pacemaker/pcmk_sched_graph.c if (first == other->action) { first 646 lib/pacemaker/pcmk_sched_graph.c changed |= graph_update_action(first, then, node, first_flags, first 652 lib/pacemaker/pcmk_sched_graph.c } else if (order_actions(first, then, other->type)) { first 662 lib/pacemaker/pcmk_sched_graph.c other->action->uuid, then->uuid, first->uuid, then->uuid); first 671 lib/pacemaker/pcmk_sched_graph.c first->uuid, first 672 lib/pacemaker/pcmk_sched_graph.c pcmk_is_set(first->flags, pe_action_optional)? "optional" : "required", first 673 lib/pacemaker/pcmk_sched_graph.c pcmk_is_set(first->flags, pe_action_runnable)? "runnable" : "unrunnable", first 674 lib/pacemaker/pcmk_sched_graph.c pcmk_is_set(first->flags, pe_action_pseudo)? "pseudo" first 675 lib/pacemaker/pcmk_sched_graph.c : (first->node? first->node->details->uname : "")); first 676 lib/pacemaker/pcmk_sched_graph.c for (lpc2 = first->actions_after; lpc2 != NULL; lpc2 = lpc2->next) { first 681 lib/pacemaker/pcmk_sched_graph.c update_action(first, data_set); first 426 lib/pacemaker/pcmk_sched_group.c group_update_actions(pe_action_t *first, pe_action_t *then, pe_node_t *node, first 434 lib/pacemaker/pcmk_sched_group.c changed |= native_update_actions(first, then, node, flags, filter, type, first 442 lib/pacemaker/pcmk_sched_group.c changed |= child->cmds->update_actions(first, child_action, node, first 2080 lib/pacemaker/pcmk_sched_native.c handle_restart_ordering(pe_action_t *first, pe_action_t *then, first 2085 lib/pacemaker/pcmk_sched_native.c CRM_ASSERT(is_primitive_action(first)); first 2110 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Handling %s -> %s for %s", first 2111 lib/pacemaker/pcmk_sched_native.c first->uuid, then->uuid, reason); first 2114 lib/pacemaker/pcmk_sched_native.c if (pcmk_is_set(first->flags, pe_action_runnable)) { first 2115 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2120 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2125 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_migrate_runnable); first 2129 lib/pacemaker/pcmk_sched_native.c if (!pcmk_is_set(first->flags, pe_action_optional) first 2130 lib/pacemaker/pcmk_sched_native.c && !pcmk_is_set(first->flags, pe_action_runnable)) { first 2131 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_runnable); first 2136 lib/pacemaker/pcmk_sched_native.c native_update_actions(pe_action_t *first, pe_action_t *then, pe_node_t *node, first 2143 lib/pacemaker/pcmk_sched_native.c enum pe_action_flags first_flags = first->flags; first 2146 lib/pacemaker/pcmk_sched_native.c first->uuid, first->node ? first->node->details->uname : "[none]", first 2147 lib/pacemaker/pcmk_sched_native.c first->flags, then->uuid, then->flags); first 2169 lib/pacemaker/pcmk_sched_native.c } else if (!(first->flags & pe_action_runnable)) { first 2172 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_optional); first 2173 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_runnable); first 2185 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Unset optional on %s because of %s", first->uuid, then->uuid); first 2186 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2193 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Unset migrate runnable on %s because of %s", first 2194 lib/pacemaker/pcmk_sched_native.c first->uuid, then->uuid); first 2195 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_migrate_runnable); first 2203 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2205 lib/pacemaker/pcmk_sched_native.c if (pcmk_is_set(first->flags, pe_action_migrate_runnable) && first 2208 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Unset migrate runnable on %s because of %s", first->uuid, then->uuid); first 2209 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_migrate_runnable); first 2211 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset optional on %s because of %s", first->uuid, then->uuid); first 2221 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset runnable on %s because %s is neither runnable or migratable", first->uuid, then->uuid); first 2222 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_runnable); first 2226 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset optional on %s because %s is not optional", first->uuid, then->uuid); first 2227 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2234 lib/pacemaker/pcmk_sched_native.c if ((first->flags & pe_action_runnable) == FALSE) { first 2235 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_migrate_runnable); first 2237 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset pseudo on %s because %s is not runnable", then->uuid, first->uuid); first 2246 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset runnable on %s because of %s", then->uuid, first->uuid); first 2247 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_runnable); first 2248 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_migrate_runnable); first 2257 lib/pacemaker/pcmk_sched_native.c if (!pcmk_is_set(first->flags, pe_action_migrate_runnable)) { first 2258 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset optional on %s because of %s", then->uuid, first->uuid); first 2259 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_optional); first 2264 lib/pacemaker/pcmk_sched_native.c handle_restart_ordering(first, then, filter); first 2268 lib/pacemaker/pcmk_sched_native.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 2272 lib/pacemaker/pcmk_sched_native.c then_flags, first->uuid, first->flags); first 2280 lib/pacemaker/pcmk_sched_native.c if (first_flags != first->flags) { first 2281 lib/pacemaker/pcmk_sched_native.c pe__set_graph_flags(changed, first, pe_graph_updated_first); first 2282 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, first 2284 lib/pacemaker/pcmk_sched_native.c first->uuid, first->node ? first->node->details->uname : "[none]", first 2285 lib/pacemaker/pcmk_sched_native.c first->flags, first_flags, then->uuid, then->flags); first 2826 lib/pengine/unpack.c cmp_on_fail(enum action_fail_response first, enum action_fail_response second) first 2828 lib/pengine/unpack.c switch (first) { first 2872 lib/pengine/unpack.c return (first == action_fail_ignore)? -1 : 1; first 2875 lib/pengine/unpack.c switch (first) { first 2886 lib/pengine/unpack.c switch (first) { first 2900 lib/pengine/unpack.c return first - second;