role 139 include/crm/pengine/common.h enum rsc_role_e text2role(const char *role); role 140 include/crm/pengine/common.h const char *role2text(enum rsc_role_e role); role 185 include/crm/pengine/common.h enum rsc_role_e role; role 451 include/crm/pengine/internal.h extern gboolean get_target_role(pe_resource_t * rsc, enum rsc_role_e *role); role 452 include/crm/pengine/internal.h void pe__set_next_role(pe_resource_t *rsc, enum rsc_role_e role, role 369 include/crm/pengine/pe_types.h enum rsc_role_e role; role 41 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, role 45 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, role 30 include/crm/pengine/rules_compat.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 35 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now, 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 49 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, role 169 lib/common/acl.c xmlNode *role = NULL; role 171 lib/common/acl.c for (role = pcmk__xe_first_child(acl_top); role; role 172 lib/common/acl.c role = pcmk__xe_next(role)) { role 173 lib/common/acl.c if (!strcmp(XML_ACL_TAG_ROLE, (const char *) role->name)) { role 174 lib/common/acl.c const char *role_id = crm_element_value(role, role 180 lib/common/acl.c acls = parse_acl_entry(acl_top, role, acls); role 140 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 149 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 155 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), destination->details->uname); role 163 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), origin->details->uname); role 171 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), origin->details->uname); role 179 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", origin->details->uname, destination->details->uname, role2text(rsc->role)); role 187 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), origin->details->uname); role 191 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s -> %s %s", role2text(rsc->role), origin->details->uname, role2text(rsc->next_role), destination->details->uname); role 245 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 254 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 268 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 280 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 291 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 304 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 317 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 325 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 863 lib/pacemaker/pcmk_output.c rsc->id, role2text(rsc->role), role 901 lib/pacemaker/pcmk_output.c if (rsc->role == rsc->next_role) { role 928 lib/pacemaker/pcmk_output.c role2text(rsc->role), next->details->uname); role 1005 lib/pacemaker/pcmk_output.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 1015 lib/pacemaker/pcmk_output.c } else if (rsc->role == RSC_ROLE_STOPPED && rsc->next_role > RSC_ROLE_STOPPED) { role 716 lib/pacemaker/pcmk_sched_constraints.c const char *role, const char *score, role 794 lib/pacemaker/pcmk_sched_constraints.c unpack_rsc_location(xmlNode *xml_obj, pe_resource_t *rsc_lh, const char *role, role 856 lib/pacemaker/pcmk_sched_constraints.c if (role == NULL) { role 857 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(xml_obj, XML_RULE_ATTR_ROLE); role 860 lib/pacemaker/pcmk_sched_constraints.c if (location && role) { role 861 lib/pacemaker/pcmk_sched_constraints.c if (text2role(role) == RSC_ROLE_UNKNOWN) { role 862 lib/pacemaker/pcmk_sched_constraints.c pe_err("Invalid constraint %s: Bad role %s", id, role); role 866 lib/pacemaker/pcmk_sched_constraints.c enum rsc_role_e r = text2role(role); role 965 lib/pacemaker/pcmk_sched_constraints.c const char *role; role 978 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(set, "role"); role 986 lib/pacemaker/pcmk_sched_constraints.c unpack_rsc_location(location, resource, role, local_score, data_set, NULL); role 1073 lib/pacemaker/pcmk_sched_constraints.c const char *role = NULL; role 1088 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(rule_xml, XML_RULE_ATTR_ROLE); role 1092 lib/pacemaker/pcmk_sched_constraints.c if (role != NULL && text2role(role) == RSC_ROLE_UNKNOWN) { role 1093 lib/pacemaker/pcmk_sched_constraints.c pe_err("Bad role specified for %s: %s", rule_id, role); role 1125 lib/pacemaker/pcmk_sched_constraints.c if (role != NULL) { role 1126 lib/pacemaker/pcmk_sched_constraints.c crm_trace("Setting role filter: %s", role); role 1127 lib/pacemaker/pcmk_sched_constraints.c location_rule->role_filter = text2role(role); role 2326 lib/pacemaker/pcmk_sched_constraints.c const char *role = crm_element_value(set, "role"); role 2359 lib/pacemaker/pcmk_sched_constraints.c with, role, role, role 2378 lib/pacemaker/pcmk_sched_constraints.c resource, role, role, role 2416 lib/pacemaker/pcmk_sched_constraints.c resource, with, role, role, role 2879 lib/pacemaker/pcmk_sched_constraints.c const char *role = NULL; role 2891 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(set, "role"); role 2899 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); role 47 lib/pacemaker/pcmk_sched_group.c rsc->role = group_data->first_child->role; role 45 lib/pacemaker/pcmk_sched_messages.c || (rsc->role != RSC_ROLE_STOPPED)) { role 581 lib/pacemaker/pcmk_sched_native.c } else if(rsc->next_role > rsc->role role 585 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 586 lib/pacemaker/pcmk_sched_native.c pe__set_next_role(rsc, rsc->role, "no-quorum-policy=freeze"); role 600 lib/pacemaker/pcmk_sched_native.c pe__set_next_role(rsc, rsc->role, "unmanaged"); role 604 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 715 lib/pacemaker/pcmk_sched_native.c const char *role = NULL; role 727 lib/pacemaker/pcmk_sched_native.c role = crm_element_value(operation, "role"); role 728 lib/pacemaker/pcmk_sched_native.c if (role && text2role(role) == RSC_ROLE_STOPPED) { role 792 lib/pacemaker/pcmk_sched_native.c if (((rsc->next_role == RSC_ROLE_PROMOTED) && (role == NULL)) role 793 lib/pacemaker/pcmk_sched_native.c || (role != NULL && text2role(role) != rsc->next_role)) { role 806 lib/pacemaker/pcmk_sched_native.c switch (rsc->role) { role 831 lib/pacemaker/pcmk_sched_native.c result, key, role ? role : role2text(RSC_ROLE_UNPROMOTED), role 882 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 914 lib/pacemaker/pcmk_sched_native.c const char *role = NULL; role 923 lib/pacemaker/pcmk_sched_native.c role = crm_element_value(operation, "role"); role 924 lib/pacemaker/pcmk_sched_native.c if (role == NULL || text2role(role) != RSC_ROLE_STOPPED) { role 986 lib/pacemaker/pcmk_sched_native.c key, role, role2text(rsc->next_role), node_uname); role 1226 lib/pacemaker/pcmk_sched_native.c enum rsc_role_e role = RSC_ROLE_UNKNOWN; role 1238 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role), role 1344 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { role 1358 lib/pacemaker/pcmk_sched_native.c role = rsc->role; role 1359 lib/pacemaker/pcmk_sched_native.c while (role != RSC_ROLE_STOPPED) { role 1360 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][RSC_ROLE_STOPPED]; role 1363 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); role 1364 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, current, !need_stop, data_set) == FALSE) { role 1367 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1371 lib/pacemaker/pcmk_sched_native.c while ((rsc->role <= rsc->next_role) && (role != rsc->role) role 1375 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->role]; role 1381 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); role 1382 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role](rsc, chosen, !required, role 1386 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1388 lib/pacemaker/pcmk_sched_native.c role = rsc->role; role 1391 lib/pacemaker/pcmk_sched_native.c while (role != rsc->next_role) { role 1392 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->next_role]; role 1394 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(role), role2text(next_role), role 1396 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { role 1399 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1523 lib/pacemaker/pcmk_sched_native.c || (rsc->role > RSC_ROLE_UNPROMOTED)) { role 1952 lib/pacemaker/pcmk_sched_native.c if (rsc_ticket->role_lh != RSC_ROLE_UNKNOWN && rsc_ticket->role_lh != rsc_lh->role) { role 2199 lib/pacemaker/pcmk_sched_native.c (then->rsc != NULL) && (then->rsc->role == RSC_ROLE_PROMOTED)) { role 2410 lib/pacemaker/pcmk_sched_native.c if (rsc->role == RSC_ROLE_STOPPED) { role 2415 lib/pacemaker/pcmk_sched_native.c rsc->role = RSC_ROLE_STARTED; role 2749 lib/pacemaker/pcmk_sched_native.c if(remote->role == RSC_ROLE_STOPPED) { role 2824 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 2828 lib/pacemaker/pcmk_sched_native.c crm_debug("Probing %s on %s (%s) %d %p", rsc->id, node->details->uname, role2text(rsc->role), role 2834 lib/pacemaker/pcmk_sched_native.c crm_trace("Probing %s on %s (%s) as %s", rsc->id, node->details->uname, role2text(rsc->role), top->id); role 438 lib/pacemaker/pcmk_sched_notif.c pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(rsc->role)); role 440 lib/pacemaker/pcmk_sched_notif.c switch (rsc->role) { role 697 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 704 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 711 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 723 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 729 lib/pacemaker/pcmk_sched_notif.c if (rsc->role != RSC_ROLE_STOPPED) { role 174 lib/pacemaker/pcmk_sched_promotable.c enum rsc_role_e role = RSC_ROLE_UNKNOWN; role 176 lib/pacemaker/pcmk_sched_promotable.c role = rsc->fns->state(rsc, FALSE); role 177 lib/pacemaker/pcmk_sched_promotable.c crm_info("%s role: %s", rsc->id, role2text(role)); role 622 lib/pacemaker/pcmk_sched_promotable.c if (rsc->role == RSC_ROLE_STARTED) { role 623 lib/pacemaker/pcmk_sched_promotable.c rsc->role = RSC_ROLE_UNPROMOTED; role 789 lib/pacemaker/pcmk_sched_promotable.c } else if ((child_rsc->role < RSC_ROLE_PROMOTED) role 793 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, role2text(child_rsc->role), role2text(child_rsc->next_role)); role 800 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, role2text(child_rsc->role), chosen->details->uname); role 539 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 541 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 561 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 563 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 834 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 836 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 857 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 859 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 1074 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 1076 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 1093 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 1095 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 459 lib/pengine/common.c role2text(enum rsc_role_e role) role 461 lib/pengine/common.c switch (role) { role 481 lib/pengine/common.c CRM_CHECK(role >= RSC_ROLE_UNKNOWN, return RSC_ROLE_UNKNOWN_S); role 482 lib/pengine/common.c CRM_CHECK(role < RSC_ROLE_MAX, return RSC_ROLE_UNKNOWN_S); role 488 lib/pengine/common.c text2role(const char *role) role 490 lib/pengine/common.c CRM_ASSERT(role != NULL); role 491 lib/pengine/common.c if (pcmk__str_eq(role, RSC_ROLE_STOPPED_S, pcmk__str_casei)) { role 493 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_STARTED_S, pcmk__str_casei)) { role 495 lib/pengine/common.c } else if (pcmk__strcase_any_of(role, RSC_ROLE_UNPROMOTED_S, role 498 lib/pengine/common.c } else if (pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 501 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_UNKNOWN_S, pcmk__str_casei)) { role 504 lib/pengine/common.c crm_err("Unknown role: %s", role); role 151 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 195 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 227 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 254 lib/pengine/complex.c const char *role = crm_element_value(op, "role"); role 257 lib/pengine/complex.c if ((role == NULL) role 258 lib/pengine/complex.c || pcmk__strcase_any_of(role, RSC_ROLE_STARTED_S, RSC_ROLE_UNPROMOTED_S, role 260 lib/pengine/complex.c role = RSC_ROLE_UNKNOWN_S; role 263 lib/pengine/complex.c key = crm_strdup_printf("%s-%s", name, role); role 508 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 594 lib/pengine/complex.c (*rsc)->role = RSC_ROLE_STOPPED; role 1096 lib/pengine/complex.c || (rsc->role > RSC_ROLE_STOPPED)) { role 1116 lib/pengine/complex.c pe__set_next_role(pe_resource_t *rsc, enum rsc_role_e role, const char *why) role 1119 lib/pengine/complex.c if (rsc->next_role != role) { role 1121 lib/pengine/complex.c rsc->id, role2text(rsc->next_role), role2text(role), why); role 1122 lib/pengine/complex.c rsc->next_role = role; role 373 lib/pengine/group.c enum rsc_role_e role = child_rsc->fns->state(child_rsc, current); role 375 lib/pengine/group.c if (role > group_role) { role 376 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 426 lib/pengine/native.c enum rsc_role_e role = rsc->role; role 428 lib/pengine/native.c if ((role == RSC_ROLE_STARTED) role 431 lib/pengine/native.c role = RSC_ROLE_UNPROMOTED; role 433 lib/pengine/native.c return role; role 590 lib/pengine/native.c enum rsc_role_e role = native_displayable_role(rsc); role 592 lib/pengine/native.c if (role > RSC_ROLE_UNPROMOTED) { role 593 lib/pengine/native.c g_string_append_printf(outstr, " FAILED %s", role2text(role)); role 1031 lib/pengine/native.c enum rsc_role_e role = rsc->next_role; role 1034 lib/pengine/native.c role = rsc->role; role 1036 lib/pengine/native.c pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(role)); role 1037 lib/pengine/native.c return role; role 583 lib/pengine/pe_output.c role_desc(enum rsc_role_e role) role 585 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 635 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 1265 lib/pengine/rules.c if (rule_data->role == RSC_ROLE_UNKNOWN) { role 1273 lib/pengine/rules.c if (rule_data->role > RSC_ROLE_STARTED) { role 1278 lib/pengine/rules.c if ((rule_data->role > RSC_ROLE_UNKNOWN) role 1279 lib/pengine/rules.c && (rule_data->role < RSC_ROLE_UNPROMOTED)) { role 1284 lib/pengine/rules.c if (text2role(value) == rule_data->role) { role 1290 lib/pengine/rules.c if ((rule_data->role > RSC_ROLE_UNKNOWN) role 1291 lib/pengine/rules.c && (rule_data->role < RSC_ROLE_UNPROMOTED)) { role 1294 lib/pengine/rules.c } else if (text2role(value) != rule_data->role) { role 1348 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1350 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); role 1354 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 1361 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); role 1365 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 1368 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); role 1372 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1374 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); role 1378 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 1385 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); role 1390 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1393 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, match_data); role 1404 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 205 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 541 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 1192 lib/pengine/unpack.c if ((rsc == NULL) || (rsc->role != RSC_ROLE_STARTED) role 1193 lib/pengine/unpack.c || (rsc->container->role != RSC_ROLE_STARTED)) { role 1210 lib/pengine/unpack.c && (rsc->role != RSC_ROLE_STARTED))) { role 1474 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED) { role 1481 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED && rsc->next_role == RSC_ROLE_STOPPED) { role 1499 lib/pengine/unpack.c } else if (rsc->role == RSC_ROLE_STOPPED role 1500 lib/pengine/unpack.c || (container && container->role == RSC_ROLE_STOPPED)) { role 1959 lib/pengine/unpack.c rsc->id, role2text(rsc->role), node->details->uname, fail2text(on_fail)); role 1962 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_UNKNOWN) { role 1981 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED role 2081 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2099 lib/pengine/unpack.c } else if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2124 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED) { role 2147 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2396 lib/pengine/unpack.c saved_role = rsc->role; role 2397 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNKNOWN; role 2431 lib/pengine/unpack.c if (saved_role > rsc->role) { role 2432 lib/pengine/unpack.c rsc->role = saved_role; role 2528 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNPROMOTED; role 2530 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2664 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2687 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 2749 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2816 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3061 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3065 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3070 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3078 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNPROMOTED; role 3085 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3087 lib/pengine/unpack.c } else if (rsc->role < RSC_ROLE_STARTED) { role 3093 lib/pengine/unpack.c rsc->id, role2text(rsc->role), role 3211 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3227 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3232 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3545 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3557 lib/pengine/unpack.c if (rsc->role < RSC_ROLE_STARTED) { role 3562 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3566 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3570 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3579 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNPROMOTED; role 3582 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3588 lib/pengine/unpack.c } else if (rsc->role < RSC_ROLE_STARTED) { role 3711 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); role 3793 lib/pengine/unpack.c rsc->role = RSC_ROLE_PROMOTED; role 3917 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), role 3929 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 397 lib/pengine/utils.c switch (rsc->role) { role 531 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 615 lib/pengine/utils.c if (rsc->fns->active(rsc, TRUE) == FALSE || rsc->next_role > rsc->role) { role 660 lib/pengine/utils.c const char *role = NULL; role 688 lib/pengine/utils.c role = crm_element_value(operation, "role"); role 697 lib/pengine/utils.c || !pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 714 lib/pengine/utils.c role = crm_element_value(action->op_entry, "role"); role 720 lib/pengine/utils.c || !pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 856 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 971 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 1764 lib/pengine/utils.c get_target_role(pe_resource_t * rsc, enum rsc_role_e * role) role 1769 lib/pengine/utils.c CRM_CHECK(role != NULL, return FALSE); role 1797 lib/pengine/utils.c *role = local_role; role 23 tools/crm_resource_runtime.c enum rsc_role_e role = text2role(role_s); role 25 tools/crm_resource_runtime.c if (role == RSC_ROLE_STOPPED) { role 28 tools/crm_resource_runtime.c (role == RSC_ROLE_UNPROMOTED)) { role 94 tools/crm_rule.c .role = RSC_ROLE_UNKNOWN,