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 1437 daemons/execd/execd_commands.c GList *first = rsc->pending_ops; first 1439 daemons/execd/execd_commands.c cmd = first->data; first 1446 daemons/execd/execd_commands.c rsc->pending_ops = g_list_remove_link(rsc->pending_ops, first); first 1447 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 1135 daemons/fenced/fenced_commands.c device_params_diff(GHashTable *first, GHashTable *second) { first 1140 daemons/fenced/fenced_commands.c g_hash_table_iter_init(&gIter, first); first 153 include/pcmki/pcmki_sched_allocate.h enum pe_graph_flags native_update_actions(pe_action_t *first, pe_action_t *then, first 159 include/pcmki/pcmki_sched_allocate.h enum pe_graph_flags group_update_actions(pe_action_t *first, pe_action_t *then, first 165 include/pcmki/pcmki_sched_allocate.h enum pe_graph_flags pcmk__multi_update_actions(pe_action_t *first, first 561 lib/cluster/cpg.c cmp_member_list_nodeid(const void *first, const void *second) first 563 lib/cluster/cpg.c const struct cpg_address *const a = *((const struct cpg_address **) first), first 2759 lib/pacemaker/pcmk_sched_allocate.c pe_action_t *first = before->action; first 2760 lib/pacemaker/pcmk_sched_allocate.c pe_resource_t *first_rsc = first->rsc; first 2762 lib/pacemaker/pcmk_sched_allocate.c if(first->required_runnable_before) { first 2764 lib/pacemaker/pcmk_sched_allocate.c for (clone_actions = first->actions_before; clone_actions != NULL; clone_actions = clone_actions->next) { first 2767 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 2774 lib/pacemaker/pcmk_sched_allocate.c } else if(!pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { first 2775 lib/pacemaker/pcmk_sched_allocate.c crm_trace("Not a start op %s for %s", first->uuid, start->uuid); first 2790 lib/pacemaker/pcmk_sched_allocate.c crm_err("Applying %s before %s %d", first->uuid, start->uuid, uber_parent(first_rsc)->variant); first 2795 lib/pacemaker/pcmk_sched_allocate.c crm_err("Ordering %s before %s", first->uuid, probe->uuid); first 2796 lib/pacemaker/pcmk_sched_allocate.c order_actions(first, probe, pe_order_optional); first 648 lib/pacemaker/pcmk_sched_bundle.c multi_update_interleave_actions(pe_action_t *first, pe_action_t *then, first 660 lib/pacemaker/pcmk_sched_bundle.c if (pcmk__ends_with(first->uuid, "_stopped_0") first 661 lib/pacemaker/pcmk_sched_bundle.c || pcmk__ends_with(first->uuid, "_demoted_0")) { first 669 lib/pacemaker/pcmk_sched_bundle.c first->rsc, first 676 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 687 lib/pacemaker/pcmk_sched_bundle.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 695 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = clone_child_action(first); first 701 lib/pacemaker/pcmk_sched_bundle.c first_replica = replica_for_container(first->rsc, first_child, first 703 lib/pacemaker/pcmk_sched_bundle.c if (strstr(first->task, "stop") && first_replica && first_replica->child) { first 767 lib/pacemaker/pcmk_sched_bundle.c pe__set_graph_flags(changed, first, first 790 lib/pacemaker/pcmk_sched_bundle.c can_interleave_actions(pe_action_t *first, pe_action_t *then) first 796 lib/pacemaker/pcmk_sched_bundle.c if(first->rsc == NULL || then->rsc == NULL) { first 797 lib/pacemaker/pcmk_sched_bundle.c crm_trace("Not interleaving %s with %s (both must be resources)", first->uuid, then->uuid); first 799 lib/pacemaker/pcmk_sched_bundle.c } else if(first->rsc == then->rsc) { first 800 lib/pacemaker/pcmk_sched_bundle.c crm_trace("Not interleaving %s with %s (must belong to different resources)", first->uuid, then->uuid); first 802 lib/pacemaker/pcmk_sched_bundle.c } else if(first->rsc->variant < pe_clone || then->rsc->variant < pe_clone) { first 803 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 809 lib/pacemaker/pcmk_sched_bundle.c rsc = first->rsc; first 817 lib/pacemaker/pcmk_sched_bundle.c first->uuid, then->uuid, interleave ? "yes" : "no", rsc->id); first 823 lib/pacemaker/pcmk_sched_bundle.c pcmk__multi_update_actions(pe_action_t *first, pe_action_t *then, first 830 lib/pacemaker/pcmk_sched_bundle.c crm_trace("%s -> %s", first->uuid, then->uuid); first 832 lib/pacemaker/pcmk_sched_bundle.c if(can_interleave_actions(first, then)) { first 833 lib/pacemaker/pcmk_sched_bundle.c changed = multi_update_interleave_actions(first, then, node, flags, first 841 lib/pacemaker/pcmk_sched_bundle.c changed |= native_update_actions(first, then, node, flags, filter, first 855 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 "%s then %s: changed", first->uuid, then->uuid); first 279 lib/pacemaker/pcmk_sched_graph.c "%s then %s", first->uuid, then->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 560 lib/pacemaker/pcmk_sched_graph.c pe_action_t *first = other->action; first 563 lib/pacemaker/pcmk_sched_graph.c pe_node_t *first_node = first->node; first 568 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 569 lib/pacemaker/pcmk_sched_graph.c first_node = first->rsc->fns->location(first->rsc, NULL, FALSE); first 571 lib/pacemaker/pcmk_sched_graph.c crm_trace("First: Found node %s for %s", first_node->details->uname, first->uuid); first 595 lib/pacemaker/pcmk_sched_graph.c if (first->rsc && pcmk_is_set(other->type, pe_order_then_cancels_first) first 602 lib/pacemaker/pcmk_sched_graph.c if (!strcmp(first->task, CRMD_ACTION_RELOAD_AGENT)) { first 603 lib/pacemaker/pcmk_sched_graph.c pe__clear_resource_flags(first->rsc, pe_rsc_reload); first 607 lib/pacemaker/pcmk_sched_graph.c if (first->rsc && then->rsc && (first->rsc != then->rsc) first 608 lib/pacemaker/pcmk_sched_graph.c && (is_parent(then->rsc, first->rsc) == FALSE)) { first 609 lib/pacemaker/pcmk_sched_graph.c first = rsc_expand_action(first); first 611 lib/pacemaker/pcmk_sched_graph.c if (first != other->action) { first 612 lib/pacemaker/pcmk_sched_graph.c crm_trace("Ordering %s after %s instead of %s", then->uuid, first->uuid, first 616 lib/pacemaker/pcmk_sched_graph.c first_flags = get_action_flags(first, then_node); first 625 lib/pacemaker/pcmk_sched_graph.c first->uuid, first 629 lib/pacemaker/pcmk_sched_graph.c : (first->node? first->node->details->uname : ""), first 632 lib/pacemaker/pcmk_sched_graph.c if (first == other->action) { first 647 lib/pacemaker/pcmk_sched_graph.c changed |= graph_update_action(first, then, node, first_flags, first 653 lib/pacemaker/pcmk_sched_graph.c } else if (order_actions(first, then, other->type)) { first 663 lib/pacemaker/pcmk_sched_graph.c other->action->uuid, then->uuid, first->uuid, then->uuid); first 672 lib/pacemaker/pcmk_sched_graph.c first->uuid, first 673 lib/pacemaker/pcmk_sched_graph.c pcmk_is_set(first->flags, pe_action_optional)? "optional" : "required", first 674 lib/pacemaker/pcmk_sched_graph.c pcmk_is_set(first->flags, pe_action_runnable)? "runnable" : "unrunnable", first 675 lib/pacemaker/pcmk_sched_graph.c pcmk_is_set(first->flags, pe_action_pseudo)? "pseudo" first 676 lib/pacemaker/pcmk_sched_graph.c : (first->node? first->node->details->uname : "")); first 677 lib/pacemaker/pcmk_sched_graph.c for (lpc2 = first->actions_after; lpc2 != NULL; lpc2 = lpc2->next) { first 682 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 2077 lib/pacemaker/pcmk_sched_native.c handle_restart_ordering(pe_action_t *first, pe_action_t *then, first 2082 lib/pacemaker/pcmk_sched_native.c CRM_ASSERT(is_primitive_action(first)); first 2107 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Handling %s -> %s for %s", first 2108 lib/pacemaker/pcmk_sched_native.c first->uuid, then->uuid, reason); first 2111 lib/pacemaker/pcmk_sched_native.c if (pcmk_is_set(first->flags, pe_action_runnable)) { first 2112 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2117 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2122 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_migrate_runnable); first 2126 lib/pacemaker/pcmk_sched_native.c if (!pcmk_is_set(first->flags, pe_action_optional) first 2127 lib/pacemaker/pcmk_sched_native.c && !pcmk_is_set(first->flags, pe_action_runnable)) { first 2128 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_runnable); first 2133 lib/pacemaker/pcmk_sched_native.c native_update_actions(pe_action_t *first, pe_action_t *then, pe_node_t *node, first 2140 lib/pacemaker/pcmk_sched_native.c enum pe_action_flags first_flags = first->flags; first 2143 lib/pacemaker/pcmk_sched_native.c first->uuid, first->node ? first->node->details->uname : "[none]", first 2144 lib/pacemaker/pcmk_sched_native.c first->flags, then->uuid, then->flags); first 2166 lib/pacemaker/pcmk_sched_native.c } else if (!(first->flags & pe_action_runnable)) { first 2169 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_optional); first 2170 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_runnable); first 2182 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Unset optional on %s because of %s", first->uuid, then->uuid); first 2183 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2190 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Unset migrate runnable on %s because of %s", first 2191 lib/pacemaker/pcmk_sched_native.c first->uuid, then->uuid); first 2192 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_migrate_runnable); first 2200 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2202 lib/pacemaker/pcmk_sched_native.c if (pcmk_is_set(first->flags, pe_action_migrate_runnable) && first 2205 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, "Unset migrate runnable on %s because of %s", first->uuid, then->uuid); first 2206 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_migrate_runnable); first 2208 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset optional on %s because of %s", first->uuid, then->uuid); first 2218 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 2219 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_runnable); first 2223 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 2224 lib/pacemaker/pcmk_sched_native.c pe_action_implies(first, then, pe_action_optional); first 2231 lib/pacemaker/pcmk_sched_native.c if ((first->flags & pe_action_runnable) == FALSE) { first 2232 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_migrate_runnable); first 2234 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 2243 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset runnable on %s because of %s", then->uuid, first->uuid); first 2244 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_runnable); first 2245 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_migrate_runnable); first 2254 lib/pacemaker/pcmk_sched_native.c if (!pcmk_is_set(first->flags, pe_action_migrate_runnable)) { first 2255 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(then->rsc, "Unset optional on %s because of %s", then->uuid, first->uuid); first 2256 lib/pacemaker/pcmk_sched_native.c pe_action_implies(then, first, pe_action_optional); first 2261 lib/pacemaker/pcmk_sched_native.c handle_restart_ordering(first, then, filter); first 2265 lib/pacemaker/pcmk_sched_native.c pe__set_graph_flags(changed, first, pe_graph_updated_then); first 2269 lib/pacemaker/pcmk_sched_native.c then_flags, first->uuid, first->flags); first 2277 lib/pacemaker/pcmk_sched_native.c if (first_flags != first->flags) { first 2278 lib/pacemaker/pcmk_sched_native.c pe__set_graph_flags(changed, first, pe_graph_updated_first); first 2279 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(first->rsc, first 2281 lib/pacemaker/pcmk_sched_native.c first->uuid, first->node ? first->node->details->uname : "[none]", first 2282 lib/pacemaker/pcmk_sched_native.c first->flags, first_flags, then->uuid, then->flags); first 2909 lib/pengine/unpack.c cmp_on_fail(enum action_fail_response first, enum action_fail_response second) first 2911 lib/pengine/unpack.c switch (first) { first 2955 lib/pengine/unpack.c return (first == action_fail_ignore)? -1 : 1; first 2958 lib/pengine/unpack.c switch (first) { first 2969 lib/pengine/unpack.c switch (first) { first 2983 lib/pengine/unpack.c return first - second;