score 664 fencing/main.c char *score = score2char((node->weight < 0) ? node->weight : parent->weight); score 666 fencing/main.c crm_info("Device %s has been disabled on %s: score=%s", rsc->id, stonith_our_uname, score); score 667 fencing/main.c free(score); score 117 include/crm/common/util.h int char2score(const char *score); score 118 include/crm/common/util.h char *score2char(int score); score 119 include/crm/common/util.h char *score2char_stack(int score, char *buf, size_t len); score 70 include/crm/pengine/internal.h void common_update_score(resource_t * rsc, const char *id, int score); score 240 include/crm/pengine/internal.h extern void resource_location(resource_t * rsc, node_t * node, int score, const char *tag, score 319 include/crm/pengine/internal.h const char *score, pe_working_set_t * data_set); score 230 lib/common/utils.c char2score(const char *score) score 234 lib/common/utils.c if (score == NULL) { score 236 lib/common/utils.c } else if (safe_str_eq(score, MINUS_INFINITY_S)) { score 239 lib/common/utils.c } else if (safe_str_eq(score, INFINITY_S)) { score 242 lib/common/utils.c } else if (safe_str_eq(score, "+" INFINITY_S)) { score 245 lib/common/utils.c } else if (safe_str_eq(score, "red")) { score 248 lib/common/utils.c } else if (safe_str_eq(score, "yellow")) { score 251 lib/common/utils.c } else if (safe_str_eq(score, "green")) { score 255 lib/common/utils.c score_f = crm_parse_int(score, NULL); score 268 lib/common/utils.c score2char_stack(int score, char *buf, size_t len) score 270 lib/common/utils.c if (score >= node_score_infinity) { score 272 lib/common/utils.c } else if (score <= -node_score_infinity) { score 275 lib/common/utils.c return crm_itoa_stack(score, buf, len); score 282 lib/common/utils.c score2char(int score) score 284 lib/common/utils.c if (score >= node_score_infinity) { score 287 lib/common/utils.c } else if (score <= -node_score_infinity) { score 290 lib/common/utils.c return crm_itoa(score); score 858 lib/pengine/complex.c common_update_score(resource_t * rsc, const char *id, int score) score 864 lib/pengine/complex.c pe_rsc_trace(rsc, "Updating score for %s on %s: %d + %d", rsc->id, id, node->weight, score); score 865 lib/pengine/complex.c node->weight = merge_weights(node->weight, score); score 874 lib/pengine/complex.c common_update_score(child_rsc, id, score); score 304 lib/pengine/failcounts.c char *score = score2char(failcount); score 307 lib/pengine/failcounts.c rsc->id, score, node->details->uname); score 308 lib/pengine/failcounts.c free(score); score 312 lib/pengine/failcounts.c char *score = score2char(failcount); score 315 lib/pengine/failcounts.c rsc->id, score, node->details->uname); score 316 lib/pengine/failcounts.c free(score); score 676 lib/pengine/rules.c int score; score 703 lib/pengine/rules.c if (pair_a->score < pair_b->score) { score 705 lib/pengine/rules.c } else if (pair_a->score > pair_b->score) { score 872 lib/pengine/rules.c const char *score = NULL; score 896 lib/pengine/rules.c score = crm_element_value(attr_set, XML_RULE_ATTR_SCORE); score 897 lib/pengine/rules.c pair->score = char2score(score); score 357 lib/pengine/unpack.c const char *score, pe_working_set_t * data_set) score 371 lib/pengine/unpack.c new_node->weight = char2score(score); score 532 lib/pengine/unpack.c const char *score = NULL; score 541 lib/pengine/unpack.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 548 lib/pengine/unpack.c new_node = pe_create_node(id, uname, type, score, data_set); score 2370 lib/pengine/unpack.c int *score = user_data; score 2372 lib/pengine/unpack.c node->weight = *score; score 2708 lib/pengine/unpack.c int score = -INFINITY; score 2727 lib/pengine/unpack.c g_hash_table_foreach(fail_rsc->allowed_nodes, set_node_score, &score); score 251 lib/pengine/utils.c char score[128]; score 252 lib/pengine/utils.c int len = sizeof(score); score 263 lib/pengine/utils.c score2char_stack(node->weight, score, len); score 267 lib/pengine/utils.c comment, rsc->id, node->details->uname, score); score 269 lib/pengine/utils.c printf("%s: %s = %s\n", comment, node->details->uname, score); score 276 lib/pengine/utils.c char score[128]; score 277 lib/pengine/utils.c int len = sizeof(score); score 281 lib/pengine/utils.c score2char_stack(node->weight, score, len); score 286 lib/pengine/utils.c node->details->uname, score); score 289 lib/pengine/utils.c node->details->uname, score); score 1484 lib/pengine/utils.c resource_node_score(resource_t * rsc, node_t * node, int score, const char *tag) score 1502 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); score 1506 lib/pengine/utils.c pe_rsc_trace(rsc, "Setting %s for %s on %s: %d", tag, rsc->id, node->details->uname, score); score 1512 lib/pengine/utils.c match->weight = merge_weights(match->weight, score); score 1516 lib/pengine/utils.c resource_location(resource_t * rsc, node_t * node, int score, const char *tag, score 1520 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); score 1528 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1537 lib/pengine/utils.c resource_node_score(rsc, node_iter, score, tag); score 1541 lib/pengine/utils.c if (node == NULL && score == -INFINITY) { score 779 pengine/allocate.c int score; score 782 pengine/allocate.c score = char2score(value); score 785 pengine/allocate.c *system_health = merge_weights(score, *system_health); score 244 pengine/clone.c (float)constraint->score / INFINITY, 0); score 254 pengine/clone.c (float)constraint->score / INFINITY, pe_weights_positive); score 266 pengine/clone.c (float)constraint->score / INFINITY, 0); score 276 pengine/clone.c (float)constraint->score / INFINITY, pe_weights_positive); score 488 pengine/clone.c if (all || cons->score < 0 || cons->score == INFINITY) { score 497 pengine/clone.c if (all || cons->score < 0) { score 632 pengine/clone.c (float)constraint->score / INFINITY, score 1036 pengine/clone.c constraint->id, rsc_lh->id, rsc_rh->id, constraint->score); score 1065 pengine/clone.c } else if (constraint->score >= INFINITY) { score 1075 pengine/clone.c } else if (constraint->score >= INFINITY) { score 145 pengine/constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 149 pengine/constraints.c if (score) { score 150 pengine/constraints.c int score_i = char2score(score); score 649 pengine/constraints.c const char * score, pe_working_set_t * data_set, pe_match_data_t * match_data); score 730 pengine/constraints.c const char * score, pe_working_set_t * data_set, pe_match_data_t * match_data) score 745 pengine/constraints.c if (score == NULL) { score 746 pengine/constraints.c score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 749 pengine/constraints.c if (node != NULL && score != NULL) { score 750 pengine/constraints.c int score_i = char2score(score); score 959 pengine/constraints.c get_node_score(const char *rule, const char *score, gboolean raw, node_t * node, resource_t *rsc) score 963 pengine/constraints.c if (score == NULL) { score 967 pengine/constraints.c score_f = char2score(score); score 970 pengine/constraints.c const char *attr_score = pe_node_attribute_calculated(node, score, rsc); score 974 pengine/constraints.c rule, node->details->uname, score); score 979 pengine/constraints.c rule, node->details->uname, attr_score, score); score 991 pengine/constraints.c const char *score = NULL; score 1017 pengine/constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE); score 1018 pengine/constraints.c if (score == NULL) { score 1019 pengine/constraints.c score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE_ATTRIBUTE); score 1020 pengine/constraints.c if (score != NULL) { score 1036 pengine/constraints.c char *result = pe_expand_re_matches(score, match_data->re); score 1039 pengine/constraints.c score = (const char *) result; score 1062 pengine/constraints.c node->weight = get_node_score(rule_id, score, raw_score, node, rsc); score 1075 pengine/constraints.c score_f = get_node_score(rule_id, score, raw_score, node, rsc); score 1109 pengine/constraints.c free((char *)score); score 1233 pengine/constraints.c rsc_colocation_new(const char *id, const char *node_attr, int score, score 1264 pengine/constraints.c new_con->score = score; score 1273 pengine/constraints.c pe_rsc_trace(rsc_lh, "%s ==> %s (%s %d)", rsc_lh->id, rsc_rh->id, node_attr, score); score 1282 pengine/constraints.c if (score <= -INFINITY) { score 2156 pengine/constraints.c unpack_colocation_set(xmlNode * set, int score, pe_working_set_t * data_set) score 2165 pengine/constraints.c int local_score = score; score 2245 pengine/constraints.c colocate_rsc_sets(const char *id, xmlNode * set1, xmlNode * set2, int score, score 2281 pengine/constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2287 pengine/constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2295 pengine/constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2310 pengine/constraints.c rsc_colocation_new(id, NULL, score, rsc_1, rsc_2, role_1, role_2, data_set); score 2326 pengine/constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2385 pengine/constraints.c if (score) { score 2386 pengine/constraints.c score_i = char2score(score); score 2522 pengine/constraints.c const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE); score 2526 pengine/constraints.c if (score) { score 2527 pengine/constraints.c score_i = char2score(score); score 465 pengine/container.c } else if (constraint->score >= INFINITY) { score 478 pengine/container.c constraint->id, rsc_lh->id, rsc->id, constraint->score); score 483 pengine/container.c if (constraint->score < INFINITY) { score 496 pengine/container.c if (constraint->score >= INFINITY) { score 513 pengine/graph.c if (colocate_with->score == INFINITY) { score 319 pengine/group.c } else if (constraint->score >= INFINITY) { score 348 pengine/group.c if (constraint->score >= INFINITY) { score 360 pengine/group.c } else if (constraint->score >= INFINITY) { score 507 pengine/group.c (float)constraint->score / INFINITY, flags); score 279 pengine/master.c char score[33]; score 280 pengine/master.c size_t len = sizeof(score); score 311 pengine/master.c score2char_stack(child->sort_index, score, len); score 312 pengine/master.c pe_rsc_trace(rsc, "Adding %s to %s from %s", score, score 327 pengine/master.c enum pe_weights flags = constraint->score == INFINITY ? 0 : pe_weights_rollback; score 330 pengine/master.c constraint->score); score 335 pengine/master.c (float)constraint->score / INFINITY, flags); score 348 pengine/master.c constraint->score); score 353 pengine/master.c (float)constraint->score / INFINITY, score 469 pengine/master.c int score = not_set_value; score 481 pengine/master.c if (score == not_set_value) { score 482 pengine/master.c score = c_score; score 484 pengine/master.c score += c_score; score 487 pengine/master.c return score; score 506 pengine/master.c return score; score 512 pengine/master.c return score; score 517 pengine/master.c return score; score 546 pengine/master.c score = char2score(attr_value); score 549 pengine/master.c return score; score 555 pengine/master.c int score, new_score; score 583 pengine/master.c score = master_score(child_rsc, node, 0); score 584 pengine/master.c if (score > 0) { score 585 pengine/master.c new_score = merge_weights(node->weight, score); score 593 pengine/master.c new_score = QB_MAX(child_rsc->priority, score); score 662 pengine/master.c char score[33]; score 663 pengine/master.c size_t len = sizeof(score); score 765 pengine/master.c score2char_stack(child_rsc->sort_index, score, len); score 772 pengine/master.c (chosen? chosen->details->uname : "none"), score); score 777 pengine/master.c child_rsc->id, chosen ? chosen->details->uname : "none", score); score 964 pengine/master.c node_hash_update_one(GHashTable * hash, node_t * other, const char *attr, int score) score 984 pengine/master.c node->weight = merge_weights(node->weight, score); score 1006 pengine/master.c pe_rsc_trace(rsc_rh, "Processing constraint %s: %d", constraint->id, constraint->score); score 1028 pengine/master.c role2text(next_role), chosen->details->uname, constraint->score); score 1029 pengine/master.c if (constraint->score < INFINITY) { score 1031 pengine/master.c constraint->node_attribute, constraint->score); score 1041 pengine/master.c if (constraint->score >= INFINITY) { score 1050 pengine/master.c if (rh_child == NULL && constraint->score >= INFINITY) { score 1055 pengine/master.c int new_priority = merge_weights(rsc_lh->priority, constraint->score); score 185 pengine/native.c static char score[33]; score 188 pengine/native.c score2char_stack(chosen->weight, score, sizeof(score)); score 191 pengine/native.c chosen->details->uname, rsc->id, multiple, score); score 240 pengine/native.c int score = 0; score 257 pengine/native.c score = node_list_attr_score(list2, attr, pe_node_attribute_raw(node, attr)); score 259 pengine/native.c weight_f = factor * score; score 266 pengine/native.c if (factor < 0 && score < 0) { score 274 pengine/native.c node->details->uname, node->weight, factor, score); score 278 pengine/native.c node->details->uname, node->weight, factor, score); score 283 pengine/native.c node->details->uname, node->weight, factor, score); score 287 pengine/native.c node->details->uname, node->weight, factor, score); score 290 pengine/native.c crm_trace("%s: %d + %f*%d", node->details->uname, node->weight, factor, score); score 406 pengine/native.c multiplier * (float)constraint->score / INFINITY, flags|pe_weights_rollback); score 466 pengine/native.c constraint->score, role2text(constraint->role_lh)); score 468 pengine/native.c || (constraint->score < 0 && constraint->score > -INFINITY)) { score 492 pengine/native.c (float)constraint->score / INFINITY, score 1506 pengine/native.c int score; score 1520 pengine/native.c score = 10000; /* Highly preferred but not essential */ score 1522 pengine/native.c score = INFINITY; /* Force them to run on the same host */ score 1524 pengine/native.c rsc_colocation_new("resource-with-container", NULL, score, rsc, score 1567 pengine/native.c if (constraint->score == 0) { score 1590 pengine/native.c if ((constraint->score > -INFINITY) && (constraint->score < INFINITY)) { score 1597 pengine/native.c if (constraint->score == INFINITY && details_lh != details_rh) { score 1603 pengine/native.c } else if (constraint->score == -INFINITY && details_lh == details_rh) { score 1612 pengine/native.c if (constraint->score > 0 score 1619 pengine/native.c if (constraint->score > 0 score 1625 pengine/native.c if (constraint->score < 0 score 1632 pengine/native.c if (constraint->score < 0 score 1662 pengine/native.c if(constraint->score == INFINITY && constraint->role_lh == RSC_ROLE_MASTER) { score 1676 pengine/native.c rsc_lh->priority = merge_weights(score_multiplier * constraint->score, rsc_lh->priority); score 1700 pengine/native.c } else if (constraint->score < 0) { score 1713 pengine/native.c if (constraint->score < INFINITY) { score 1715 pengine/native.c node->details->uname, constraint->score); score 1716 pengine/native.c node->weight = merge_weights(constraint->score, node->weight); score 1719 pengine/native.c } else if (do_check == FALSE || constraint->score >= INFINITY) { score 1721 pengine/native.c node->details->uname, constraint->score, score 1723 pengine/native.c node->weight = merge_weights(-constraint->score, node->weight); score 1728 pengine/native.c || constraint->score <= -INFINITY || constraint->score >= INFINITY) { score 1734 pengine/native.c static char score[33]; score 1736 pengine/native.c score2char_stack(constraint->score, score, sizeof(score)); score 1739 pengine/native.c rsc_lh->id, rsc_rh->id, do_check, score); score 1756 pengine/native.c constraint->score >= 0 ? "" : "Anti-", score 1757 pengine/native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score, filter_results); score 1765 pengine/native.c constraint->score >= 0 ? "" : "Anti-", score 1766 pengine/native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score); score 59 pengine/pengine.h int score; score 296 pengine/utilization.c if (constraint->score == INFINITY score 323 pengine/utilization.c if (constraint->score == INFINITY score 33 pengine/utils.h extern gboolean rsc_colocation_new(const char *id, const char *node_attr, int score, score 224 tools/crm_resource_print.c char *score = score2char(node->weight); score 227 tools/crm_resource_print.c prefix ? prefix : " ", 71 - offset, node->details->uname, score, cons->id); score 228 tools/crm_resource_print.c free(score); score 258 tools/crm_resource_print.c char *score = NULL; score 277 tools/crm_resource_print.c score = score2char(cons->score); score 280 tools/crm_resource_print.c peer->id, score, dependents ? "needs" : "with", role2text(cons->role_rh), score 284 tools/crm_resource_print.c peer->id, score, cons->id); score 287 tools/crm_resource_print.c free(score); score 372 tools/crm_resource_runtime.c crm_debug("Checking %s %d", cons->id, cons->score); score 373 tools/crm_resource_runtime.c if (cons->score > 0 && is_not_set(peer->flags, pe_rsc_allocating)) {