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 186 include/crm/pengine/common.h enum rsc_role_e role; role 433 include/crm/pengine/internal.h extern gboolean get_target_role(pe_resource_t * rsc, enum rsc_role_e *role); role 434 include/crm/pengine/internal.h void pe__set_next_role(pe_resource_t *rsc, enum rsc_role_e role, role 371 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 141 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 150 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 156 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), destination->details->uname); role 164 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), origin->details->uname); role 172 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), origin->details->uname); role 180 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", origin->details->uname, destination->details->uname, role2text(rsc->role)); role 188 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), origin->details->uname); role 192 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 246 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 255 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 269 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 281 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 292 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 305 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 318 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 326 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 864 lib/pacemaker/pcmk_output.c rsc->id, role2text(rsc->role), role 902 lib/pacemaker/pcmk_output.c if (rsc->role == rsc->next_role) { role 929 lib/pacemaker/pcmk_output.c role2text(rsc->role), next->details->uname); role 1006 lib/pacemaker/pcmk_output.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 1016 lib/pacemaker/pcmk_output.c } else if (rsc->role == RSC_ROLE_STOPPED && rsc->next_role > RSC_ROLE_STOPPED) { role 715 lib/pacemaker/pcmk_sched_constraints.c const char *role, const char *score, role 793 lib/pacemaker/pcmk_sched_constraints.c unpack_rsc_location(xmlNode *xml_obj, pe_resource_t *rsc_lh, const char *role, role 855 lib/pacemaker/pcmk_sched_constraints.c if (role == NULL) { role 856 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(xml_obj, XML_RULE_ATTR_ROLE); role 859 lib/pacemaker/pcmk_sched_constraints.c if (location && role) { role 860 lib/pacemaker/pcmk_sched_constraints.c if (text2role(role) == RSC_ROLE_UNKNOWN) { role 861 lib/pacemaker/pcmk_sched_constraints.c pe_err("Invalid constraint %s: Bad role %s", id, role); role 865 lib/pacemaker/pcmk_sched_constraints.c enum rsc_role_e r = text2role(role); role 964 lib/pacemaker/pcmk_sched_constraints.c const char *role; role 977 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(set, "role"); role 985 lib/pacemaker/pcmk_sched_constraints.c unpack_rsc_location(location, resource, role, local_score, data_set, NULL); role 1072 lib/pacemaker/pcmk_sched_constraints.c const char *role = NULL; role 1087 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(rule_xml, XML_RULE_ATTR_ROLE); role 1091 lib/pacemaker/pcmk_sched_constraints.c if (role != NULL && text2role(role) == RSC_ROLE_UNKNOWN) { role 1092 lib/pacemaker/pcmk_sched_constraints.c pe_err("Bad role specified for %s: %s", rule_id, role); role 1124 lib/pacemaker/pcmk_sched_constraints.c if (role != NULL) { role 1125 lib/pacemaker/pcmk_sched_constraints.c crm_trace("Setting role filter: %s", role); role 1126 lib/pacemaker/pcmk_sched_constraints.c location_rule->role_filter = text2role(role); role 2324 lib/pacemaker/pcmk_sched_constraints.c const char *role = crm_element_value(set, "role"); role 2357 lib/pacemaker/pcmk_sched_constraints.c with, role, role, role 2376 lib/pacemaker/pcmk_sched_constraints.c resource, role, role, role 2414 lib/pacemaker/pcmk_sched_constraints.c resource, with, role, role, role 2877 lib/pacemaker/pcmk_sched_constraints.c const char *role = NULL; role 2889 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(set, "role"); role 2897 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); role 107 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 880 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 912 lib/pacemaker/pcmk_sched_native.c const char *role = NULL; role 921 lib/pacemaker/pcmk_sched_native.c role = crm_element_value(operation, "role"); role 922 lib/pacemaker/pcmk_sched_native.c if (role == NULL || text2role(role) != RSC_ROLE_STOPPED) { role 984 lib/pacemaker/pcmk_sched_native.c key, role, role2text(rsc->next_role), node_uname); role 1221 lib/pacemaker/pcmk_sched_native.c enum rsc_role_e role = RSC_ROLE_UNKNOWN; role 1233 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role), role 1339 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { role 1353 lib/pacemaker/pcmk_sched_native.c role = rsc->role; role 1354 lib/pacemaker/pcmk_sched_native.c while (role != RSC_ROLE_STOPPED) { role 1355 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][RSC_ROLE_STOPPED]; role 1358 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); role 1359 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, current, !need_stop, data_set) == FALSE) { role 1362 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1366 lib/pacemaker/pcmk_sched_native.c while ((rsc->role <= rsc->next_role) && (role != rsc->role) role 1370 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->role]; role 1376 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); role 1377 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role](rsc, chosen, !required, role 1381 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1383 lib/pacemaker/pcmk_sched_native.c role = rsc->role; role 1386 lib/pacemaker/pcmk_sched_native.c while (role != rsc->next_role) { role 1387 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->next_role]; role 1389 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(role), role2text(next_role), role 1391 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { role 1394 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1518 lib/pacemaker/pcmk_sched_native.c || (rsc->role > RSC_ROLE_UNPROMOTED)) { role 1945 lib/pacemaker/pcmk_sched_native.c if (rsc_ticket->role_lh != RSC_ROLE_UNKNOWN && rsc_ticket->role_lh != rsc_lh->role) { role 2196 lib/pacemaker/pcmk_sched_native.c (then->rsc != NULL) && (then->rsc->role == RSC_ROLE_PROMOTED)) { role 2409 lib/pacemaker/pcmk_sched_native.c if (rsc->role == RSC_ROLE_STOPPED) { role 2414 lib/pacemaker/pcmk_sched_native.c rsc->role = RSC_ROLE_STARTED; role 2745 lib/pacemaker/pcmk_sched_native.c if(remote->role == RSC_ROLE_STOPPED) { role 2819 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 2823 lib/pacemaker/pcmk_sched_native.c crm_debug("Probing %s on %s (%s) %d %p", rsc->id, node->details->uname, role2text(rsc->role), role 2829 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 426 lib/pacemaker/pcmk_sched_notif.c pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(rsc->role)); role 428 lib/pacemaker/pcmk_sched_notif.c switch (rsc->role) { role 681 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 688 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 695 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 707 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 713 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 573 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 575 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 595 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 597 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 871 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 873 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 892 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 894 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 389 lib/pengine/group.c enum rsc_role_e role = child_rsc->fns->state(child_rsc, current); role 391 lib/pengine/group.c if (role > group_role) { role 392 lib/pengine/group.c group_role = role; role 53 lib/pengine/native.c if (rsc->role == RSC_ROLE_PROMOTED) { role 64 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? "promoted " : "", role 66 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? " + 1" : ""); role 81 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? "promoted " : "", role 83 lib/pengine/native.c (rsc->role == RSC_ROLE_PROMOTED)? " + 1" : "", role 427 lib/pengine/native.c enum rsc_role_e role = rsc->role; role 429 lib/pengine/native.c if ((role == RSC_ROLE_STARTED) role 432 lib/pengine/native.c role = RSC_ROLE_UNPROMOTED; role 434 lib/pengine/native.c return role; role 591 lib/pengine/native.c enum rsc_role_e role = native_displayable_role(rsc); role 593 lib/pengine/native.c if (role > RSC_ROLE_UNPROMOTED) { role 594 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 574 lib/pengine/pe_output.c role_desc(enum rsc_role_e role) role 576 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 621 lib/pengine/utils.c if (rsc->fns->active(rsc, TRUE) == FALSE || rsc->next_role > rsc->role) { role 666 lib/pengine/utils.c const char *role = NULL; role 694 lib/pengine/utils.c role = crm_element_value(operation, "role"); role 703 lib/pengine/utils.c || !pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 720 lib/pengine/utils.c role = crm_element_value(action->op_entry, "role"); role 726 lib/pengine/utils.c || !pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 862 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 977 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 1770 lib/pengine/utils.c get_target_role(pe_resource_t * rsc, enum rsc_role_e * role) role 1775 lib/pengine/utils.c CRM_CHECK(role != NULL, return FALSE); role 1803 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,