cons 23 lib/pacemaker/pcmk_output.c colocations_header(pe_resource_t *rsc, pcmk__colocation_t *cons, cons 27 lib/pacemaker/pcmk_output.c if (cons->primary_role > RSC_ROLE_STARTED) { cons 29 lib/pacemaker/pcmk_output.c rsc->id, pcmk_readable_score(cons->score), cons 31 lib/pacemaker/pcmk_output.c role2text(cons->primary_role), cons->id); cons 34 lib/pacemaker/pcmk_output.c rsc->id, pcmk_readable_score(cons->score), cons 35 lib/pacemaker/pcmk_output.c cons->id); cons 42 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons) { cons 46 lib/pacemaker/pcmk_output.c "id", cons->id, cons 47 lib/pacemaker/pcmk_output.c "rsc", cons->dependent->id, cons 48 lib/pacemaker/pcmk_output.c "with-rsc", cons->primary->id, cons 49 lib/pacemaker/pcmk_output.c "score", pcmk_readable_score(cons->score), cons 52 lib/pacemaker/pcmk_output.c if (cons->node_attribute) { cons 53 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "node-attribute", (pcmkXmlStr) cons->node_attribute); cons 56 lib/pacemaker/pcmk_output.c if (cons->dependent_role != RSC_ROLE_UNKNOWN) { cons 58 lib/pacemaker/pcmk_output.c (pcmkXmlStr) role2text(cons->dependent_role)); cons 61 lib/pacemaker/pcmk_output.c if (cons->primary_role != RSC_ROLE_UNKNOWN) { cons 63 lib/pacemaker/pcmk_output.c (pcmkXmlStr) role2text(cons->primary_role)); cons 75 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 79 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 89 lib/pacemaker/pcmk_output.c "id", cons->id, cons 372 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 377 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->primary->flags, pe_rsc_allocating)) { cons 379 lib/pacemaker/pcmk_output.c cons->primary->id, cons->id); cons 383 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->primary, cons, false); cons 390 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->primary); cons 393 lib/pacemaker/pcmk_output.c cons->primary, recursive); cons 417 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 419 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->primary->flags, pe_rsc_allocating)) { cons 420 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->primary, cons); cons 424 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->primary, cons); cons 425 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->primary, false); cons 429 lib/pacemaker/pcmk_output.c cons->primary, recursive); cons 450 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 455 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 457 lib/pacemaker/pcmk_output.c cons->dependent->id, cons->id); cons 461 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->dependent, cons, true); cons 468 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->dependent); cons 471 lib/pacemaker/pcmk_output.c cons->dependent, recursive); cons 495 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 497 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 498 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); cons 502 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); cons 503 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->dependent, false); cons 507 lib/pacemaker/pcmk_output.c cons->dependent, recursive); cons 524 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 528 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 534 lib/pacemaker/pcmk_output.c pcmk_readable_score(node->weight), cons->id, cons 153 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter->data; cons 155 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0 || cons->score == INFINITY) { cons 156 lib/pacemaker/pcmk_sched_clone.c pcmk__add_this_with(child, cons); cons 162 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter->data; cons 164 lib/pacemaker/pcmk_sched_clone.c if (!pcmk__colocation_has_influence(cons, child)) { cons 167 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0) { cons 168 lib/pacemaker/pcmk_sched_clone.c pcmk__add_with_this(child, cons); cons 943 lib/pacemaker/pcmk_sched_promotable.c pcmk__colocation_t *cons = (pcmk__colocation_t *) iter->data; cons 945 lib/pacemaker/pcmk_sched_promotable.c instance->cmds->apply_coloc_score(instance, cons->primary, cons, true); 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 381 tools/crm_resource_runtime.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 383 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); cons 384 tools/crm_resource_runtime.c if ((cons->score > 0) cons 385 tools/crm_resource_runtime.c && !pcmk_is_set(cons->dependent->flags, pe_rsc_allocating)) { cons 388 tools/crm_resource_runtime.c attr_name, attr_value, cons->dependent->id); cons 389 tools/crm_resource_runtime.c cli_resource_update_attribute(cons->dependent, cons 390 tools/crm_resource_runtime.c cons->dependent->id, NULL,