dependent 25 include/pcmki/pcmki_scheduler.h pe_resource_t *dependent; // The resource being colocated dependent 108 lib/pacemaker/libpacemaker_private.h void (*apply_coloc_score) (pe_resource_t *dependent, dependent 444 lib/pacemaker/libpacemaker_private.h enum pcmk__coloc_affects pcmk__colocation_affects(const pe_resource_t *dependent, dependent 450 lib/pacemaker/libpacemaker_private.h void pcmk__apply_coloc_to_weights(pe_resource_t *dependent, dependent 455 lib/pacemaker/libpacemaker_private.h void pcmk__apply_coloc_to_priority(pe_resource_t *dependent, dependent 484 lib/pacemaker/libpacemaker_private.h pe_resource_t *dependent, pe_resource_t *primary, dependent 524 lib/pacemaker/libpacemaker_private.h if (pcmk_is_set(colocation->dependent->flags, pe_rsc_allow_remote_remotes) dependent 618 lib/pacemaker/libpacemaker_private.h pe_resource_t *dependent, dependent 623 lib/pacemaker/libpacemaker_private.h pe_resource_t *dependent, dependent 665 lib/pacemaker/libpacemaker_private.h void pcmk__primitive_apply_coloc_score(pe_resource_t *dependent, dependent 708 lib/pacemaker/libpacemaker_private.h void pcmk__group_apply_coloc_score(pe_resource_t *dependent, dependent 762 lib/pacemaker/libpacemaker_private.h void pcmk__clone_apply_coloc_score(pe_resource_t *dependent, dependent 781 lib/pacemaker/libpacemaker_private.h void pcmk__bundle_apply_coloc_score(pe_resource_t *dependent, dependent 48 lib/pacemaker/pcmk_output.c "rsc", cons->dependent->id, dependent 466 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_detect_loop)) { dependent 468 lib/pacemaker/pcmk_output.c cons->dependent->id, cons->id); dependent 472 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->dependent, cons, true); dependent 479 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->dependent); dependent 482 lib/pacemaker/pcmk_output.c cons->dependent, recursive); dependent 512 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pe_rsc_detect_loop)) { dependent 513 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); dependent 517 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); dependent 518 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->dependent, false); dependent 522 lib/pacemaker/pcmk_output.c cons->dependent, recursive); dependent 423 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_apply_coloc_score(pe_resource_t *dependent, dependent 437 lib/pacemaker/pcmk_sched_bundle.c CRM_CHECK((colocation != NULL) && (dependent != NULL) && (primary != NULL), dependent 439 lib/pacemaker/pcmk_sched_bundle.c CRM_ASSERT(dependent->variant == pe_native); dependent 445 lib/pacemaker/pcmk_sched_bundle.c } else if (colocation->dependent->variant > pe_group) { dependent 446 lib/pacemaker/pcmk_sched_bundle.c pe_resource_t *primary_replica = compatible_replica(dependent, primary, dependent 449 lib/pacemaker/pcmk_sched_bundle.c dependent->cluster); dependent 453 lib/pacemaker/pcmk_sched_bundle.c dependent->id, primary_replica->id); dependent 454 lib/pacemaker/pcmk_sched_bundle.c dependent->cmds->apply_coloc_score(dependent, primary_replica, dependent 459 lib/pacemaker/pcmk_sched_bundle.c dependent->id, primary->id); dependent 460 lib/pacemaker/pcmk_sched_bundle.c pcmk__assign_resource(dependent, NULL, true); dependent 464 lib/pacemaker/pcmk_sched_bundle.c dependent->id, primary->id); dependent 472 lib/pacemaker/pcmk_sched_bundle.c colocation->id, dependent->id, primary->id, colocation->score); dependent 479 lib/pacemaker/pcmk_sched_bundle.c replica->container->cmds->apply_coloc_score(dependent, dependent 507 lib/pacemaker/pcmk_sched_bundle.c node_list_exclude(dependent->allowed_nodes, allocated_primaries, FALSE); dependent 223 lib/pacemaker/pcmk_sched_clone.c pcmk__clone_apply_coloc_score(pe_resource_t *dependent, dependent 238 lib/pacemaker/pcmk_sched_clone.c CRM_CHECK((colocation != NULL) && (dependent != NULL) && (primary != NULL), dependent 240 lib/pacemaker/pcmk_sched_clone.c CRM_CHECK(dependent->variant == pe_native, return); dependent 243 lib/pacemaker/pcmk_sched_clone.c colocation->id, dependent->id, primary->id, colocation->score); dependent 256 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk_is_set(dependent->flags, pe_rsc_provisional)) { dependent 258 lib/pacemaker/pcmk_sched_clone.c pcmk__update_dependent_with_promotable(primary, dependent, dependent 264 lib/pacemaker/pcmk_sched_clone.c pcmk__update_promotable_dependent_priority(primary, dependent, dependent 271 lib/pacemaker/pcmk_sched_clone.c interleave_s = g_hash_table_lookup(colocation->dependent->meta, dependent 274 lib/pacemaker/pcmk_sched_clone.c && (colocation->dependent->variant > pe_group)) { dependent 278 lib/pacemaker/pcmk_sched_clone.c if (copies_per_node(colocation->dependent) != copies_per_node(colocation->primary)) { dependent 281 lib/pacemaker/pcmk_sched_clone.c colocation->dependent->id, dependent 296 lib/pacemaker/pcmk_sched_clone.c primary_instance = pcmk__find_compatible_instance(dependent, primary, dependent 301 lib/pacemaker/pcmk_sched_clone.c dependent->id, primary_instance->id); dependent 302 lib/pacemaker/pcmk_sched_clone.c dependent->cmds->apply_coloc_score(dependent, primary_instance, dependent 307 lib/pacemaker/pcmk_sched_clone.c dependent->id, primary->id); dependent 308 lib/pacemaker/pcmk_sched_clone.c pcmk__assign_resource(dependent, NULL, true); dependent 312 lib/pacemaker/pcmk_sched_clone.c dependent->id, primary->id); dependent 333 lib/pacemaker/pcmk_sched_clone.c node_list_exclude(dependent->allowed_nodes, affected_nodes, FALSE); dependent 342 lib/pacemaker/pcmk_sched_clone.c child_rsc->cmds->apply_coloc_score(dependent, child_rsc, colocation, dependent 48 lib/pacemaker/pcmk_sched_colocation.c CRM_ASSERT(rsc_constraint1->dependent != NULL); dependent 51 lib/pacemaker/pcmk_sched_colocation.c if (rsc_constraint1->dependent->priority > rsc_constraint2->dependent->priority) { dependent 55 lib/pacemaker/pcmk_sched_colocation.c if (rsc_constraint1->dependent->priority < rsc_constraint2->dependent->priority) { dependent 60 lib/pacemaker/pcmk_sched_colocation.c if (rsc_constraint1->dependent->variant > rsc_constraint2->dependent->variant) { dependent 63 lib/pacemaker/pcmk_sched_colocation.c if (rsc_constraint1->dependent->variant < rsc_constraint2->dependent->variant) { dependent 71 lib/pacemaker/pcmk_sched_colocation.c if (rsc_constraint1->dependent->variant == pe_clone) { dependent 72 lib/pacemaker/pcmk_sched_colocation.c if (pcmk_is_set(rsc_constraint1->dependent->flags, pe_rsc_promotable) dependent 73 lib/pacemaker/pcmk_sched_colocation.c && !pcmk_is_set(rsc_constraint2->dependent->flags, pe_rsc_promotable)) { dependent 75 lib/pacemaker/pcmk_sched_colocation.c } else if (!pcmk_is_set(rsc_constraint1->dependent->flags, pe_rsc_promotable) dependent 76 lib/pacemaker/pcmk_sched_colocation.c && pcmk_is_set(rsc_constraint2->dependent->flags, pe_rsc_promotable)) { dependent 81 lib/pacemaker/pcmk_sched_colocation.c return strcmp(rsc_constraint1->dependent->id, dependent 82 lib/pacemaker/pcmk_sched_colocation.c rsc_constraint2->dependent->id); dependent 98 lib/pacemaker/pcmk_sched_colocation.c CRM_ASSERT(rsc_constraint1->dependent != NULL); dependent 149 lib/pacemaker/pcmk_sched_colocation.c colocation->id, colocation->dependent->id, dependent 200 lib/pacemaker/pcmk_sched_colocation.c colocation->id, colocation->dependent->id, dependent 304 lib/pacemaker/pcmk_sched_colocation.c pe_resource_t *dependent, pe_resource_t *primary, dependent 314 lib/pacemaker/pcmk_sched_colocation.c if ((dependent == NULL) || (primary == NULL)) { dependent 336 lib/pacemaker/pcmk_sched_colocation.c new_con->dependent = dependent; dependent 348 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, "%s ==> %s (%s %d)", dependent 349 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, node_attr, score); dependent 351 lib/pacemaker/pcmk_sched_colocation.c pcmk__add_this_with(&(dependent->rsc_cons), new_con); dependent 358 lib/pacemaker/pcmk_sched_colocation.c anti_colocation_order(dependent, new_con->dependent_role, primary, dependent 360 lib/pacemaker/pcmk_sched_colocation.c anti_colocation_order(primary, new_con->primary_role, dependent, dependent 609 lib/pacemaker/pcmk_sched_colocation.c pe_resource_t *dependent = pcmk__find_constraint_resource(data_set->resources, dependent 626 lib/pacemaker/pcmk_sched_colocation.c if (dependent == NULL) { dependent 636 lib/pacemaker/pcmk_sched_colocation.c } else if ((dependent_instance != NULL) && !pe_rsc_is_clone(dependent)) { dependent 650 lib/pacemaker/pcmk_sched_colocation.c dependent = find_clone_instance(dependent, dependent_instance); dependent 651 lib/pacemaker/pcmk_sched_colocation.c if (dependent == NULL) { dependent 679 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, attr, score_i, dependent, primary, dependent 681 lib/pacemaker/pcmk_sched_colocation.c unpack_influence(id, dependent, influence_s), data_set); dependent 695 lib/pacemaker/pcmk_sched_colocation.c pe_resource_t *dependent = NULL; dependent 729 lib/pacemaker/pcmk_sched_colocation.c if (!pcmk__valid_resource_or_tag(data_set, dependent_id, &dependent, dependent 743 lib/pacemaker/pcmk_sched_colocation.c if ((dependent != NULL) && (primary != NULL)) { dependent 981 lib/pacemaker/pcmk_sched_colocation.c mark_action_blocked(colocation->dependent, RSC_PROMOTE, dependent 984 lib/pacemaker/pcmk_sched_colocation.c mark_action_blocked(colocation->dependent, RSC_START, action->rsc); dependent 1009 lib/pacemaker/pcmk_sched_colocation.c pcmk__colocation_affects(const pe_resource_t *dependent, dependent 1019 lib/pacemaker/pcmk_sched_colocation.c && (dependent->parent != NULL) dependent 1020 lib/pacemaker/pcmk_sched_colocation.c && pcmk_is_set(dependent->parent->flags, pe_rsc_promotable) dependent 1021 lib/pacemaker/pcmk_sched_colocation.c && !pcmk_is_set(dependent->flags, pe_rsc_provisional)) { dependent 1030 lib/pacemaker/pcmk_sched_colocation.c if (!preview && !pcmk_is_set(dependent->flags, pe_rsc_provisional)) { dependent 1038 lib/pacemaker/pcmk_sched_colocation.c if (dependent->allocated_to == NULL) { dependent 1040 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id); dependent 1046 lib/pacemaker/pcmk_sched_colocation.c (primary_node->details != dependent->allocated_to->details)) { dependent 1048 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, dependent 1049 lib/pacemaker/pcmk_sched_colocation.c pe__node_name(dependent->allocated_to), dependent 1057 lib/pacemaker/pcmk_sched_colocation.c (dependent->allocated_to->details == primary_node->details)) { dependent 1060 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, pe__node_name(primary_node)); dependent 1068 lib/pacemaker/pcmk_sched_colocation.c && (colocation->dependent_role != dependent->next_role)) { dependent 1073 lib/pacemaker/pcmk_sched_colocation.c dependent->id, role2text(dependent->next_role)); dependent 1090 lib/pacemaker/pcmk_sched_colocation.c && (colocation->dependent_role == dependent->next_role)) { dependent 1119 lib/pacemaker/pcmk_sched_colocation.c pcmk__apply_coloc_to_weights(pe_resource_t *dependent, dependent 1141 lib/pacemaker/pcmk_sched_colocation.c work = pcmk__copy_node_table(dependent->allowed_nodes); dependent 1147 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1150 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id, pe__node_name(node), dependent 1165 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1168 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id, pe__node_name(node), dependent 1180 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1183 lib/pacemaker/pcmk_sched_colocation.c dependent->id, pe__node_name(node), colocation->id, dependent 1191 lib/pacemaker/pcmk_sched_colocation.c g_hash_table_destroy(dependent->allowed_nodes); dependent 1192 lib/pacemaker/pcmk_sched_colocation.c dependent->allowed_nodes = work; dependent 1196 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_info(dependent, dependent 1198 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id); dependent 1218 lib/pacemaker/pcmk_sched_colocation.c pcmk__apply_coloc_to_priority(pe_resource_t *dependent, dependent 1227 lib/pacemaker/pcmk_sched_colocation.c if ((primary->allocated_to == NULL) || (dependent->allocated_to == NULL)) { dependent 1235 lib/pacemaker/pcmk_sched_colocation.c dependent_value = pe_node_attribute_raw(dependent->allocated_to, attribute); dependent 1241 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = -INFINITY; dependent 1255 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = pcmk__add_scores(score_multiplier * colocation->score, dependent 1256 lib/pacemaker/pcmk_sched_colocation.c dependent->priority); dependent 1257 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1259 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id, dependent 1260 lib/pacemaker/pcmk_sched_colocation.c pcmk_readable_score(dependent->priority), dependent 1486 lib/pacemaker/pcmk_sched_colocation.c other = constraint->dependent; dependent 1490 lib/pacemaker/pcmk_sched_colocation.c constraint->id, constraint->dependent->id, dependent 1541 lib/pacemaker/pcmk_sched_colocation.c pe_resource_t *other = colocation->dependent; dependent 319 lib/pacemaker/pcmk_sched_group.c colocate_group_with(pe_resource_t *dependent, const pe_resource_t *primary, dependent 324 lib/pacemaker/pcmk_sched_group.c if (dependent->children == NULL) { dependent 329 lib/pacemaker/pcmk_sched_group.c colocation->id, dependent->id, primary->id); dependent 331 lib/pacemaker/pcmk_sched_group.c if (pe__group_flag_is_set(dependent, pe__group_colocated)) { dependent 333 lib/pacemaker/pcmk_sched_group.c member = (pe_resource_t *) dependent->children->data; dependent 341 lib/pacemaker/pcmk_sched_group.c dependent->id, primary->id); dependent 346 lib/pacemaker/pcmk_sched_group.c for (GList *iter = dependent->children; iter != NULL; iter = iter->next) { dependent 365 lib/pacemaker/pcmk_sched_group.c colocate_with_group(pe_resource_t *dependent, const pe_resource_t *primary, dependent 372 lib/pacemaker/pcmk_sched_group.c colocation->id, dependent->id, primary->id); dependent 397 lib/pacemaker/pcmk_sched_group.c member->cmds->apply_coloc_score(dependent, member, colocation, false); dependent 404 lib/pacemaker/pcmk_sched_group.c dependent->id, primary->id); dependent 411 lib/pacemaker/pcmk_sched_group.c member->cmds->apply_coloc_score(dependent, member, colocation, false); dependent 429 lib/pacemaker/pcmk_sched_group.c pcmk__group_apply_coloc_score(pe_resource_t *dependent, dependent 434 lib/pacemaker/pcmk_sched_group.c CRM_ASSERT((dependent != NULL) && (primary != NULL) dependent 438 lib/pacemaker/pcmk_sched_group.c colocate_group_with(dependent, primary, colocation); dependent 442 lib/pacemaker/pcmk_sched_group.c CRM_ASSERT(dependent->variant == pe_native); dependent 444 lib/pacemaker/pcmk_sched_group.c colocate_with_group(dependent, primary, colocation); dependent 207 lib/pacemaker/pcmk_sched_instances.c other = colocation->dependent; dependent 1030 lib/pacemaker/pcmk_sched_primitive.c pcmk__primitive_apply_coloc_score(pe_resource_t *dependent, dependent 1037 lib/pacemaker/pcmk_sched_primitive.c CRM_CHECK((colocation != NULL) && (dependent != NULL) && (primary != NULL), dependent 1042 lib/pacemaker/pcmk_sched_primitive.c primary->cmds->apply_coloc_score(dependent, primary, colocation, false); dependent 1046 lib/pacemaker/pcmk_sched_primitive.c filter_results = pcmk__colocation_affects(dependent, primary, colocation, dependent 1048 lib/pacemaker/pcmk_sched_primitive.c pe_rsc_trace(dependent, "%s %s with %s (%s, score=%d, filter=%d)", dependent 1050 lib/pacemaker/pcmk_sched_primitive.c dependent->id, primary->id, colocation->id, colocation->score, dependent 1055 lib/pacemaker/pcmk_sched_primitive.c pcmk__apply_coloc_to_priority(dependent, primary, colocation); dependent 1058 lib/pacemaker/pcmk_sched_primitive.c pcmk__apply_coloc_to_weights(dependent, primary, colocation); dependent 354 lib/pacemaker/pcmk_sched_promotable.c constraint->id, constraint->dependent->id, dependent 375 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *dependent = constraint->dependent; dependent 386 lib/pacemaker/pcmk_sched_promotable.c constraint->id, constraint->dependent->id, dependent 389 lib/pacemaker/pcmk_sched_promotable.c dependent->cmds->add_colocated_node_scores(dependent, clone->id, dependent 1151 lib/pacemaker/pcmk_sched_promotable.c update_dependent_allowed_nodes(pe_resource_t *dependent, dependent 1173 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1175 lib/pacemaker/pcmk_sched_promotable.c colocation->score, dependent->id); dependent 1177 lib/pacemaker/pcmk_sched_promotable.c g_hash_table_iter_init(&iter, dependent->allowed_nodes); dependent 1201 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *dependent, dependent 1218 lib/pacemaker/pcmk_sched_promotable.c update_dependent_allowed_nodes(dependent, node, colocation); dependent 1236 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1237 lib/pacemaker/pcmk_sched_promotable.c colocation->primary->id, dependent->id); dependent 1238 lib/pacemaker/pcmk_sched_promotable.c node_list_exclude(dependent->allowed_nodes, affected_nodes, dependent 1254 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *dependent, dependent 1260 lib/pacemaker/pcmk_sched_promotable.c primary_instance = pcmk__find_compatible_instance(dependent, primary, dependent 1266 lib/pacemaker/pcmk_sched_promotable.c int new_priority = pcmk__add_scores(dependent->priority, dependent 1271 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1272 lib/pacemaker/pcmk_sched_promotable.c colocation->primary->id, dependent->id, dependent 1273 lib/pacemaker/pcmk_sched_promotable.c pcmk_readable_score(dependent->priority), dependent 1276 lib/pacemaker/pcmk_sched_promotable.c dependent->priority = new_priority; dependent 1282 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1283 lib/pacemaker/pcmk_sched_promotable.c colocation->primary->id, dependent->id); dependent 1284 lib/pacemaker/pcmk_sched_promotable.c dependent->priority = -INFINITY; dependent 266 lib/pacemaker/pcmk_sched_resource.c const pe_resource_t *dependent = constraint->dependent; dependent 268 lib/pacemaker/pcmk_sched_resource.c if (dependent == orig_rsc) { dependent 272 lib/pacemaker/pcmk_sched_resource.c if (pe_rsc_is_clone(rsc) && !pe_rsc_is_clone(dependent)) { dependent 277 lib/pacemaker/pcmk_sched_resource.c (pcmk__colocation_affects(dependent, rsc, constraint, dependent 280 lib/pacemaker/pcmk_sched_resource.c colocated_rscs = dependent->cmds->colocated_resources(dependent, dependent 423 tools/crm_resource_runtime.c if (!pcmk_is_set(cons->dependent->flags, pe_rsc_detect_loop) dependent 426 tools/crm_resource_runtime.c attr_name, attr_value, cons->dependent->id); dependent 427 tools/crm_resource_runtime.c cli_resource_update_attribute(cons->dependent, dependent 428 tools/crm_resource_runtime.c cons->dependent->id, NULL,