rsc_rh 140 pengine/allocate.h extern gboolean native_constraint_violated(resource_t * rsc_lh, resource_t * rsc_rh, rsc_rh 242 pengine/clone.c hash1 = native_merge_weights(constraint->rsc_rh, resource1->id, hash1, rsc_rh 264 pengine/clone.c hash2 = native_merge_weights(constraint->rsc_rh, resource2->id, hash2, rsc_rh 622 pengine/clone.c pe_rsc_trace(rsc, "%s: Coloring %s first", rsc->id, constraint->rsc_rh->id); rsc_rh 623 pengine/clone.c constraint->rsc_rh->cmds->allocate(constraint->rsc_rh, prefer, data_set); rsc_rh 1014 pengine/clone.c clone_rsc_colocation_lh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 1024 pengine/clone.c clone_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 1032 pengine/clone.c CRM_CHECK(rsc_rh != NULL, pe_err("rsc_rh was NULL for %s", constraint->id); return); rsc_rh 1035 pengine/clone.c pe_rsc_trace(rsc_rh, "Processing constraint %s: %s -> %s %d", rsc_rh 1036 pengine/clone.c constraint->id, rsc_lh->id, rsc_rh->id, constraint->score); rsc_rh 1042 pengine/clone.c if (copies_per_node(constraint->rsc_lh) != copies_per_node(constraint->rsc_rh)) { rsc_rh 1045 pengine/clone.c constraint->rsc_lh->id, constraint->rsc_rh->id); rsc_rh 1052 pengine/clone.c if (is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 1053 pengine/clone.c pe_rsc_trace(rsc_rh, "%s is still provisional", rsc_rh->id); rsc_rh 1059 pengine/clone.c rh_child = find_compatible_child(rsc_lh, rsc_rh, RSC_ROLE_UNKNOWN, FALSE); rsc_rh 1062 pengine/clone.c pe_rsc_debug(rsc_rh, "Pairing %s with %s", rsc_lh->id, rh_child->id); rsc_rh 1066 pengine/clone.c crm_notice("Cannot pair %s with instance of %s", rsc_lh->id, rsc_rh->id); rsc_rh 1070 pengine/clone.c pe_rsc_debug(rsc_rh, "Cannot pair %s with instance of %s", rsc_lh->id, rsc_rh->id); rsc_rh 1078 pengine/clone.c gIter = rsc_rh->children; rsc_rh 1084 pengine/clone.c pe_rsc_trace(rsc_rh, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); rsc_rh 1094 pengine/clone.c gIter = rsc_rh->children; rsc_rh 1136 pengine/constraints.c CRM_ASSERT(rsc_constraint1->rsc_rh != NULL); rsc_rh 1170 pengine/constraints.c CRM_ASSERT(rsc_constraint1->rsc_rh != NULL); rsc_rh 1172 pengine/constraints.c if (rsc_constraint1->rsc_rh->priority > rsc_constraint2->rsc_rh->priority) { rsc_rh 1176 pengine/constraints.c if (rsc_constraint1->rsc_rh->priority < rsc_constraint2->rsc_rh->priority) { rsc_rh 1181 pengine/constraints.c if (rsc_constraint1->rsc_rh->variant > rsc_constraint2->rsc_rh->variant) { rsc_rh 1183 pengine/constraints.c } else if (rsc_constraint1->rsc_rh->variant < rsc_constraint2->rsc_rh->variant) { rsc_rh 1187 pengine/constraints.c return strcmp(rsc_constraint1->rsc_rh->id, rsc_constraint2->rsc_rh->id); rsc_rh 1234 pengine/constraints.c resource_t * rsc_lh, resource_t * rsc_rh, rsc_rh 1243 pengine/constraints.c } else if (rsc_rh == NULL) { rsc_rh 1263 pengine/constraints.c new_con->rsc_rh = rsc_rh; rsc_rh 1273 pengine/constraints.c pe_rsc_trace(rsc_lh, "%s ==> %s (%s %d)", rsc_lh->id, rsc_rh->id, node_attr, score); rsc_rh 1277 pengine/constraints.c rsc_rh->rsc_cons_lhs = rsc_rh 1278 pengine/constraints.c g_list_insert_sorted(rsc_rh->rsc_cons_lhs, new_con, sort_cons_priority_lh); rsc_rh 1283 pengine/constraints.c anti_colocation_order(rsc_lh, new_con->role_lh, rsc_rh, new_con->role_rh, data_set); rsc_rh 1284 pengine/constraints.c anti_colocation_order(rsc_rh, new_con->role_rh, rsc_lh, new_con->role_lh, data_set); rsc_rh 2339 pengine/constraints.c resource_t *rsc_rh = pe_find_constraint_resource(data_set->resources, id_rh); rsc_rh 2345 pengine/constraints.c } else if (rsc_rh == NULL) { rsc_rh 2355 pengine/constraints.c } else if (instance_rh && pe_rsc_is_clone(rsc_rh) == FALSE) { rsc_rh 2372 pengine/constraints.c rsc_rh = find_clone_instance(rsc_rh, instance_rh, data_set); rsc_rh 2373 pengine/constraints.c if (rsc_rh == NULL) { rsc_rh 2389 pengine/constraints.c rsc_colocation_new(id, attr, score_i, rsc_lh, rsc_rh, state_lh, state_rh, data_set); rsc_rh 2403 pengine/constraints.c resource_t *rsc_rh = NULL; rsc_rh 2446 pengine/constraints.c if (valid_resource_or_tag(data_set, id_rh, &rsc_rh, &tag_rh) == FALSE) { rsc_rh 2451 pengine/constraints.c if (rsc_lh && rsc_rh) { rsc_rh 401 pengine/container.c container_rsc_colocation_lh(resource_t * rsc, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 295 pengine/group.c group_rsc_colocation_lh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 304 pengine/group.c } else if (rsc_rh == NULL) { rsc_rh 315 pengine/group.c group_data->first_child->cmds->rsc_colocation_lh(group_data->first_child, rsc_rh, rsc_rh 321 pengine/group.c " between non-colocated group and %s", rsc_lh->id, rsc_rh->id); rsc_rh 328 pengine/group.c child_rsc->cmds->rsc_colocation_lh(child_rsc, rsc_rh, constraint); rsc_rh 333 pengine/group.c group_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 335 pengine/group.c GListPtr gIter = rsc_rh->children; rsc_rh 338 pengine/group.c get_group_variant_data(group_data, rsc_rh); rsc_rh 341 pengine/group.c pe_rsc_trace(rsc_rh, "Processing RH of constraint %s", constraint->id); rsc_rh 344 pengine/group.c if (is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 362 pengine/group.c " non-colocated group: %s", rsc_lh->id, rsc_rh->id); rsc_rh 329 pengine/master.c pe_rsc_trace(rsc, "RHS: %s with %s: %d", constraint->rsc_lh->id, constraint->rsc_rh->id, rsc_rh 332 pengine/master.c constraint->rsc_rh->cmds->merge_weights(constraint->rsc_rh, rsc->id, rsc_rh 347 pengine/master.c pe_rsc_trace(rsc, "LHS: %s with %s: %d", constraint->rsc_lh->id, constraint->rsc_rh->id, rsc_rh 747 pengine/master.c child_rsc->cmds->rsc_colocation_lh(child_rsc, cons->rsc_rh, cons); rsc_rh 990 pengine/master.c master_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 994 pengine/master.c CRM_CHECK(rsc_rh != NULL, return); rsc_rh 995 pengine/master.c if (is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 999 pengine/master.c pe_rsc_trace(rsc_rh, "Handling %s as a clone colocation", constraint->id); rsc_rh 1000 pengine/master.c clone_rsc_colocation_rh(rsc_lh, rsc_rh, constraint); rsc_rh 1006 pengine/master.c pe_rsc_trace(rsc_rh, "Processing constraint %s: %d", constraint->id, constraint->score); rsc_rh 1010 pengine/master.c gIter = rsc_rh->children; rsc_rh 1020 pengine/master.c for (gIter = rsc_rh->children; gIter != NULL; gIter = gIter->next) { rsc_rh 1025 pengine/master.c pe_rsc_trace(rsc_rh, "Processing: %s", child_rsc->id); rsc_rh 1027 pengine/master.c pe_rsc_trace(rsc_rh, "Applying: %s %s %s %d", child_rsc->id, rsc_rh 1048 pengine/master.c resource_t *rh_child = find_compatible_child(rsc_lh, rsc_rh, constraint->role_rh, FALSE); rsc_rh 37 pengine/native.c resource_t * rsc_rh, gboolean update_rh); rsc_rh 40 pengine/native.c resource_t * rsc_rh, gboolean update_rh); rsc_rh 399 pengine/native.c other = constraint->rsc_rh; rsc_rh 462 pengine/native.c resource_t *rsc_rh = constraint->rsc_rh; rsc_rh 465 pengine/native.c rsc->id, constraint->id, rsc_rh->id, rsc_rh 471 pengine/native.c rsc_rh->cmds->allocate(rsc_rh, NULL, data_set); rsc_rh 472 pengine/native.c rsc->cmds->rsc_colocation_lh(rsc, rsc_rh, constraint); rsc_rh 474 pengine/native.c pe_rsc_info(rsc, "%s: Rolling back scores from %s", rsc->id, rsc_rh->id); rsc_rh 1546 pengine/native.c native_rsc_colocation_lh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 1552 pengine/native.c } else if (constraint->rsc_rh == NULL) { rsc_rh 1558 pengine/native.c rsc_rh->id); rsc_rh 1560 pengine/native.c rsc_rh->cmds->rsc_colocation_rh(rsc_lh, rsc_rh, constraint); rsc_rh 1564 pengine/native.c filter_colocation_constraint(resource_t * rsc_lh, resource_t * rsc_rh, rsc_rh 1572 pengine/native.c if (preview == FALSE && is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 1594 pengine/native.c details_rh = rsc_rh->allocated_to ? rsc_rh->allocated_to->details : NULL; rsc_rh 1600 pengine/native.c rsc_lh->id, rsc_rh->id, rsc_rh 1606 pengine/native.c rsc_lh->id, rsc_rh->id, details_rh ? details_rh->uname : "n/a"); rsc_rh 1620 pengine/native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh != rsc_rh->next_role) { rsc_rh 1633 pengine/native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh == rsc_rh->next_role) { rsc_rh 1643 pengine/native.c influence_priority(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 1654 pengine/native.c if (!rsc_rh->allocated_to || !rsc_lh->allocated_to) { rsc_rh 1659 pengine/native.c rh_value = pe_node_attribute_raw(rsc_rh->allocated_to, attribute); rsc_rh 1668 pengine/native.c if (constraint->role_rh && (constraint->role_rh != rsc_rh->next_role)) { rsc_rh 1680 pengine/native.c colocation_match(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 1696 pengine/native.c if (rsc_rh->allocated_to) { rsc_rh 1697 pengine/native.c value = pe_node_attribute_raw(rsc_rh->allocated_to, attribute); rsc_rh 1739 pengine/native.c rsc_lh->id, rsc_rh->id, do_check, score); rsc_rh 1748 pengine/native.c native_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) rsc_rh 1753 pengine/native.c CRM_ASSERT(rsc_rh); rsc_rh 1754 pengine/native.c filter_results = filter_colocation_constraint(rsc_lh, rsc_rh, constraint, FALSE); rsc_rh 1757 pengine/native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score, filter_results); rsc_rh 1761 pengine/native.c influence_priority(rsc_lh, rsc_rh, constraint); rsc_rh 1766 pengine/native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score); rsc_rh 1767 pengine/native.c colocation_match(rsc_lh, rsc_rh, constraint); rsc_rh 54 pengine/pengine.h resource_t *rsc_rh; rsc_rh 289 pengine/utilization.c resource_t *rsc_rh = constraint->rsc_rh; rsc_rh 292 pengine/utilization.c if (rsc_rh == orig_rsc) { rsc_rh 297 pengine/utilization.c && filter_colocation_constraint(rsc, rsc_rh, constraint, TRUE) == influence_rsc_location) { rsc_rh 299 pengine/utilization.c if (rsc_rh->variant == pe_group) { rsc_rh 301 pengine/utilization.c colocated_rscs = group_find_colocated_rscs(colocated_rscs, rsc_rh, orig_rsc); rsc_rh 304 pengine/utilization.c colocated_rscs = find_colocated_rscs(colocated_rscs, rsc_rh, orig_rsc); rsc_rh 34 pengine/utils.h resource_t * rsc_lh, resource_t * rsc_rh, rsc_rh 70 pengine/utils.h filter_colocation_constraint(resource_t * rsc_lh, resource_t * rsc_rh, rsc_rh 259 tools/crm_resource_print.c resource_t *peer = cons->rsc_rh;