role 140 include/crm/pengine/common.h enum rsc_role_e text2role(const char *role); role 141 include/crm/pengine/common.h const char *role2text(enum rsc_role_e role); role 195 include/crm/pengine/common.h enum rsc_role_e role; role 472 include/crm/pengine/internal.h extern gboolean get_target_role(pe_resource_t * rsc, enum rsc_role_e *role); role 473 include/crm/pengine/internal.h void pe__set_next_role(pe_resource_t *rsc, enum rsc_role_e role, role 377 include/crm/pengine/pe_types.h enum rsc_role_e role; role 43 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, role 47 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, role 35 include/crm/pengine/rules_compat.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 40 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now, role 45 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now, role 50 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now); role 54 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now, role 59 include/crm/pengine/rules_compat.h enum rsc_role_e role, role 150 lib/common/acl.c xmlNode *role = NULL; role 152 lib/common/acl.c for (role = pcmk__xe_first_child(acl_top); role; role 153 lib/common/acl.c role = pcmk__xe_next(role)) { role 154 lib/common/acl.c if (!strcmp(XML_ACL_TAG_ROLE, (const char *) role->name)) { role 155 lib/common/acl.c const char *role_id = crm_element_value(role, role 161 lib/common/acl.c acls = parse_acl_entry(acl_top, role, acls); role 137 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 146 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 152 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role 162 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), role 171 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), role 182 lib/pacemaker/pcmk_output.c role2text(rsc->role)); role 191 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role 197 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s -> %s %s", role2text(rsc->role), role 254 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 263 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 277 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 289 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 300 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 313 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 326 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 334 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 1010 lib/pacemaker/pcmk_output.c rsc->id, role2text(rsc->role), role 1057 lib/pacemaker/pcmk_output.c if (rsc->role == rsc->next_role) { role 1084 lib/pacemaker/pcmk_output.c role2text(rsc->role), pe__node_name(next)); role 1161 lib/pacemaker/pcmk_output.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 1171 lib/pacemaker/pcmk_output.c } else if (rsc->role == RSC_ROLE_STOPPED && rsc->next_role > RSC_ROLE_STOPPED) { role 33 lib/pacemaker/pcmk_rule.c .role = RSC_ROLE_UNKNOWN, role 865 lib/pacemaker/pcmk_sched_actions.c && (then->rsc != NULL) && (then->rsc->role == RSC_ROLE_PROMOTED) role 659 lib/pacemaker/pcmk_sched_allocate.c || (rsc->role != RSC_ROLE_STOPPED)) { role 324 lib/pacemaker/pcmk_sched_colocation.c const char *role = crm_element_value(set, "role"); role 356 lib/pacemaker/pcmk_sched_colocation.c with, role, role, role 374 lib/pacemaker/pcmk_sched_colocation.c resource, role, role, role 409 lib/pacemaker/pcmk_sched_colocation.c resource, with, role, role, role 121 lib/pacemaker/pcmk_sched_group.c rsc->role = first_member->role; role 59 lib/pacemaker/pcmk_sched_location.c const char *role = NULL; role 78 lib/pacemaker/pcmk_sched_location.c role = crm_element_value(rule_xml, XML_RULE_ATTR_ROLE); role 82 lib/pacemaker/pcmk_sched_location.c if ((role != NULL) && (text2role(role) == RSC_ROLE_UNKNOWN)) { role 83 lib/pacemaker/pcmk_sched_location.c pe_err("Bad role specified for %s: %s", rule_id, role); role 116 lib/pacemaker/pcmk_sched_location.c if (role != NULL) { role 117 lib/pacemaker/pcmk_sched_location.c crm_trace("Setting role filter: %s", role); role 118 lib/pacemaker/pcmk_sched_location.c location_rule->role_filter = text2role(role); role 200 lib/pacemaker/pcmk_sched_location.c unpack_rsc_location(xmlNode *xml_obj, pe_resource_t *rsc, const char *role, role 263 lib/pacemaker/pcmk_sched_location.c if (role == NULL) { role 264 lib/pacemaker/pcmk_sched_location.c role = crm_element_value(xml_obj, XML_RULE_ATTR_ROLE); role 267 lib/pacemaker/pcmk_sched_location.c if ((location != NULL) && (role != NULL)) { role 268 lib/pacemaker/pcmk_sched_location.c if (text2role(role) == RSC_ROLE_UNKNOWN) { role 269 lib/pacemaker/pcmk_sched_location.c pe_err("Invalid constraint %s: Bad role %s", id, role); role 273 lib/pacemaker/pcmk_sched_location.c enum rsc_role_e r = text2role(role); role 446 lib/pacemaker/pcmk_sched_location.c const char *role; role 459 lib/pacemaker/pcmk_sched_location.c role = crm_element_value(set, "role"); role 473 lib/pacemaker/pcmk_sched_location.c unpack_rsc_location(location, resource, role, local_score, data_set, role 425 lib/pacemaker/pcmk_sched_primitive.c } else if ((rsc->next_role > rsc->role) role 430 lib/pacemaker/pcmk_sched_primitive.c rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 431 lib/pacemaker/pcmk_sched_primitive.c pe__set_next_role(rsc, rsc->role, "no-quorum-policy=freeze"); role 448 lib/pacemaker/pcmk_sched_primitive.c pe__set_next_role(rsc, rsc->role, "unmanaged"); role 452 lib/pacemaker/pcmk_sched_primitive.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 507 lib/pacemaker/pcmk_sched_primitive.c enum rsc_role_e role = rsc->role; role 514 lib/pacemaker/pcmk_sched_primitive.c while (role != RSC_ROLE_STOPPED) { role 515 lib/pacemaker/pcmk_sched_primitive.c next_role = rsc_state_matrix[role][RSC_ROLE_STOPPED]; role 518 lib/pacemaker/pcmk_sched_primitive.c role2text(role), role2text(next_role)); role 519 lib/pacemaker/pcmk_sched_primitive.c fn = rsc_action_matrix[role][next_role]; role 524 lib/pacemaker/pcmk_sched_primitive.c role = next_role; role 528 lib/pacemaker/pcmk_sched_primitive.c while ((rsc->role <= rsc->next_role) && (role != rsc->role) role 532 lib/pacemaker/pcmk_sched_primitive.c next_role = rsc_state_matrix[role][rsc->role]; role 538 lib/pacemaker/pcmk_sched_primitive.c role2text(role), role2text(next_role)); role 539 lib/pacemaker/pcmk_sched_primitive.c fn = rsc_action_matrix[role][next_role]; role 544 lib/pacemaker/pcmk_sched_primitive.c role = next_role; role 600 lib/pacemaker/pcmk_sched_primitive.c enum rsc_role_e role = rsc->role; role 602 lib/pacemaker/pcmk_sched_primitive.c while (role != rsc->next_role) { role 603 lib/pacemaker/pcmk_sched_primitive.c enum rsc_role_e next_role = rsc_state_matrix[role][rsc->next_role]; role 608 lib/pacemaker/pcmk_sched_primitive.c rsc->id, role2text(role), role2text(next_role), role 610 lib/pacemaker/pcmk_sched_primitive.c fn = rsc_action_matrix[role][next_role]; role 615 lib/pacemaker/pcmk_sched_primitive.c role = next_role; role 645 lib/pacemaker/pcmk_sched_primitive.c rsc->id, role2text(rsc->role), role2text(rsc->next_role), role 762 lib/pacemaker/pcmk_sched_primitive.c } else if ((rsc->role > RSC_ROLE_STARTED) && (current != NULL) role 881 lib/pacemaker/pcmk_sched_primitive.c || (rsc->role > RSC_ROLE_UNPROMOTED)) { role 37 lib/pacemaker/pcmk_sched_probes.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 108 lib/pacemaker/pcmk_sched_probes.c || ((guest_rsc->role > RSC_ROLE_STOPPED) role 130 lib/pacemaker/pcmk_sched_probes.c role2text(rsc->role), rsc->id, pe__node_name(node)); role 234 lib/pacemaker/pcmk_sched_probes.c if (guest->role == RSC_ROLE_STOPPED) { role 789 lib/pacemaker/pcmk_sched_promotable.c if (rsc->role == RSC_ROLE_STARTED) { role 791 lib/pacemaker/pcmk_sched_promotable.c rsc->role = RSC_ROLE_UNPROMOTED; role 988 lib/pacemaker/pcmk_sched_promotable.c if ((instance->role < RSC_ROLE_PROMOTED) role 999 lib/pacemaker/pcmk_sched_promotable.c instance->id, role2text(instance->role), role 27 lib/pacemaker/pcmk_sched_recurring.c enum rsc_role_e role; // Action role (or RSC_ROLE_UNKNOWN for default) role 126 lib/pacemaker/pcmk_sched_recurring.c const char *role = NULL; role 152 lib/pacemaker/pcmk_sched_recurring.c role = crm_element_value(xml, "role"); role 153 lib/pacemaker/pcmk_sched_recurring.c if (role == NULL) { role 154 lib/pacemaker/pcmk_sched_recurring.c op->role = RSC_ROLE_UNKNOWN; role 156 lib/pacemaker/pcmk_sched_recurring.c op->role = text2role(role); role 157 lib/pacemaker/pcmk_sched_recurring.c if (op->role == RSC_ROLE_UNKNOWN) { role 159 lib/pacemaker/pcmk_sched_recurring.c op->id, role); role 246 lib/pacemaker/pcmk_sched_recurring.c if (op->role == RSC_ROLE_STOPPED) { role 253 lib/pacemaker/pcmk_sched_recurring.c if (((op->role != RSC_ROLE_UNKNOWN) && (rsc->next_role != op->role)) role 254 lib/pacemaker/pcmk_sched_recurring.c || ((op->role == RSC_ROLE_UNKNOWN) role 264 lib/pacemaker/pcmk_sched_recurring.c switch (rsc->role) { role 292 lib/pacemaker/pcmk_sched_recurring.c role2text((op->role == RSC_ROLE_UNKNOWN)? RSC_ROLE_UNPROMOTED : op->role), role 344 lib/pacemaker/pcmk_sched_recurring.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 476 lib/pacemaker/pcmk_sched_recurring.c if (op->role != RSC_ROLE_STOPPED) { role 299 lib/pacemaker/pcmk_sched_resource.c if (rsc->role == RSC_ROLE_STOPPED) { role 303 lib/pacemaker/pcmk_sched_resource.c rsc->role = RSC_ROLE_STARTED; role 33 lib/pacemaker/pcmk_sched_tickets.c int role; role 48 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role == RSC_ROLE_UNKNOWN) role 49 lib/pacemaker/pcmk_sched_tickets.c || (rsc_ticket->role == rsc->role)) { role 53 lib/pacemaker/pcmk_sched_tickets.c role2text(rsc_ticket->role)); role 87 lib/pacemaker/pcmk_sched_tickets.c role2text(rsc_ticket->role)); role 99 lib/pacemaker/pcmk_sched_tickets.c if (rsc_ticket->role != RSC_ROLE_PROMOTED) { role 133 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role != RSC_ROLE_PROMOTED) role 141 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role != RSC_ROLE_PROMOTED) role 175 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->role = text2role(state); role 191 lib/pacemaker/pcmk_sched_tickets.c role2text(new_rsc_ticket->role)); role 196 lib/pacemaker/pcmk_sched_tickets.c role2text(new_rsc_ticket->role)); role 202 lib/pacemaker/pcmk_sched_tickets.c role2text(new_rsc_ticket->role)); role 208 lib/pacemaker/pcmk_sched_tickets.c role2text(new_rsc_ticket->role)); role 212 lib/pacemaker/pcmk_sched_tickets.c if (new_rsc_ticket->role == RSC_ROLE_PROMOTED) { role 215 lib/pacemaker/pcmk_sched_tickets.c role2text(new_rsc_ticket->role)); role 221 lib/pacemaker/pcmk_sched_tickets.c role2text(new_rsc_ticket->role)); role 227 lib/pacemaker/pcmk_sched_tickets.c rsc->id, role2text(new_rsc_ticket->role), ticket->id); role 245 lib/pacemaker/pcmk_sched_tickets.c const char *role = NULL; role 257 lib/pacemaker/pcmk_sched_tickets.c role = crm_element_value(set, "role"); role 273 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); role 525 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role == RSC_ROLE_PROMOTED) role 677 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 679 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 698 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 700 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 985 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 987 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 454 lib/pengine/common.c role2text(enum rsc_role_e role) role 456 lib/pengine/common.c switch (role) { role 476 lib/pengine/common.c CRM_CHECK(role >= RSC_ROLE_UNKNOWN, return RSC_ROLE_UNKNOWN_S); role 477 lib/pengine/common.c CRM_CHECK(role < RSC_ROLE_MAX, return RSC_ROLE_UNKNOWN_S); role 483 lib/pengine/common.c text2role(const char *role) role 485 lib/pengine/common.c CRM_ASSERT(role != NULL); role 486 lib/pengine/common.c if (pcmk__str_eq(role, RSC_ROLE_STOPPED_S, pcmk__str_casei)) { role 488 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_STARTED_S, pcmk__str_casei)) { role 490 lib/pengine/common.c } else if (pcmk__strcase_any_of(role, RSC_ROLE_UNPROMOTED_S, role 493 lib/pengine/common.c } else if (pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 496 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_UNKNOWN_S, pcmk__str_casei)) { role 499 lib/pengine/common.c crm_err("Unknown role: %s", role); role 153 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 197 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 226 lib/pengine/complex.c const char *role = crm_element_value(op, "role"); role 229 lib/pengine/complex.c if ((role == NULL) role 230 lib/pengine/complex.c || pcmk__strcase_any_of(role, RSC_ROLE_STARTED_S, RSC_ROLE_UNPROMOTED_S, role 232 lib/pengine/complex.c role = RSC_ROLE_UNKNOWN_S; role 235 lib/pengine/complex.c key = crm_strdup_printf("%s-%s", name, role); role 574 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 662 lib/pengine/complex.c (*rsc)->role = RSC_ROLE_STOPPED; role 1100 lib/pengine/complex.c || (rsc->role > RSC_ROLE_STOPPED)) { role 1120 lib/pengine/complex.c pe__set_next_role(pe_resource_t *rsc, enum rsc_role_e role, const char *why) role 1123 lib/pengine/complex.c if (rsc->next_role != role) { role 1125 lib/pengine/complex.c rsc->id, role2text(rsc->next_role), role2text(role), why); role 1126 lib/pengine/complex.c rsc->next_role = role; role 461 lib/pengine/group.c enum rsc_role_e role = child_rsc->fns->state(child_rsc, current); role 463 lib/pengine/group.c if (role > group_role) { role 464 lib/pengine/group.c group_role = role; role 52 lib/pengine/native.c if (rsc->role == RSC_ROLE_PROMOTED) { role 63 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? "promoted " : "", role 65 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? " + 1" : ""); role 80 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? "promoted " : "", role 82 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? " + 1" : "", role 419 lib/pengine/native.c enum rsc_role_e role = rsc->role; role 421 lib/pengine/native.c if ((role == RSC_ROLE_STARTED) role 424 lib/pengine/native.c role = RSC_ROLE_UNPROMOTED; role 426 lib/pengine/native.c return role; role 583 lib/pengine/native.c enum rsc_role_e role = native_displayable_role(rsc); role 586 lib/pengine/native.c if (role > RSC_ROLE_UNPROMOTED) { role 587 lib/pengine/native.c pcmk__add_word(&outstr, 0, role2text(role)); role 1047 lib/pengine/native.c enum rsc_role_e role = rsc->next_role; role 1050 lib/pengine/native.c role = rsc->role; role 1052 lib/pengine/native.c pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(role)); role 1053 lib/pengine/native.c return role; role 239 lib/pengine/pe_actions.c .role = RSC_ROLE_UNKNOWN, role 290 lib/pengine/pe_actions.c switch (rsc->role) { role 383 lib/pengine/pe_actions.c || (action->rsc->next_role > action->rsc->role)) { role 435 lib/pengine/pe_actions.c const char *role = NULL; role 463 lib/pengine/pe_actions.c role = crm_element_value(operation, "role"); role 471 lib/pengine/pe_actions.c || !pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 488 lib/pengine/pe_actions.c role = crm_element_value(action->op_entry, "role"); role 494 lib/pengine/pe_actions.c || !pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 655 lib/pengine/pe_actions.c .role = RSC_ROLE_UNKNOWN, role 1224 lib/pengine/pe_actions.c .role = RSC_ROLE_UNKNOWN, role 565 lib/pengine/pe_notif.c switch (rsc->role) { role 589 lib/pengine/pe_notif.c rsc->id, pe__node_name(node), role2text(rsc->role)); role 860 lib/pengine/pe_notif.c if ((rsc->role != RSC_ROLE_STOPPED) role 575 lib/pengine/pe_output.c role_desc(enum rsc_role_e role) role 577 lib/pengine/pe_output.c if (role == RSC_ROLE_PROMOTED) { role 44 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 55 lib/pengine/rules.c pe_test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 61 lib/pengine/rules.c .role = role, role 88 lib/pengine/rules.c pe_test_expression(xmlNode *expr, GHashTable *node_hash, enum rsc_role_e role, role 94 lib/pengine/rules.c .role = role, role 545 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 1129 lib/pengine/rules.c if (rule_data->role == RSC_ROLE_UNKNOWN) { role 1137 lib/pengine/rules.c if (rule_data->role > RSC_ROLE_STARTED) { role 1142 lib/pengine/rules.c if ((rule_data->role > RSC_ROLE_UNKNOWN) role 1143 lib/pengine/rules.c && (rule_data->role < RSC_ROLE_UNPROMOTED)) { role 1148 lib/pengine/rules.c if (text2role(value) == rule_data->role) { role 1154 lib/pengine/rules.c if ((rule_data->role > RSC_ROLE_UNKNOWN) role 1155 lib/pengine/rules.c && (rule_data->role < RSC_ROLE_UNPROMOTED)) { role 1158 lib/pengine/rules.c } else if (text2role(value) != rule_data->role) { role 1213 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1215 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); role 1219 lib/pengine/rules.c pe_test_rule_re(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data) role 1226 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); role 1230 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 1233 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); role 1237 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1239 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); role 1243 lib/pengine/rules.c pe_test_expression_re(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data) role 1250 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); role 1255 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1258 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, match_data); role 1269 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 203 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 549 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 1196 lib/pengine/unpack.c if ((rsc == NULL) || (rsc->role != RSC_ROLE_STARTED) role 1197 lib/pengine/unpack.c || (rsc->container->role != RSC_ROLE_STARTED)) { role 1214 lib/pengine/unpack.c && (rsc->role != RSC_ROLE_STARTED))) { role 1487 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED) { role 1494 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED && rsc->next_role == RSC_ROLE_STOPPED) { role 1512 lib/pengine/unpack.c } else if (rsc->role == RSC_ROLE_STOPPED role 1513 lib/pengine/unpack.c || (container && container->role == RSC_ROLE_STOPPED)) { role 1975 lib/pengine/unpack.c rsc->id, role2text(rsc->role), pe__node_name(node), role 1979 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_UNKNOWN) { role 2001 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED role 2101 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2119 lib/pengine/unpack.c } else if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2144 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED) { role 2167 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2218 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STOPPED role 2224 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2433 lib/pengine/unpack.c saved_role = rsc->role; role 2434 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNKNOWN; role 2468 lib/pengine/unpack.c if (saved_role > rsc->role) { role 2469 lib/pengine/unpack.c rsc->role = saved_role; role 2565 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNPROMOTED; role 2567 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2879 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2899 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 2967 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3019 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3265 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3269 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3274 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3282 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNPROMOTED; role 3289 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3291 lib/pengine/unpack.c } else if (rsc->role < RSC_ROLE_STARTED) { role 3297 lib/pengine/unpack.c rsc->id, role2text(rsc->role), role 3489 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3505 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3510 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3820 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3835 lib/pengine/unpack.c if (rsc->role < RSC_ROLE_STARTED) { role 3840 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3844 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3848 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3857 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNPROMOTED; role 3860 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3866 lib/pengine/unpack.c } else if (rsc->role < RSC_ROLE_STARTED) { role 3958 lib/pengine/unpack.c role2text(rsc->role)); role 3993 lib/pengine/unpack.c if (rsc->role <= RSC_ROLE_STOPPED) { role 3994 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNKNOWN; role 4055 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 4185 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), role 4197 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 436 lib/pengine/utils.c get_target_role(pe_resource_t * rsc, enum rsc_role_e * role) role 441 lib/pengine/utils.c CRM_CHECK(role != NULL, return FALSE); role 469 lib/pengine/utils.c *role = local_role;