child_rsc 89 lib/pengine/clone.c resource_t *child_rsc = NULL; child_rsc 108 lib/pengine/clone.c if (common_unpack(child_copy, &child_rsc, rsc, data_set) == FALSE) { child_rsc 110 lib/pengine/clone.c child_rsc = NULL; child_rsc 115 lib/pengine/clone.c CRM_ASSERT(child_rsc); child_rsc 117 lib/pengine/clone.c pe_rsc_trace(child_rsc, "Setting clone attributes for: %s", child_rsc->id); child_rsc 118 lib/pengine/clone.c rsc->children = g_list_append(rsc->children, child_rsc); child_rsc 120 lib/pengine/clone.c mark_as_orphan(child_rsc); child_rsc 123 lib/pengine/clone.c add_hash_param(child_rsc->meta, XML_RSC_ATTR_INCARNATION_MAX, inc_max); child_rsc 125 lib/pengine/clone.c print_resource(LOG_DEBUG_3, "Added ", child_rsc, FALSE); child_rsc 131 lib/pengine/clone.c return child_rsc; child_rsc 255 lib/pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 256 lib/pengine/clone.c gboolean child_active = child_rsc->fns->active(child_rsc, all); child_rsc 343 lib/pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 345 lib/pengine/clone.c child_rsc->fns->print(child_rsc, child_text, options, print_data); child_rsc 428 lib/pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 434 lib/pengine/clone.c if (child_rsc->fns->active(child_rsc, FALSE) == FALSE) { child_rsc 436 lib/pengine/clone.c if (is_set(child_rsc->flags, pe_rsc_orphan)) { child_rsc 443 lib/pengine/clone.c stopped_list = add_list_element(stopped_list, child_rsc->id); child_rsc 446 lib/pengine/clone.c } else if (is_set_recursive(child_rsc, pe_rsc_unique, TRUE) child_rsc 447 lib/pengine/clone.c || is_set_recursive(child_rsc, pe_rsc_orphan, TRUE) child_rsc 448 lib/pengine/clone.c || is_set_recursive(child_rsc, pe_rsc_managed, FALSE) == FALSE child_rsc 449 lib/pengine/clone.c || is_set_recursive(child_rsc, pe_rsc_failed, TRUE)) { child_rsc 454 lib/pengine/clone.c } else if (is_set(options, pe_print_pending) && child_rsc->pending_task != NULL) { child_rsc 458 lib/pengine/clone.c } else if (child_rsc->fns->active(child_rsc, TRUE)) { child_rsc 460 lib/pengine/clone.c node_t *location = child_rsc->fns->location(child_rsc, NULL, TRUE); child_rsc 463 lib/pengine/clone.c enum rsc_role_e a_role = child_rsc->fns->state(child_rsc, TRUE); child_rsc 491 lib/pengine/clone.c child_rsc->fns->print(child_rsc, child_text, options, print_data); child_rsc 595 lib/pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 597 lib/pengine/clone.c CRM_ASSERT(child_rsc); child_rsc 598 lib/pengine/clone.c pe_rsc_trace(child_rsc, "Freeing child %s", child_rsc->id); child_rsc 599 lib/pengine/clone.c free_xml(child_rsc->xml); child_rsc 600 lib/pengine/clone.c child_rsc->xml = NULL; child_rsc 602 lib/pengine/clone.c free_xml(child_rsc->orig_xml); child_rsc 603 lib/pengine/clone.c child_rsc->orig_xml = NULL; child_rsc 604 lib/pengine/clone.c child_rsc->fns->free(child_rsc); child_rsc 626 lib/pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 627 lib/pengine/clone.c enum rsc_role_e a_role = child_rsc->fns->state(child_rsc, current); child_rsc 872 lib/pengine/complex.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 874 lib/pengine/complex.c common_update_score(child_rsc, id, score); child_rsc 108 lib/pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 110 lib/pengine/group.c if (child_rsc->fns->active(child_rsc, all)) { child_rsc 136 lib/pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 138 lib/pengine/group.c child_rsc->fns->print(child_rsc, child_text, options, print_data); child_rsc 176 lib/pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 181 lib/pengine/group.c child_rsc->fns->print(child_rsc, child_text, options, print_data); child_rsc 204 lib/pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 206 lib/pengine/group.c CRM_ASSERT(child_rsc); child_rsc 207 lib/pengine/group.c pe_rsc_trace(child_rsc, "Freeing child %s", child_rsc->id); child_rsc 208 lib/pengine/group.c child_rsc->fns->free(child_rsc); child_rsc 224 lib/pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 225 lib/pengine/group.c enum rsc_role_e role = child_rsc->fns->state(child_rsc, current); child_rsc 588 lib/pengine/unpack.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 590 lib/pengine/unpack.c setup_container(child_rsc, data_set); child_rsc 1500 lib/pengine/utils.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1502 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); child_rsc 2098 lib/pengine/utils.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 2100 lib/pengine/utils.c clear_bit_recursive(child_rsc, flag); child_rsc 2111 lib/pengine/utils.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 2113 lib/pengine/utils.c set_bit_recursive(child_rsc, flag); child_rsc 697 pengine/allocate.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 699 pengine/allocate.c common_apply_stickiness(child_rsc, node, data_set); child_rsc 748 pengine/allocate.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 750 pengine/allocate.c complex_set_cmds(child_rsc); child_rsc 950 pengine/allocate.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 951 pengine/allocate.c rsc_discover_filter(child_rsc, node); child_rsc 1379 pengine/allocate.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1381 pengine/allocate.c if (is_managed(child_rsc)) { child_rsc 68 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 70 pengine/clone.c if (did_fail(child_rsc)) { child_rsc 838 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 842 pengine/clone.c child_rsc->cmds->create_actions(child_rsc, data_set); child_rsc 843 pengine/clone.c clone_update_pseudo_status(child_rsc, &stopping, &starting, &child_active); child_rsc 906 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 908 pengine/clone.c child_rsc->cmds->internal_constraints(child_rsc, data_set); child_rsc 910 pengine/clone.c order_start_start(rsc, child_rsc, pe_order_runnable_left | pe_order_implies_first_printed); child_rsc 911 pengine/clone.c new_rsc_order(child_rsc, RSC_START, rsc, RSC_STARTED, pe_order_implies_then_printed, child_rsc 914 pengine/clone.c order_start_start(last_rsc, child_rsc, pe_order_optional); child_rsc 917 pengine/clone.c order_stop_stop(rsc, child_rsc, pe_order_implies_first_printed); child_rsc 918 pengine/clone.c new_rsc_order(child_rsc, RSC_STOP, rsc, RSC_STOPPED, pe_order_implies_then_printed, child_rsc 921 pengine/clone.c order_stop_stop(child_rsc, last_rsc, pe_order_optional); child_rsc 924 pengine/clone.c last_rsc = child_rsc; child_rsc 936 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 938 pengine/clone.c changed |= assign_node(child_rsc, node, force); child_rsc 953 pengine/clone.c is_child_compatible(resource_t *child_rsc, node_t * local_node, enum rsc_role_e filter, gboolean current) child_rsc 956 pengine/clone.c enum rsc_role_e next_role = child_rsc->fns->state(child_rsc, current); child_rsc 958 pengine/clone.c if (is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { child_rsc 960 pengine/clone.c node = child_rsc->fns->location(child_rsc, NULL, current); child_rsc 964 pengine/clone.c crm_trace("Filtered %s", child_rsc->id); child_rsc 972 pengine/clone.c crm_trace("%s - %s vs %s", child_rsc->id, node->details->uname, child_rsc 976 pengine/clone.c crm_trace("%s - not allocated %d", child_rsc->id, current); child_rsc 1080 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1081 pengine/clone.c node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); child_rsc 1083 pengine/clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { child_rsc 1096 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1098 pengine/clone.c child_rsc->cmds->rsc_colocation_rh(rsc_lh, child_rsc, constraint); child_rsc 1201 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1203 pengine/clone.c child_rsc->cmds->rsc_location(child_rsc, constraint); child_rsc 1250 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1252 pengine/clone.c child_rsc->cmds->expand(child_rsc, data_set); child_rsc 1386 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1388 pengine/clone.c CRM_ASSERT(child_rsc); child_rsc 1389 pengine/clone.c local_node = child_rsc->fns->location(child_rsc, NULL, FALSE); child_rsc 1395 pengine/clone.c return child_rsc->cmds->create_probe(child_rsc, node, complete, force, data_set); child_rsc 1407 pengine/clone.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1409 pengine/clone.c if (child_rsc->cmds->create_probe(child_rsc, node, complete, force, data_set)) { child_rsc 549 pengine/container.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 551 pengine/container.c if(is_child_compatible(child_rsc, local_node, filter, current)) { child_rsc 553 pengine/container.c local_child->id, child_rsc->id, local_node->details->uname); child_rsc 554 pengine/container.c return child_rsc; child_rsc 71 pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 73 pengine/group.c node = child_rsc->cmds->allocate(child_rsc, prefer, data_set); child_rsc 101 pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 103 pengine/group.c child_rsc->cmds->create_actions(child_rsc, data_set); child_rsc 104 pengine/group.c group_update_pseudo_status(rsc, child_rsc); child_rsc 190 pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 197 pengine/group.c child_rsc->cmds->internal_constraints(child_rsc, data_set); child_rsc 207 pengine/group.c child_rsc, last_rsc, NULL, NULL, data_set); child_rsc 211 pengine/group.c new_rsc_order(rsc, RSC_DEMOTE, child_rsc, RSC_DEMOTE, child_rsc 214 pengine/group.c new_rsc_order(child_rsc, RSC_DEMOTE, rsc, RSC_DEMOTED, stopped, data_set); child_rsc 216 pengine/group.c new_rsc_order(child_rsc, RSC_PROMOTE, rsc, RSC_PROMOTED, started, data_set); child_rsc 218 pengine/group.c new_rsc_order(rsc, RSC_PROMOTE, child_rsc, RSC_PROMOTE, child_rsc 223 pengine/group.c order_start_start(rsc, child_rsc, pe_order_implies_first_printed); child_rsc 224 pengine/group.c order_stop_stop(rsc, child_rsc, stop | pe_order_implies_first_printed); child_rsc 226 pengine/group.c new_rsc_order(child_rsc, RSC_STOP, rsc, RSC_STOPPED, stopped, data_set); child_rsc 228 pengine/group.c new_rsc_order(child_rsc, RSC_START, rsc, RSC_STARTED, started, data_set); child_rsc 231 pengine/group.c order_start_start(rsc, child_rsc, start | pe_order_implies_first_printed); child_rsc 233 pengine/group.c new_rsc_order(rsc, RSC_PROMOTE, child_rsc, RSC_PROMOTE, child_rsc 238 pengine/group.c child_rsc->restart_type = pe_restart_restart; child_rsc 240 pengine/group.c order_start_start(last_rsc, child_rsc, start); child_rsc 241 pengine/group.c order_stop_stop(child_rsc, last_rsc, pe_order_optional | pe_order_restart); child_rsc 244 pengine/group.c new_rsc_order(last_rsc, RSC_PROMOTE, child_rsc, RSC_PROMOTE, start, data_set); child_rsc 245 pengine/group.c new_rsc_order(child_rsc, RSC_DEMOTE, last_rsc, RSC_DEMOTE, pe_order_optional, child_rsc 258 pengine/group.c order_start_start(rsc, child_rsc, flags); child_rsc 260 pengine/group.c new_rsc_order(rsc, RSC_PROMOTE, child_rsc, RSC_PROMOTE, flags, data_set); child_rsc 268 pengine/group.c if (child_rsc->running_on) { child_rsc 272 pengine/group.c order_stop_stop(child_rsc, last_active, pe_order_optional); child_rsc 274 pengine/group.c last_active = child_rsc; child_rsc 277 pengine/group.c last_rsc = child_rsc; child_rsc 326 pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 328 pengine/group.c child_rsc->cmds->rsc_colocation_lh(child_rsc, rsc_rh, constraint); child_rsc 367 pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 369 pengine/group.c child_rsc->cmds->rsc_colocation_rh(rsc_lh, child_rsc, constraint); child_rsc 452 pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 454 pengine/group.c child_rsc->cmds->rsc_location(child_rsc, constraint); child_rsc 476 pengine/group.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 478 pengine/group.c child_rsc->cmds->expand(child_rsc, data_set); child_rsc 571 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 573 pengine/master.c g_hash_table_iter_init(&iter, child_rsc->allowed_nodes); child_rsc 583 pengine/master.c score = master_score(child_rsc, node, 0); child_rsc 588 pengine/master.c child_rsc->id, node->details->uname, node->weight, new_score); child_rsc 593 pengine/master.c new_score = QB_MAX(child_rsc->priority, score); child_rsc 594 pengine/master.c if (new_score != child_rsc->priority) { child_rsc 596 pengine/master.c child_rsc->id, child_rsc->priority, new_score); child_rsc 597 pengine/master.c child_rsc->priority = new_score; child_rsc 628 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 630 pengine/master.c set_role_slave(child_rsc, current); child_rsc 644 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 646 pengine/master.c set_role_master(child_rsc); child_rsc 694 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 696 pengine/master.c pe_rsc_trace(rsc, "Assigning priority for %s: %s", child_rsc->id, child_rsc 697 pengine/master.c role2text(child_rsc->next_role)); child_rsc 699 pengine/master.c if (child_rsc->fns->state(child_rsc, TRUE) == RSC_ROLE_STARTED) { child_rsc 700 pengine/master.c set_role_slave(child_rsc, TRUE); child_rsc 703 pengine/master.c chosen = child_rsc->fns->location(child_rsc, &list, FALSE); child_rsc 705 pengine/master.c crm_config_err("Cannot promote non-colocated child %s", child_rsc->id); child_rsc 713 pengine/master.c next_role = child_rsc->fns->state(child_rsc, FALSE); child_rsc 725 pengine/master.c child_rsc->priority = master_score(child_rsc, chosen, -1); child_rsc 730 pengine/master.c child_rsc->priority = -INFINITY; child_rsc 738 pengine/master.c crm_err("Unknown resource role: %d for %s", next_role, child_rsc->id)); child_rsc 741 pengine/master.c apply_master_location(child_rsc, child_rsc->rsc_location, chosen); child_rsc 742 pengine/master.c apply_master_location(child_rsc, rsc->rsc_location, chosen); child_rsc 744 pengine/master.c for (gIter2 = child_rsc->rsc_cons; gIter2 != NULL; gIter2 = gIter2->next) { child_rsc 747 pengine/master.c child_rsc->cmds->rsc_colocation_lh(child_rsc, cons->rsc_rh, cons); child_rsc 750 pengine/master.c child_rsc->sort_index = child_rsc->priority; child_rsc 751 pengine/master.c pe_rsc_trace(rsc, "Assigning priority for %s: %d", child_rsc->id, child_rsc->priority); child_rsc 754 pengine/master.c child_rsc->sort_index = INFINITY; child_rsc 764 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 765 pengine/master.c score2char_stack(child_rsc->sort_index, score, len); child_rsc 767 pengine/master.c chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); child_rsc 771 pengine/master.c child_rsc->id, child_rsc 777 pengine/master.c child_rsc->id, chosen ? chosen->details->uname : "none", score); child_rsc 784 pengine/master.c if (child_rsc->sort_index < 0) { child_rsc 785 pengine/master.c pe_rsc_trace(rsc, "Not supposed to promote child: %s", child_rsc->id); child_rsc 788 pengine/master.c chosen = can_be_master(child_rsc); child_rsc 791 pengine/master.c pe_rsc_debug(rsc, "%s master score: %d", child_rsc->id, child_rsc->priority); child_rsc 794 pengine/master.c set_role_slave(child_rsc, FALSE); child_rsc 797 pengine/master.c } else if(child_rsc->role < RSC_ROLE_MASTER child_rsc 801 pengine/master.c child_rsc->id, role2text(child_rsc->role), role2text(child_rsc->next_role)); child_rsc 802 pengine/master.c set_role_slave(child_rsc, FALSE); child_rsc 808 pengine/master.c child_rsc->id, role2text(child_rsc->role), chosen->details->uname); child_rsc 809 pengine/master.c set_role_master(child_rsc); child_rsc 846 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 848 pengine/master.c pe_rsc_trace(rsc, "Creating actions for %s", child_rsc->id); child_rsc 849 pengine/master.c child_rsc->cmds->create_actions(child_rsc, data_set); child_rsc 850 pengine/master.c master_update_pseudo_status(child_rsc, &child_demoting, &child_promoting); child_rsc 854 pengine/master.c pe_rsc_trace(rsc, "Created actions for %s: %d %d", child_rsc->id, child_promoting, child_rsc 903 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 905 pengine/master.c child_rsc->priority = rsc->priority; child_rsc 948 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 951 pengine/master.c new_rsc_order(child_rsc, RSC_DEMOTE, child_rsc, RSC_PROMOTE, pe_order_optional, data_set); child_rsc 954 pengine/master.c rsc, child_rsc, last_rsc, data_set); child_rsc 957 pengine/master.c rsc, child_rsc, last_rsc, data_set); child_rsc 959 pengine/master.c last_rsc = child_rsc; child_rsc 1012 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1014 pengine/master.c child_rsc->cmds->rsc_colocation_rh(rsc_lh, child_rsc, constraint); child_rsc 1021 pengine/master.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1022 pengine/master.c node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); child_rsc 1023 pengine/master.c enum rsc_role_e next_role = child_rsc->fns->state(child_rsc, FALSE); child_rsc 1025 pengine/master.c pe_rsc_trace(rsc_rh, "Processing: %s", child_rsc->id); child_rsc 1027 pengine/master.c pe_rsc_trace(rsc_rh, "Applying: %s %s %s %d", child_rsc->id, child_rsc 1810 pengine/native.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 1812 pengine/native.c rsc_ticket_constraint(child_rsc, rsc_ticket, data_set); child_rsc 2153 pengine/native.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 2155 pengine/native.c child_rsc->cmds->expand(child_rsc, data_set); child_rsc 2309 pengine/native.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 2311 pengine/native.c LogActions(child_rsc, data_set, terminal); child_rsc 2848 pengine/native.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 2850 pengine/native.c any_created = child_rsc->cmds->create_probe(child_rsc, node, complete, force, data_set) child_rsc 3254 pengine/native.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 3256 pengine/native.c rsc_stonith_ordering(child_rsc, stonith_op, data_set); child_rsc 3283 pengine/native.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 3285 pengine/native.c ReloadRsc(child_rsc, node, data_set); child_rsc 436 pengine/utilization.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 438 pengine/utilization.c colocated_rscs = find_colocated_rscs(colocated_rscs, child_rsc, orig_rsc); child_rsc 463 pengine/utilization.c resource_t *child_rsc = (resource_t *) gIter->data; child_rsc 465 pengine/utilization.c if (is_set(child_rsc->flags, pe_rsc_provisional) && child_rsc 466 pengine/utilization.c g_list_find(all_rscs, child_rsc) == FALSE) { child_rsc 467 pengine/utilization.c native_add_unallocated_utilization(all_utilization, child_rsc); child_rsc 57 pengine/utils.h gboolean is_child_compatible(resource_t *child_rsc, node_t * local_node, enum rsc_role_e filter, gboolean current);