role 128 include/crm/pengine/common.h enum rsc_role_e text2role(const char *role); role 129 include/crm/pengine/common.h const char *role2text(enum rsc_role_e role); role 174 include/crm/pengine/common.h enum rsc_role_e role; role 473 include/crm/pengine/internal.h extern gboolean get_target_role(pe_resource_t * rsc, enum rsc_role_e *role); role 357 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 85 include/crm/pengine/rules.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 90 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, role 95 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, role 100 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now); role 104 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, role 109 include/crm/pengine/rules.h enum rsc_role_e role, role 39 include/crm/pengine/rules_internal.h gboolean pe_test_role_expression(xmlNode * expr, enum rsc_role_e role, crm_time_t * now); 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 712 lib/pacemaker/pcmk_sched_constraints.c static gboolean unpack_rsc_location(xmlNode * xml_obj, pe_resource_t * rsc_lh, const char * role, role 795 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 967 lib/pacemaker/pcmk_sched_constraints.c const char *role; role 980 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(set, "role"); role 988 lib/pacemaker/pcmk_sched_constraints.c unpack_rsc_location(location, resource, role, local_score, data_set, NULL); role 1076 lib/pacemaker/pcmk_sched_constraints.c const char *role = NULL; role 1091 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(rule_xml, XML_RULE_ATTR_ROLE); role 1095 lib/pacemaker/pcmk_sched_constraints.c if (role != NULL && text2role(role) == RSC_ROLE_UNKNOWN) { role 1096 lib/pacemaker/pcmk_sched_constraints.c pe_err("Bad role specified for %s: %s", rule_id, role); role 1128 lib/pacemaker/pcmk_sched_constraints.c if (role != NULL) { role 1129 lib/pacemaker/pcmk_sched_constraints.c crm_trace("Setting role filter: %s", role); role 1130 lib/pacemaker/pcmk_sched_constraints.c location_rule->role_filter = text2role(role); role 2289 lib/pacemaker/pcmk_sched_constraints.c const char *role = crm_element_value(set, "role"); role 2316 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(set_id, NULL, local_score, resource, with, role, role, role 2332 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(set_id, NULL, local_score, last, resource, role, role, role 2365 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(set_id, NULL, local_score, resource, with, role, role, role 2813 lib/pacemaker/pcmk_sched_constraints.c const char *role = NULL; role 2825 lib/pacemaker/pcmk_sched_constraints.c role = crm_element_value(set, "role"); role 2833 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); role 45 lib/pacemaker/pcmk_sched_group.c rsc->role = group_data->first_child->role; role 61 lib/pacemaker/pcmk_sched_messages.c || (rsc->role != RSC_ROLE_STOPPED)) { role 583 lib/pacemaker/pcmk_sched_native.c } else if(rsc->next_role > rsc->role role 587 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 588 lib/pacemaker/pcmk_sched_native.c rsc->next_role = rsc->role; role 601 lib/pacemaker/pcmk_sched_native.c rsc->next_role = rsc->role; role 605 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_MASTER) { role 716 lib/pacemaker/pcmk_sched_native.c const char *role = NULL; role 728 lib/pacemaker/pcmk_sched_native.c role = crm_element_value(operation, "role"); role 729 lib/pacemaker/pcmk_sched_native.c if (role && text2role(role) == RSC_ROLE_STOPPED) { role 793 lib/pacemaker/pcmk_sched_native.c if ((rsc->next_role == RSC_ROLE_MASTER && role == NULL) role 794 lib/pacemaker/pcmk_sched_native.c || (role != NULL && text2role(role) != rsc->next_role)) { role 807 lib/pacemaker/pcmk_sched_native.c switch (rsc->role) { role 832 lib/pacemaker/pcmk_sched_native.c result, key, role ? role : role2text(RSC_ROLE_SLAVE), role 883 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_MASTER) { role 915 lib/pacemaker/pcmk_sched_native.c const char *role = NULL; role 924 lib/pacemaker/pcmk_sched_native.c role = crm_element_value(operation, "role"); role 925 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 1236 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role), role 1340 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { role 1354 lib/pacemaker/pcmk_sched_native.c role = rsc->role; role 1355 lib/pacemaker/pcmk_sched_native.c while (role != RSC_ROLE_STOPPED) { role 1356 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][RSC_ROLE_STOPPED]; role 1359 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); role 1360 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, current, !need_stop, data_set) == FALSE) { role 1363 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1367 lib/pacemaker/pcmk_sched_native.c while ((rsc->role <= rsc->next_role) && (role != rsc->role) role 1371 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->role]; role 1377 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); role 1378 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role](rsc, chosen, !required, role 1382 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1384 lib/pacemaker/pcmk_sched_native.c role = rsc->role; role 1387 lib/pacemaker/pcmk_sched_native.c while (role != rsc->next_role) { role 1388 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->next_role]; role 1390 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(role), role2text(next_role), role 1392 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { role 1395 lib/pacemaker/pcmk_sched_native.c role = next_role; role 1518 lib/pacemaker/pcmk_sched_native.c || (rsc->role > RSC_ROLE_SLAVE)) { role 1957 lib/pacemaker/pcmk_sched_native.c if (rsc_ticket->role_lh != RSC_ROLE_UNKNOWN && rsc_ticket->role_lh != rsc_lh->role) { role 2202 lib/pacemaker/pcmk_sched_native.c then->rsc && (then->rsc->role == RSC_ROLE_MASTER)) { role 2421 lib/pacemaker/pcmk_sched_native.c if(rsc->role > RSC_ROLE_STARTED || rsc->next_role > RSC_ROLE_SLAVE) { role 2429 lib/pacemaker/pcmk_sched_native.c if(rsc->role == rsc->next_role) { role 2435 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), destination->details->uname); role 2443 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s %s", role2text(rsc->role), origin->details->uname); role 2451 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s %s", role2text(rsc->role), origin->details->uname); role 2459 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s -> %s %s", origin->details->uname, destination->details->uname, role2text(rsc->role)); role 2467 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), origin->details->uname); role 2471 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s %s -> %s %s", role2text(rsc->role), origin->details->uname, role2text(rsc->next_role), destination->details->uname); role 2538 lib/pacemaker/pcmk_sched_native.c if (rsc->role == RSC_ROLE_STOPPED) { role 2543 lib/pacemaker/pcmk_sched_native.c rsc->role = RSC_ROLE_STARTED; role 2555 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role 2593 lib/pacemaker/pcmk_sched_native.c if (rsc->role == rsc->next_role) { role 2619 lib/pacemaker/pcmk_sched_native.c role2text(rsc->role), next->details->uname); role 2688 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_MASTER) { role 2696 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_STOPPED && rsc->next_role > RSC_ROLE_STOPPED) { role 3023 lib/pacemaker/pcmk_sched_native.c if(remote->role == RSC_ROLE_STOPPED) { role 3098 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_MASTER) { role 3102 lib/pacemaker/pcmk_sched_native.c crm_debug("Probing %s on %s (%s) %d %p", rsc->id, node->details->uname, role2text(rsc->role), role 3108 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 436 lib/pacemaker/pcmk_sched_notif.c pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(rsc->role)); role 438 lib/pacemaker/pcmk_sched_notif.c switch (rsc->role) { role 687 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 694 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 701 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 n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 719 lib/pacemaker/pcmk_sched_notif.c if (rsc->role != RSC_ROLE_STOPPED) { role 170 lib/pacemaker/pcmk_sched_promotable.c enum rsc_role_e role = RSC_ROLE_UNKNOWN; role 172 lib/pacemaker/pcmk_sched_promotable.c role = rsc->fns->state(rsc, FALSE); role 173 lib/pacemaker/pcmk_sched_promotable.c crm_info("%s role: %s", rsc->id, role2text(role)); role 621 lib/pacemaker/pcmk_sched_promotable.c if (rsc->role == RSC_ROLE_STARTED) { role 622 lib/pacemaker/pcmk_sched_promotable.c rsc->role = RSC_ROLE_SLAVE; role 798 lib/pacemaker/pcmk_sched_promotable.c } else if(child_rsc->role < RSC_ROLE_MASTER role 802 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, role2text(child_rsc->role), role2text(child_rsc->next_role)); role 809 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, role2text(child_rsc->role), chosen->details->uname); role 514 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 516 lib/pengine/clone.c if(role == RSC_ROLE_SLAVE) { role 533 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 535 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 806 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 808 lib/pengine/clone.c if(role == RSC_ROLE_SLAVE) { role 826 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 828 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 1043 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 1045 lib/pengine/clone.c if(role == RSC_ROLE_SLAVE) { role 1061 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 1063 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 463 lib/pengine/common.c role2text(enum rsc_role_e role) role 465 lib/pengine/common.c switch (role) { role 477 lib/pengine/common.c CRM_CHECK(role >= RSC_ROLE_UNKNOWN, return RSC_ROLE_UNKNOWN_S); role 478 lib/pengine/common.c CRM_CHECK(role < RSC_ROLE_MAX, return RSC_ROLE_UNKNOWN_S); role 484 lib/pengine/common.c text2role(const char *role) role 486 lib/pengine/common.c CRM_ASSERT(role != NULL); role 487 lib/pengine/common.c if (pcmk__str_eq(role, RSC_ROLE_STOPPED_S, pcmk__str_casei)) { role 489 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_STARTED_S, pcmk__str_casei)) { role 491 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_SLAVE_S, pcmk__str_casei)) { role 493 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_MASTER_S, pcmk__str_casei)) { role 495 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_UNKNOWN_S, pcmk__str_casei)) { role 498 lib/pengine/common.c crm_err("Unknown role: %s", role); role 111 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 152 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 184 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 211 lib/pengine/complex.c const char *role = crm_element_value(op, "role"); role 214 lib/pengine/complex.c if (pcmk__str_eq(role, RSC_ROLE_STARTED_S, pcmk__str_null_matches) role 215 lib/pengine/complex.c || pcmk__str_eq(role, RSC_ROLE_SLAVE_S, pcmk__str_none)) { role 216 lib/pengine/complex.c role = RSC_ROLE_UNKNOWN_S; role 219 lib/pengine/complex.c key = crm_strdup_printf("%s-%s", name, role); role 411 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 503 lib/pengine/complex.c (*rsc)->role = RSC_ROLE_STOPPED; role 992 lib/pengine/complex.c || (rsc->role > RSC_ROLE_STOPPED)) { 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 46 lib/pengine/native.c if (rsc->role == RSC_ROLE_MASTER) { role 57 lib/pengine/native.c rsc->role == RSC_ROLE_MASTER ? "promoted " : "", role 59 lib/pengine/native.c rsc->role == RSC_ROLE_MASTER ? " + 1" : ""); role 74 lib/pengine/native.c rsc->role == RSC_ROLE_MASTER ? "promoted " : "", role 76 lib/pengine/native.c rsc->role == RSC_ROLE_MASTER ? " + 1" : "", role 449 lib/pengine/native.c enum rsc_role_e role = rsc->role; role 451 lib/pengine/native.c if ((role == RSC_ROLE_STARTED) role 454 lib/pengine/native.c role = RSC_ROLE_SLAVE; role 456 lib/pengine/native.c return role; role 619 lib/pengine/native.c enum rsc_role_e role = native_displayable_role(rsc); role 621 lib/pengine/native.c if (role > RSC_ROLE_SLAVE) { role 622 lib/pengine/native.c g_string_append_printf(outstr, " FAILED %s", role2text(role)); role 1187 lib/pengine/native.c enum rsc_role_e role = rsc->next_role; role 1190 lib/pengine/native.c role = rsc->role; role 1192 lib/pengine/native.c pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(role)); role 1193 lib/pengine/native.c return role; 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 144 lib/pengine/rules.c pe_test_role_expression(xmlNode *expr, enum rsc_role_e role, crm_time_t *now) role 148 lib/pengine/rules.c .role = role, role 164 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 349 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 393 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 720 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 1295 lib/pengine/rules.c if (rule_data->role == RSC_ROLE_UNKNOWN) { role 1303 lib/pengine/rules.c if (rule_data->role > RSC_ROLE_STARTED) { role 1308 lib/pengine/rules.c if (rule_data->role < RSC_ROLE_SLAVE && rule_data->role > RSC_ROLE_UNKNOWN) { role 1313 lib/pengine/rules.c if (text2role(value) == rule_data->role) { role 1319 lib/pengine/rules.c if (rule_data->role < RSC_ROLE_SLAVE && rule_data->role > RSC_ROLE_UNKNOWN) { role 1322 lib/pengine/rules.c } else if (text2role(value) != rule_data->role) { role 1367 lib/pengine/rules.c gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 1370 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1373 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1376 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now); role 1378 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1381 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1395 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1397 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); role 1401 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 1408 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); role 1412 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 1415 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); role 1419 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1421 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); role 1425 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 1432 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); role 1437 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1440 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, match_data); role 1451 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 205 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 549 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 1078 lib/pengine/unpack.c && rsc->role == RSC_ROLE_STARTED role 1079 lib/pengine/unpack.c && rsc->container->role == RSC_ROLE_STARTED) { role 1084 lib/pengine/unpack.c crm_trace("Checking node %s/%s/%s status %d/%d/%d", id, rsc->id, rsc->container->id, fence, rsc->role, RSC_ROLE_STARTED); role 1087 lib/pengine/unpack.c && ((rsc->role == RSC_ROLE_STARTED) role 1090 lib/pengine/unpack.c crm_trace("Checking node %s/%s status %d/%d/%d", id, rsc->id, fence, rsc->role, RSC_ROLE_STARTED); role 1416 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED) { role 1423 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED && rsc->next_role == RSC_ROLE_STOPPED) { role 1441 lib/pengine/unpack.c } else if (rsc->role == RSC_ROLE_STOPPED role 1442 lib/pengine/unpack.c || (container && container->role == RSC_ROLE_STOPPED)) { role 1900 lib/pengine/unpack.c rsc->id, role2text(rsc->role), node->details->uname, fail2text(on_fail)); role 1903 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_UNKNOWN) { role 1922 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED role 2019 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2037 lib/pengine/unpack.c } else if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2062 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED) { role 2085 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2324 lib/pengine/unpack.c saved_role = rsc->role; role 2325 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNKNOWN; role 2362 lib/pengine/unpack.c if (saved_role > rsc->role) { role 2363 lib/pengine/unpack.c rsc->role = saved_role; role 2445 lib/pengine/unpack.c rsc->role = RSC_ROLE_SLAVE; role 2447 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2581 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2604 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 2666 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2733 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2978 lib/pengine/unpack.c rsc->role = RSC_ROLE_MASTER; role 2982 lib/pengine/unpack.c rsc->role = RSC_ROLE_MASTER; role 2986 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 2994 lib/pengine/unpack.c rsc->role = RSC_ROLE_SLAVE; role 3001 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3003 lib/pengine/unpack.c } else if (rsc->role < RSC_ROLE_STARTED) { role 3009 lib/pengine/unpack.c rsc->id, role2text(rsc->role), role 3127 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3143 lib/pengine/unpack.c rsc->role = RSC_ROLE_MASTER; role 3148 lib/pengine/unpack.c rsc->role = RSC_ROLE_MASTER; role 3461 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3473 lib/pengine/unpack.c if (rsc->role < RSC_ROLE_STARTED) { role 3478 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3482 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3486 lib/pengine/unpack.c rsc->role = RSC_ROLE_MASTER; role 3495 lib/pengine/unpack.c rsc->role = RSC_ROLE_SLAVE; role 3498 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 3504 lib/pengine/unpack.c } else if (rsc->role < RSC_ROLE_STARTED) { role 3626 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); role 3708 lib/pengine/unpack.c rsc->role = RSC_ROLE_MASTER; role 3832 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), role 3844 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 448 lib/pengine/utils.c switch (rsc->role) { role 581 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 665 lib/pengine/utils.c if (rsc->fns->active(rsc, TRUE) == FALSE || rsc->next_role > rsc->role) { role 710 lib/pengine/utils.c const char *role = NULL; role 738 lib/pengine/utils.c role = crm_element_value(operation, "role"); role 746 lib/pengine/utils.c } else if (!pcmk__str_eq(name, "monitor", pcmk__str_casei) || !pcmk__str_eq(role, "Master", pcmk__str_casei)) { role 761 lib/pengine/utils.c role = crm_element_value(action->op_entry, "role"); role 767 lib/pengine/utils.c || !pcmk__str_eq(role, "Master", pcmk__str_casei) role 901 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 1014 lib/pengine/utils.c .role = RSC_ROLE_UNKNOWN, role 1845 lib/pengine/utils.c get_target_role(pe_resource_t * rsc, enum rsc_role_e * role) role 1850 lib/pengine/utils.c CRM_CHECK(role != NULL, return FALSE); role 1878 lib/pengine/utils.c *role = local_role; role 885 tools/crm_resource_runtime.c enum rsc_role_e role = text2role(role_s); role 888 tools/crm_resource_runtime.c if(role == RSC_ROLE_UNKNOWN) { role 891 tools/crm_resource_runtime.c } else if(role == RSC_ROLE_STOPPED) { role 897 tools/crm_resource_runtime.c && (role == RSC_ROLE_SLAVE)) { role 510 tools/crm_simulate.c && rsc->role == RSC_ROLE_STOPPED) {