cons 21 lib/pacemaker/pcmk_output.c colocations_header(pe_resource_t *rsc, pcmk__colocation_t *cons, cons 26 lib/pacemaker/pcmk_output.c score = score2char(cons->score); cons 27 lib/pacemaker/pcmk_output.c if (cons->primary_role > RSC_ROLE_STARTED) { cons 30 lib/pacemaker/pcmk_output.c role2text(cons->primary_role), cons->id); cons 33 lib/pacemaker/pcmk_output.c rsc->id, score, cons->id); cons 42 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons) { cons 46 lib/pacemaker/pcmk_output.c score = score2char(cons->score); cons 48 lib/pacemaker/pcmk_output.c "id", cons->id, cons 49 lib/pacemaker/pcmk_output.c "rsc", cons->dependent->id, cons 50 lib/pacemaker/pcmk_output.c "with-rsc", cons->primary->id, cons 54 lib/pacemaker/pcmk_output.c if (cons->node_attribute) { cons 55 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "node-attribute", (pcmkXmlStr) cons->node_attribute); cons 58 lib/pacemaker/pcmk_output.c if (cons->dependent_role != RSC_ROLE_UNKNOWN) { cons 60 lib/pacemaker/pcmk_output.c (pcmkXmlStr) role2text(cons->dependent_role)); cons 63 lib/pacemaker/pcmk_output.c if (cons->primary_role != RSC_ROLE_UNKNOWN) { cons 65 lib/pacemaker/pcmk_output.c (pcmkXmlStr) role2text(cons->primary_role)); cons 79 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 83 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 94 lib/pacemaker/pcmk_output.c "id", cons->id, cons 366 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 371 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->primary->flags, pe_rsc_allocating)) { cons 373 lib/pacemaker/pcmk_output.c cons->primary->id, cons->id); cons 377 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->primary, cons, FALSE); cons 384 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->primary); cons 387 lib/pacemaker/pcmk_output.c cons->primary, recursive); cons 411 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 413 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->primary->flags, pe_rsc_allocating)) { cons 414 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->primary, cons); cons 418 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->primary, cons); cons 419 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->primary, false); cons 423 lib/pacemaker/pcmk_output.c cons->primary, recursive); cons 444 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 449 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 451 lib/pacemaker/pcmk_output.c cons->dependent->id, cons->id); cons 455 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->dependent, cons, TRUE); cons 462 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->dependent); cons 465 lib/pacemaker/pcmk_output.c cons->dependent, recursive); cons 489 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 491 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 492 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); cons 496 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); cons 497 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->dependent, false); cons 501 lib/pacemaker/pcmk_output.c cons->dependent, recursive); cons 518 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 522 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 528 lib/pacemaker/pcmk_output.c node->details->uname, score, cons->id, rsc->id); cons 549 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter->data; cons 551 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0 || cons->score == INFINITY) { cons 552 lib/pacemaker/pcmk_sched_clone.c child->rsc_cons = g_list_prepend(child->rsc_cons, cons); cons 558 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter->data; cons 560 lib/pacemaker/pcmk_sched_clone.c if (!pcmk__colocation_has_influence(cons, child)) { cons 563 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0) { cons 564 lib/pacemaker/pcmk_sched_clone.c child->rsc_cons_lhs = g_list_prepend(child->rsc_cons_lhs, cons); cons 150 lib/pacemaker/pcmk_sched_promotable.c pe__location_t *cons = gIter->data; cons 152 lib/pacemaker/pcmk_sched_promotable.c if (cons->role_filter == RSC_ROLE_PROMOTED) { cons 153 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(child, "Applying %s to %s", cons->id, child->id); cons 154 lib/pacemaker/pcmk_sched_promotable.c cons_node = pe_find_node_id(cons->node_list_rh, chosen->details->id); cons 741 lib/pacemaker/pcmk_sched_promotable.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter2->data; cons 743 lib/pacemaker/pcmk_sched_promotable.c child_rsc->cmds->rsc_colocation_lh(child_rsc, cons->primary, cons, cons 248 lib/pengine/status.c pe__location_t *cons = iterator->data; cons 252 lib/pengine/status.c g_list_free_full(cons->node_list_rh, free); cons 253 lib/pengine/status.c free(cons->id); cons 254 lib/pengine/status.c free(cons); cons 410 tools/crm_resource_runtime.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 412 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); cons 413 tools/crm_resource_runtime.c if ((cons->score > 0) cons 414 tools/crm_resource_runtime.c && !pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 417 tools/crm_resource_runtime.c attr_name, attr_value, cons->dependent->id); cons 418 tools/crm_resource_runtime.c cli_resource_update_attribute(cons->dependent, cons 419 tools/crm_resource_runtime.c cons->dependent->id, NULL,