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->role_rh > RSC_ROLE_STARTED) { cons 30 lib/pacemaker/pcmk_output.c role2text(cons->role_rh), 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->rsc_lh->id, cons 50 lib/pacemaker/pcmk_output.c "with-rsc", cons->rsc_rh->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->role_lh != RSC_ROLE_UNKNOWN) { cons 59 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "rsc-role", (pcmkXmlStr) role2text(cons->role_lh)); cons 62 lib/pacemaker/pcmk_output.c if (cons->role_rh != RSC_ROLE_UNKNOWN) { cons 63 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "with-rsc-role", (pcmkXmlStr) role2text(cons->role_rh)); cons 77 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 81 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 92 lib/pacemaker/pcmk_output.c "id", cons->id, cons 364 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 369 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->rsc_rh->flags, pe_rsc_allocating)) { cons 370 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (id=%s - loop)", cons->rsc_rh->id, cons->id); cons 374 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->rsc_rh, cons, FALSE); cons 381 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->rsc_rh); cons 383 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", cons->rsc_rh, recursive); cons 407 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 409 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->rsc_rh->flags, pe_rsc_allocating)) { cons 410 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_rh, cons); cons 414 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_rh, cons); cons 415 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->rsc_rh, false); cons 418 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", cons->rsc_rh, recursive); cons 439 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 444 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->rsc_lh->flags, pe_rsc_allocating)) { cons 445 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (id=%s - loop)", cons->rsc_lh->id, cons->id); cons 449 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->rsc_lh, cons, TRUE); cons 456 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->rsc_lh); cons 458 lib/pacemaker/pcmk_output.c out->message(out, "rscs-colocated-with-list", cons->rsc_lh, recursive); cons 482 lib/pacemaker/pcmk_output.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 484 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->rsc_lh->flags, pe_rsc_allocating)) { cons 485 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_lh, cons); cons 489 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_lh, cons); cons 490 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->rsc_lh, false); cons 493 lib/pacemaker/pcmk_output.c out->message(out, "rscs-colocated-with-list", cons->rsc_lh, recursive); cons 510 lib/pacemaker/pcmk_output.c pe__location_t *cons = lpc->data; cons 514 lib/pacemaker/pcmk_output.c for (lpc2 = cons->node_list_rh; lpc2 != NULL; lpc2 = lpc2->next) { cons 520 lib/pacemaker/pcmk_output.c node->details->uname, score, cons->id, rsc->id); cons 600 lib/pacemaker/pcmk_sched_allocate.c pe__location_t *cons = gIter->data; cons 602 lib/pacemaker/pcmk_sched_allocate.c cons->rsc_lh->cmds->rsc_location(cons->rsc_lh, cons); cons 547 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter->data; cons 549 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0 || cons->score == INFINITY) { cons 550 lib/pacemaker/pcmk_sched_clone.c child->rsc_cons = g_list_prepend(child->rsc_cons, cons); cons 556 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter->data; cons 558 lib/pacemaker/pcmk_sched_clone.c if (!pcmk__colocation_has_influence(cons, child)) { cons 561 lib/pacemaker/pcmk_sched_clone.c if (all || cons->score < 0) { cons 562 lib/pacemaker/pcmk_sched_clone.c child->rsc_cons_lhs = g_list_prepend(child->rsc_cons_lhs, cons); cons 139 lib/pacemaker/pcmk_sched_promotable.c pe__location_t *cons = gIter->data; cons 141 lib/pacemaker/pcmk_sched_promotable.c if (cons->role_filter == RSC_ROLE_PROMOTED) { cons 142 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(child, "Applying %s to %s", cons->id, child->id); cons 143 lib/pacemaker/pcmk_sched_promotable.c cons_node = pe_find_node_id(cons->node_list_rh, chosen->details->id); cons 737 lib/pacemaker/pcmk_sched_promotable.c pcmk__colocation_t *cons = (pcmk__colocation_t *) gIter2->data; cons 739 lib/pacemaker/pcmk_sched_promotable.c child_rsc->cmds->rsc_colocation_lh(child_rsc, cons->rsc_rh, 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 412 tools/crm_resource_runtime.c pcmk__colocation_t *cons = (pcmk__colocation_t *) lpc->data; cons 413 tools/crm_resource_runtime.c pe_resource_t *peer = cons->rsc_lh; 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 && !pcmk_is_set(peer->flags, pe_rsc_allocating)) {