cons 23 lib/pacemaker/pcmk_output.c colocations_header(pe_resource_t *rsc, pcmk__colocation_t *cons, cons 28 lib/pacemaker/pcmk_output.c score = score2char(cons->score); cons 29 lib/pacemaker/pcmk_output.c if (cons->primary_role > RSC_ROLE_STARTED) { cons 32 lib/pacemaker/pcmk_output.c role2text(cons->primary_role), cons->id); cons 35 lib/pacemaker/pcmk_output.c rsc->id, score, cons->id); cons 44 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons) { cons 48 lib/pacemaker/pcmk_output.c score = score2char(cons->score); cons 50 lib/pacemaker/pcmk_output.c "id", cons->id, cons 51 lib/pacemaker/pcmk_output.c "rsc", cons->dependent->id, cons 52 lib/pacemaker/pcmk_output.c "with-rsc", cons->primary->id, cons 56 lib/pacemaker/pcmk_output.c if (cons->node_attribute) { cons 57 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "node-attribute", (pcmkXmlStr) cons->node_attribute); cons 60 lib/pacemaker/pcmk_output.c if (cons->dependent_role != RSC_ROLE_UNKNOWN) { cons 62 lib/pacemaker/pcmk_output.c (pcmkXmlStr) role2text(cons->dependent_role)); cons 65 lib/pacemaker/pcmk_output.c if (cons->primary_role != RSC_ROLE_UNKNOWN) { cons 67 lib/pacemaker/pcmk_output.c (pcmkXmlStr) role2text(cons->primary_role)); cons 81 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 85 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 96 lib/pacemaker/pcmk_output.c "id", cons->id, cons 368 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 373 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->primary->flags, pe_rsc_allocating)) { cons 375 lib/pacemaker/pcmk_output.c cons->primary->id, cons->id); cons 379 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->primary, cons, FALSE); cons 386 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->primary); cons 389 lib/pacemaker/pcmk_output.c cons->primary, recursive); cons 413 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 415 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->primary->flags, pe_rsc_allocating)) { cons 416 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->primary, cons); cons 420 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->primary, cons); cons 421 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->primary, false); cons 425 lib/pacemaker/pcmk_output.c cons->primary, recursive); cons 446 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 451 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 453 lib/pacemaker/pcmk_output.c cons->dependent->id, cons->id); cons 457 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->dependent, cons, TRUE); cons 464 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->dependent); cons 467 lib/pacemaker/pcmk_output.c cons->dependent, recursive); cons 491 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 493 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 494 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); cons 498 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); cons 499 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->dependent, false); cons 503 lib/pacemaker/pcmk_output.c cons->dependent, recursive); cons 520 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 524 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 530 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 257 lib/pengine/status.c pe__location_t *cons = iterator->data; cons 261 lib/pengine/status.c g_list_free_full(cons->node_list_rh, free); cons 262 lib/pengine/status.c free(cons->id); cons 263 lib/pengine/status.c free(cons); cons 413 tools/crm_resource_runtime.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 415 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); cons 416 tools/crm_resource_runtime.c if ((cons->score > 0) cons 417 tools/crm_resource_runtime.c && !pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 420 tools/crm_resource_runtime.c attr_name, attr_value, cons->dependent->id); cons 421 tools/crm_resource_runtime.c cli_resource_update_attribute(cons->dependent, cons 422 tools/crm_resource_runtime.c cons->dependent->id, NULL,