dependent 23 include/pcmki/pcmki_scheduler.h pcmk_resource_t *dependent; // The resource being colocated dependent 133 lib/pacemaker/libpacemaker_private.h void (*apply_coloc_score)(pcmk_resource_t *dependent, dependent 524 lib/pacemaker/libpacemaker_private.h *dependent, dependent 532 lib/pacemaker/libpacemaker_private.h void pcmk__apply_coloc_to_scores(pcmk_resource_t *dependent, dependent 537 lib/pacemaker/libpacemaker_private.h void pcmk__apply_coloc_to_priority(pcmk_resource_t *dependent, dependent 552 lib/pacemaker/libpacemaker_private.h void pcmk__colocation_intersect_nodes(pcmk_resource_t *dependent, dependent 585 lib/pacemaker/libpacemaker_private.h pcmk_resource_t *dependent, pcmk_resource_t *primary, dependent 624 lib/pacemaker/libpacemaker_private.h if (pcmk_is_set(colocation->dependent->flags, dependent 720 lib/pacemaker/libpacemaker_private.h pcmk_resource_t *dependent, dependent 726 lib/pacemaker/libpacemaker_private.h pcmk_resource_t *dependent, dependent 772 lib/pacemaker/libpacemaker_private.h void pcmk__primitive_apply_coloc_score(pcmk_resource_t *dependent, dependent 816 lib/pacemaker/libpacemaker_private.h void pcmk__group_apply_coloc_score(pcmk_resource_t *dependent, dependent 884 lib/pacemaker/libpacemaker_private.h void pcmk__clone_apply_coloc_score(pcmk_resource_t *dependent, dependent 937 lib/pacemaker/libpacemaker_private.h void pcmk__bundle_apply_coloc_score(pcmk_resource_t *dependent, dependent 48 lib/pacemaker/pcmk_output.c "rsc", cons->dependent->id, dependent 475 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pcmk_rsc_detect_loop)) { dependent 477 lib/pacemaker/pcmk_output.c cons->dependent->id, cons->id); dependent 481 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->dependent, cons, true); dependent 488 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->dependent); dependent 491 lib/pacemaker/pcmk_output.c cons->dependent, recursive); dependent 521 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->dependent->flags, pcmk_rsc_detect_loop)) { dependent 522 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); dependent 526 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->dependent, cons); dependent 527 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->dependent, false); dependent 531 lib/pacemaker/pcmk_output.c cons->dependent, recursive); dependent 418 lib/pacemaker/pcmk_sched_bundle.c compatible_container(const pcmk_resource_t *dependent, dependent 425 lib/pacemaker/pcmk_sched_bundle.c match_data.node = dependent->fns->location(dependent, NULL, 0); dependent 434 lib/pacemaker/pcmk_sched_bundle.c scratch = g_hash_table_get_values(dependent->allowed_nodes); dependent 455 lib/pacemaker/pcmk_sched_bundle.c pcmk_resource_t *dependent; dependent 475 lib/pacemaker/pcmk_sched_bundle.c replica->container->cmds->apply_coloc_score(coloc_data->dependent, dependent 517 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_apply_coloc_score(pcmk_resource_t *dependent, dependent 522 lib/pacemaker/pcmk_sched_bundle.c struct coloc_data coloc_data = { colocation, dependent, NULL }; dependent 530 lib/pacemaker/pcmk_sched_bundle.c && (dependent != NULL) dependent 531 lib/pacemaker/pcmk_sched_bundle.c && (dependent->variant == pcmk_rsc_variant_primitive) dependent 542 lib/pacemaker/pcmk_sched_bundle.c colocation->id, dependent->id, primary->id, dependent 548 lib/pacemaker/pcmk_sched_bundle.c if (colocation->dependent->variant > pcmk_rsc_variant_group) { dependent 551 lib/pacemaker/pcmk_sched_bundle.c primary_container = compatible_container(dependent, primary); dependent 554 lib/pacemaker/pcmk_sched_bundle.c dependent->id, primary_container->id); dependent 555 lib/pacemaker/pcmk_sched_bundle.c dependent->cmds->apply_coloc_score(dependent, primary_container, dependent 561 lib/pacemaker/pcmk_sched_bundle.c dependent->id, primary->id); dependent 562 lib/pacemaker/pcmk_sched_bundle.c pcmk__assign_resource(dependent, NULL, true, true); dependent 567 lib/pacemaker/pcmk_sched_bundle.c dependent->id, primary->id); dependent 576 lib/pacemaker/pcmk_sched_bundle.c pcmk__colocation_intersect_nodes(dependent, primary, colocation, dependent 204 lib/pacemaker/pcmk_sched_clone.c const pcmk_resource_t *dependent = colocation->dependent; dependent 207 lib/pacemaker/pcmk_sched_clone.c if (dependent->variant <= pcmk_rsc_variant_group) { dependent 212 lib/pacemaker/pcmk_sched_clone.c if (!crm_is_true(g_hash_table_lookup(dependent->meta, dependent 220 lib/pacemaker/pcmk_sched_clone.c if (dependent->fns->max_per_node(dependent) dependent 224 lib/pacemaker/pcmk_sched_clone.c dependent->id, colocation->primary->id); dependent 245 lib/pacemaker/pcmk_sched_clone.c pcmk__clone_apply_coloc_score(pcmk_resource_t *dependent, dependent 259 lib/pacemaker/pcmk_sched_clone.c && (dependent != NULL) dependent 260 lib/pacemaker/pcmk_sched_clone.c && (dependent->variant == pcmk_rsc_variant_primitive)); dependent 271 lib/pacemaker/pcmk_sched_clone.c colocation->id, dependent->id, primary->id, dependent 278 lib/pacemaker/pcmk_sched_clone.c if (pcmk_is_set(dependent->flags, pcmk_rsc_unassigned)) { dependent 280 lib/pacemaker/pcmk_sched_clone.c pcmk__update_dependent_with_promotable(primary, dependent, dependent 287 lib/pacemaker/pcmk_sched_clone.c pcmk__update_promotable_dependent_priority(primary, dependent, dependent 297 lib/pacemaker/pcmk_sched_clone.c primary_instance = pcmk__find_compatible_instance(dependent, primary, dependent 302 lib/pacemaker/pcmk_sched_clone.c dependent->id, primary_instance->id); dependent 303 lib/pacemaker/pcmk_sched_clone.c dependent->cmds->apply_coloc_score(dependent, primary_instance, dependent 308 lib/pacemaker/pcmk_sched_clone.c "any instance of %s", dependent->id, primary->id); dependent 309 lib/pacemaker/pcmk_sched_clone.c pcmk__assign_resource(dependent, NULL, true, true); dependent 315 lib/pacemaker/pcmk_sched_clone.c dependent->id, primary->id); dependent 338 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_intersect_nodes(dependent, primary, colocation, dependent 348 lib/pacemaker/pcmk_sched_clone.c instance->cmds->apply_coloc_score(dependent, instance, colocation, dependent 53 lib/pacemaker/pcmk_sched_colocation.c const pcmk__colocation_t *colocation2, bool dependent) dependent 65 lib/pacemaker/pcmk_sched_colocation.c if (dependent) { dependent 66 lib/pacemaker/pcmk_sched_colocation.c rsc1 = colocation1->dependent; dependent 67 lib/pacemaker/pcmk_sched_colocation.c rsc2 = colocation2->dependent; dependent 72 lib/pacemaker/pcmk_sched_colocation.c CRM_ASSERT(colocation1->dependent != NULL); dependent 181 lib/pacemaker/pcmk_sched_colocation.c colocation->id, colocation->dependent->id, dependent 241 lib/pacemaker/pcmk_sched_colocation.c colocation->id, colocation->dependent->id, dependent 349 lib/pacemaker/pcmk_sched_colocation.c pcmk_resource_t *dependent, pcmk_resource_t *primary, dependent 357 lib/pacemaker/pcmk_sched_colocation.c if ((dependent == NULL) || (primary == NULL)) { dependent 364 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 366 lib/pacemaker/pcmk_sched_colocation.c id, dependent->id, primary->id); dependent 384 lib/pacemaker/pcmk_sched_colocation.c new_con->dependent = dependent; dependent 392 lib/pacemaker/pcmk_sched_colocation.c pcmk__add_this_with(&(dependent->rsc_cons), new_con, dependent); dependent 395 lib/pacemaker/pcmk_sched_colocation.c dependent->cluster->colocation_constraints = g_list_prepend( dependent 396 lib/pacemaker/pcmk_sched_colocation.c dependent->cluster->colocation_constraints, new_con); dependent 399 lib/pacemaker/pcmk_sched_colocation.c anti_colocation_order(dependent, new_con->dependent_role, primary, dependent 401 lib/pacemaker/pcmk_sched_colocation.c anti_colocation_order(primary, new_con->primary_role, dependent, dependent 729 lib/pacemaker/pcmk_sched_colocation.c pcmk_resource_t *dependent = NULL; dependent 732 lib/pacemaker/pcmk_sched_colocation.c dependent = pcmk__find_constraint_resource(scheduler->resources, dependent 751 lib/pacemaker/pcmk_sched_colocation.c if (dependent == NULL) { dependent 761 lib/pacemaker/pcmk_sched_colocation.c } else if ((dependent_instance != NULL) && !pe_rsc_is_clone(dependent)) { dependent 775 lib/pacemaker/pcmk_sched_colocation.c dependent = find_clone_instance(dependent, dependent_instance); dependent 776 lib/pacemaker/pcmk_sched_colocation.c if (dependent == NULL) { dependent 804 lib/pacemaker/pcmk_sched_colocation.c flags = pcmk__coloc_explicit | unpack_influence(id, dependent, influence_s); dependent 805 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(id, attr, score_i, dependent, primary, dependent 820 lib/pacemaker/pcmk_sched_colocation.c pcmk_resource_t *dependent = NULL; dependent 854 lib/pacemaker/pcmk_sched_colocation.c if (!pcmk__valid_resource_or_tag(scheduler, dependent_id, &dependent, dependent 868 lib/pacemaker/pcmk_sched_colocation.c if ((dependent != NULL) && (primary != NULL)) { dependent 1118 lib/pacemaker/pcmk_sched_colocation.c mark_action_blocked(colocation->dependent, PCMK_ACTION_PROMOTE, dependent 1121 lib/pacemaker/pcmk_sched_colocation.c mark_action_blocked(colocation->dependent, PCMK_ACTION_START, dependent 1178 lib/pacemaker/pcmk_sched_colocation.c pcmk__colocation_affects(const pcmk_resource_t *dependent, dependent 1185 lib/pacemaker/pcmk_sched_colocation.c CRM_ASSERT((dependent != NULL) && (primary != NULL) dependent 1193 lib/pacemaker/pcmk_sched_colocation.c dependent_role_rsc = get_resource_for_role(dependent); dependent 1208 lib/pacemaker/pcmk_sched_colocation.c if (!preview && !pcmk_is_set(dependent->flags, pcmk_rsc_unassigned)) { dependent 1216 lib/pacemaker/pcmk_sched_colocation.c if (dependent->allocated_to == NULL) { dependent 1218 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id); dependent 1223 lib/pacemaker/pcmk_sched_colocation.c if (!pe__same_node(primary_node, dependent->allocated_to)) { dependent 1225 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, dependent 1226 lib/pacemaker/pcmk_sched_colocation.c pe__node_name(dependent->allocated_to), dependent 1233 lib/pacemaker/pcmk_sched_colocation.c if (pe__same_node(dependent->allocated_to, primary_node)) { dependent 1236 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id, dependent 1280 lib/pacemaker/pcmk_sched_colocation.c pcmk__apply_coloc_to_scores(pcmk_resource_t *dependent, dependent 1299 lib/pacemaker/pcmk_sched_colocation.c work = pcmk__copy_node_table(dependent->allowed_nodes); dependent 1305 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1308 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id, pe__node_name(node), dependent 1314 lib/pacemaker/pcmk_sched_colocation.c if (pcmk__str_eq(pcmk__colocation_node_attr(node, attr, dependent), dependent 1326 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1329 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id, pe__node_name(node), dependent 1343 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1346 lib/pacemaker/pcmk_sched_colocation.c dependent->id, pe__node_name(node), colocation->id, dependent 1354 lib/pacemaker/pcmk_sched_colocation.c g_hash_table_destroy(dependent->allowed_nodes); dependent 1355 lib/pacemaker/pcmk_sched_colocation.c dependent->allowed_nodes = work; dependent 1359 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_info(dependent, dependent 1361 lib/pacemaker/pcmk_sched_colocation.c dependent->id, primary->id); dependent 1381 lib/pacemaker/pcmk_sched_colocation.c pcmk__apply_coloc_to_priority(pcmk_resource_t *dependent, dependent 1392 lib/pacemaker/pcmk_sched_colocation.c CRM_ASSERT((dependent != NULL) && (primary != NULL) && dependent 1395 lib/pacemaker/pcmk_sched_colocation.c if ((primary->allocated_to == NULL) || (dependent->allocated_to == NULL)) { dependent 1399 lib/pacemaker/pcmk_sched_colocation.c dependent_value = pcmk__colocation_node_attr(dependent->allocated_to, attr, dependent 1400 lib/pacemaker/pcmk_sched_colocation.c dependent); dependent 1409 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = -INFINITY; dependent 1423 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = pcmk__add_scores(score_multiplier * colocation->score, dependent 1424 lib/pacemaker/pcmk_sched_colocation.c dependent->priority); dependent 1425 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1427 lib/pacemaker/pcmk_sched_colocation.c colocation->id, dependent->id, dependent 1428 lib/pacemaker/pcmk_sched_colocation.c pcmk_readable_score(dependent->priority), dependent 1580 lib/pacemaker/pcmk_sched_colocation.c || !allowed_on_one(colocation->dependent)) { dependent 1738 lib/pacemaker/pcmk_sched_colocation.c other = constraint->dependent; dependent 1744 lib/pacemaker/pcmk_sched_colocation.c constraint->id, constraint->dependent->id, dependent 1795 lib/pacemaker/pcmk_sched_colocation.c pcmk_resource_t *source_rsc = colocation->dependent; dependent 1833 lib/pacemaker/pcmk_sched_colocation.c pcmk__colocation_intersect_nodes(pcmk_resource_t *dependent, dependent 1841 lib/pacemaker/pcmk_sched_colocation.c CRM_ASSERT((dependent != NULL) && (primary != NULL) dependent 1844 lib/pacemaker/pcmk_sched_colocation.c g_hash_table_iter_init(&iter, dependent->allowed_nodes); dependent 1852 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1854 lib/pacemaker/pcmk_sched_colocation.c dependent->id, pe__node_name(dependent_node), dependent 1860 lib/pacemaker/pcmk_sched_colocation.c pe_rsc_trace(dependent, dependent 1864 lib/pacemaker/pcmk_sched_colocation.c dependent->id, pe__node_name(dependent_node), dependent 347 lib/pacemaker/pcmk_sched_group.c colocate_group_with(pcmk_resource_t *dependent, const pcmk_resource_t *primary, dependent 352 lib/pacemaker/pcmk_sched_group.c if (dependent->children == NULL) { dependent 357 lib/pacemaker/pcmk_sched_group.c colocation->id, dependent->id, primary->id); dependent 359 lib/pacemaker/pcmk_sched_group.c if (pe__group_flag_is_set(dependent, pcmk__group_colocated)) { dependent 361 lib/pacemaker/pcmk_sched_group.c member = (pcmk_resource_t *) dependent->children->data; dependent 369 lib/pacemaker/pcmk_sched_group.c dependent->id, primary->id); dependent 374 lib/pacemaker/pcmk_sched_group.c for (GList *iter = dependent->children; iter != NULL; iter = iter->next) { dependent 393 lib/pacemaker/pcmk_sched_group.c colocate_with_group(pcmk_resource_t *dependent, const pcmk_resource_t *primary, dependent 400 lib/pacemaker/pcmk_sched_group.c colocation->id, dependent->id, primary->id); dependent 425 lib/pacemaker/pcmk_sched_group.c member->cmds->apply_coloc_score(dependent, member, colocation, false); dependent 432 lib/pacemaker/pcmk_sched_group.c dependent->id, primary->id); dependent 440 lib/pacemaker/pcmk_sched_group.c member->cmds->apply_coloc_score(dependent, member, colocation, false); dependent 458 lib/pacemaker/pcmk_sched_group.c pcmk__group_apply_coloc_score(pcmk_resource_t *dependent, dependent 463 lib/pacemaker/pcmk_sched_group.c CRM_ASSERT((dependent != NULL) && (primary != NULL) dependent 467 lib/pacemaker/pcmk_sched_group.c colocate_group_with(dependent, primary, colocation); dependent 471 lib/pacemaker/pcmk_sched_group.c CRM_ASSERT(dependent->variant == pcmk_rsc_variant_primitive); dependent 473 lib/pacemaker/pcmk_sched_group.c colocate_with_group(dependent, primary, colocation); dependent 162 lib/pacemaker/pcmk_sched_instances.c pcmk_resource_t *other = colocation->dependent; dependent 1084 lib/pacemaker/pcmk_sched_primitive.c pcmk__primitive_apply_coloc_score(pcmk_resource_t *dependent, dependent 1091 lib/pacemaker/pcmk_sched_primitive.c CRM_ASSERT((dependent != NULL) && (primary != NULL) dependent 1096 lib/pacemaker/pcmk_sched_primitive.c primary->cmds->apply_coloc_score(dependent, primary, colocation, false); dependent 1100 lib/pacemaker/pcmk_sched_primitive.c filter_results = pcmk__colocation_affects(dependent, primary, colocation, dependent 1102 lib/pacemaker/pcmk_sched_primitive.c pe_rsc_trace(dependent, "%s %s with %s (%s, score=%d, filter=%d)", dependent 1104 lib/pacemaker/pcmk_sched_primitive.c dependent->id, primary->id, colocation->id, colocation->score, dependent 1109 lib/pacemaker/pcmk_sched_primitive.c pcmk__apply_coloc_to_priority(dependent, primary, colocation); dependent 1112 lib/pacemaker/pcmk_sched_primitive.c pcmk__apply_coloc_to_scores(dependent, primary, colocation); dependent 362 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 382 lib/pacemaker/pcmk_sched_promotable.c pcmk_resource_t *dependent = colocation->dependent; dependent 393 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 396 lib/pacemaker/pcmk_sched_promotable.c dependent->cmds->add_colocated_node_scores(dependent, clone, clone->id, dependent 1168 lib/pacemaker/pcmk_sched_promotable.c update_dependent_allowed_nodes(pcmk_resource_t *dependent, dependent 1186 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1188 lib/pacemaker/pcmk_sched_promotable.c colocation->score, dependent->id); dependent 1190 lib/pacemaker/pcmk_sched_promotable.c g_hash_table_iter_init(&iter, dependent->allowed_nodes); dependent 1193 lib/pacemaker/pcmk_sched_promotable.c dependent); dependent 1215 lib/pacemaker/pcmk_sched_promotable.c pcmk_resource_t *dependent, dependent 1232 lib/pacemaker/pcmk_sched_promotable.c update_dependent_allowed_nodes(dependent, primary, node, dependent 1251 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1252 lib/pacemaker/pcmk_sched_promotable.c colocation->primary->id, dependent->id); dependent 1253 lib/pacemaker/pcmk_sched_promotable.c pcmk__colocation_intersect_nodes(dependent, primary, colocation, dependent 1269 lib/pacemaker/pcmk_sched_promotable.c pcmk_resource_t *dependent, dependent 1275 lib/pacemaker/pcmk_sched_promotable.c primary_instance = pcmk__find_compatible_instance(dependent, primary, dependent 1281 lib/pacemaker/pcmk_sched_promotable.c int new_priority = pcmk__add_scores(dependent->priority, dependent 1286 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1287 lib/pacemaker/pcmk_sched_promotable.c colocation->primary->id, dependent->id, dependent 1288 lib/pacemaker/pcmk_sched_promotable.c pcmk_readable_score(dependent->priority), dependent 1291 lib/pacemaker/pcmk_sched_promotable.c dependent->priority = new_priority; dependent 1297 lib/pacemaker/pcmk_sched_promotable.c colocation->id, colocation->dependent->id, dependent 1298 lib/pacemaker/pcmk_sched_promotable.c colocation->primary->id, dependent->id); dependent 1299 lib/pacemaker/pcmk_sched_promotable.c dependent->priority = -INFINITY; dependent 283 lib/pacemaker/pcmk_sched_resource.c const pcmk_resource_t *dependent = constraint->dependent; dependent 285 lib/pacemaker/pcmk_sched_resource.c if (dependent == orig_rsc) { dependent 289 lib/pacemaker/pcmk_sched_resource.c if (pe_rsc_is_clone(rsc) && !pe_rsc_is_clone(dependent)) { dependent 294 lib/pacemaker/pcmk_sched_resource.c (pcmk__colocation_affects(dependent, rsc, constraint, dependent 296 lib/pacemaker/pcmk_sched_resource.c add_colocated_resources(dependent, orig_rsc, &colocated_rscs); dependent 428 tools/crm_resource_runtime.c if (!pcmk_is_set(cons->dependent->flags, pcmk_rsc_detect_loop) dependent 431 tools/crm_resource_runtime.c attr_name, attr_value, cons->dependent->id); dependent 432 tools/crm_resource_runtime.c cli_resource_update_attribute(cons->dependent, dependent 433 tools/crm_resource_runtime.c cons->dependent->id, NULL,