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 194 include/crm/pengine/common.h enum rsc_role_e role; role 463 include/crm/pengine/internal.h gboolean get_target_role(const pe_resource_t *rsc, enum rsc_role_e *role); role 464 include/crm/pengine/internal.h void pe__set_next_role(pe_resource_t *rsc, enum rsc_role_e role, role 402 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 809 lib/pacemaker/libpacemaker_private.h const pe_node_t *node, enum rsc_role_e role, role 815 lib/pacemaker/libpacemaker_private.h enum rsc_role_e role, role 138 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 147 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 153 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role 163 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), role 172 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s", role2text(rsc->role), role 183 lib/pacemaker/pcmk_output.c role2text(rsc->role)); role 192 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role 198 lib/pacemaker/pcmk_output.c details = crm_strdup_printf("%s %s -> %s %s", role2text(rsc->role), role 255 lib/pacemaker/pcmk_output.c if ((rsc->role > RSC_ROLE_STARTED) role 264 lib/pacemaker/pcmk_output.c if(rsc->role == rsc->next_role) { role 278 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 290 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 301 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 314 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 327 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 335 lib/pacemaker/pcmk_output.c "role", role2text(rsc->role), role 1083 lib/pacemaker/pcmk_output.c rsc->id, role2text(rsc->role), role 1130 lib/pacemaker/pcmk_output.c if (rsc->role == rsc->next_role) { role 1157 lib/pacemaker/pcmk_output.c role2text(rsc->role), pe__node_name(next)); role 1234 lib/pacemaker/pcmk_output.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 1244 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 860 lib/pacemaker/pcmk_sched_actions.c && (then->rsc != NULL) && (then->rsc->role == RSC_ROLE_PROMOTED) role 402 lib/pacemaker/pcmk_sched_colocation.c const char *role = crm_element_value(set, "role"); role 434 lib/pacemaker/pcmk_sched_colocation.c with, role, role, role 452 lib/pacemaker/pcmk_sched_colocation.c resource, role, role, role 487 lib/pacemaker/pcmk_sched_colocation.c resource, with, role, role, role 53 lib/pacemaker/pcmk_sched_group.c rsc->role = first_member->role; role 1007 lib/pacemaker/pcmk_sched_instances.c enum rsc_role_e role, bool current) role 1013 lib/pacemaker/pcmk_sched_instances.c if ((role != RSC_ROLE_UNKNOWN) role 1014 lib/pacemaker/pcmk_sched_instances.c && (role != instance->fns->state(instance, current))) { role 1017 lib/pacemaker/pcmk_sched_instances.c instance->id, role2text(role)); role 1060 lib/pacemaker/pcmk_sched_instances.c const pe_node_t *node, enum rsc_role_e role, role 1069 lib/pacemaker/pcmk_sched_instances.c if (pcmk__instance_matches(instance, node, role, current)) { role 1071 lib/pacemaker/pcmk_sched_instances.c role == RSC_ROLE_UNKNOWN? "matching" : role2text(role), role 1081 lib/pacemaker/pcmk_sched_instances.c ((role == RSC_ROLE_UNKNOWN)? "matching" : role2text(role)), role 1101 lib/pacemaker/pcmk_sched_instances.c const pe_resource_t *rsc, enum rsc_role_e role, role 1110 lib/pacemaker/pcmk_sched_instances.c return find_compatible_instance_on_node(match_rsc, rsc, node, role, role 1121 lib/pacemaker/pcmk_sched_instances.c role, current); 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 445 lib/pacemaker/pcmk_sched_location.c const char *role; role 458 lib/pacemaker/pcmk_sched_location.c role = crm_element_value(set, "role"); role 472 lib/pacemaker/pcmk_sched_location.c unpack_rsc_location(location, resource, role, local_score, data_set, role 442 lib/pacemaker/pcmk_sched_primitive.c } else if ((rsc->next_role > rsc->role) role 447 lib/pacemaker/pcmk_sched_primitive.c rsc->id, role2text(rsc->role), role2text(rsc->next_role)); role 448 lib/pacemaker/pcmk_sched_primitive.c pe__set_next_role(rsc, rsc->role, "no-quorum-policy=freeze"); role 465 lib/pacemaker/pcmk_sched_primitive.c pe__set_next_role(rsc, rsc->role, "unmanaged"); role 469 lib/pacemaker/pcmk_sched_primitive.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 524 lib/pacemaker/pcmk_sched_primitive.c enum rsc_role_e role = rsc->role; role 531 lib/pacemaker/pcmk_sched_primitive.c while (role != RSC_ROLE_STOPPED) { role 532 lib/pacemaker/pcmk_sched_primitive.c next_role = rsc_state_matrix[role][RSC_ROLE_STOPPED]; role 535 lib/pacemaker/pcmk_sched_primitive.c role2text(role), role2text(next_role)); role 536 lib/pacemaker/pcmk_sched_primitive.c fn = rsc_action_matrix[role][next_role]; role 541 lib/pacemaker/pcmk_sched_primitive.c role = next_role; role 545 lib/pacemaker/pcmk_sched_primitive.c while ((rsc->role <= rsc->next_role) && (role != rsc->role) role 549 lib/pacemaker/pcmk_sched_primitive.c next_role = rsc_state_matrix[role][rsc->role]; role 555 lib/pacemaker/pcmk_sched_primitive.c role2text(role), role2text(next_role)); role 556 lib/pacemaker/pcmk_sched_primitive.c fn = rsc_action_matrix[role][next_role]; role 561 lib/pacemaker/pcmk_sched_primitive.c role = next_role; role 617 lib/pacemaker/pcmk_sched_primitive.c enum rsc_role_e role = rsc->role; role 619 lib/pacemaker/pcmk_sched_primitive.c while (role != rsc->next_role) { role 620 lib/pacemaker/pcmk_sched_primitive.c enum rsc_role_e next_role = rsc_state_matrix[role][rsc->next_role]; role 625 lib/pacemaker/pcmk_sched_primitive.c rsc->id, role2text(role), role2text(next_role), role 627 lib/pacemaker/pcmk_sched_primitive.c fn = rsc_action_matrix[role][next_role]; role 632 lib/pacemaker/pcmk_sched_primitive.c role = next_role; role 662 lib/pacemaker/pcmk_sched_primitive.c rsc->id, role2text(rsc->role), role2text(rsc->next_role), role 779 lib/pacemaker/pcmk_sched_primitive.c } else if ((rsc->role > RSC_ROLE_STARTED) && (current != NULL) role 896 lib/pacemaker/pcmk_sched_primitive.c || (rsc->role > RSC_ROLE_UNPROMOTED)) { role 38 lib/pacemaker/pcmk_sched_probes.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 109 lib/pacemaker/pcmk_sched_probes.c || ((guest_rsc->role > RSC_ROLE_STOPPED) role 131 lib/pacemaker/pcmk_sched_probes.c role2text(rsc->role), rsc->id, pe__node_name(node)); role 235 lib/pacemaker/pcmk_sched_probes.c if (guest->role == RSC_ROLE_STOPPED) { role 805 lib/pacemaker/pcmk_sched_promotable.c if (rsc->role == RSC_ROLE_STARTED) { role 807 lib/pacemaker/pcmk_sched_promotable.c rsc->role = RSC_ROLE_UNPROMOTED; role 1006 lib/pacemaker/pcmk_sched_promotable.c if ((instance->role < RSC_ROLE_PROMOTED) role 1017 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 248 lib/pacemaker/pcmk_sched_recurring.c if (op->role == RSC_ROLE_STOPPED) { role 255 lib/pacemaker/pcmk_sched_recurring.c if (((op->role != RSC_ROLE_UNKNOWN) && (rsc->next_role != op->role)) role 256 lib/pacemaker/pcmk_sched_recurring.c || ((op->role == RSC_ROLE_UNKNOWN) role 266 lib/pacemaker/pcmk_sched_recurring.c switch (rsc->role) { role 294 lib/pacemaker/pcmk_sched_recurring.c role2text((op->role == RSC_ROLE_UNKNOWN)? RSC_ROLE_UNPROMOTED : op->role), role 346 lib/pacemaker/pcmk_sched_recurring.c } else if (rsc->role == RSC_ROLE_PROMOTED) { role 478 lib/pacemaker/pcmk_sched_recurring.c if (op->role != RSC_ROLE_STOPPED) { role 316 lib/pacemaker/pcmk_sched_resource.c if (rsc->role == RSC_ROLE_STOPPED) { role 320 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 662 lib/pacemaker/pcmk_scheduler.c || (rsc->role != RSC_ROLE_STOPPED)) { role 736 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 738 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 757 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 759 lib/pengine/clone.c if (role == RSC_ROLE_STOPPED) { role 1056 lib/pengine/clone.c enum rsc_role_e role = configured_role(rsc); role 1058 lib/pengine/clone.c if (role == RSC_ROLE_UNPROMOTED) { role 450 lib/pengine/common.c role2text(enum rsc_role_e role) role 452 lib/pengine/common.c switch (role) { role 472 lib/pengine/common.c CRM_CHECK(role >= RSC_ROLE_UNKNOWN, return RSC_ROLE_UNKNOWN_S); role 473 lib/pengine/common.c CRM_CHECK(role < RSC_ROLE_MAX, return RSC_ROLE_UNKNOWN_S); role 479 lib/pengine/common.c text2role(const char *role) role 481 lib/pengine/common.c CRM_ASSERT(role != NULL); role 482 lib/pengine/common.c if (pcmk__str_eq(role, RSC_ROLE_STOPPED_S, pcmk__str_casei)) { role 484 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_STARTED_S, pcmk__str_casei)) { role 486 lib/pengine/common.c } else if (pcmk__strcase_any_of(role, RSC_ROLE_UNPROMOTED_S, role 489 lib/pengine/common.c } else if (pcmk__strcase_any_of(role, RSC_ROLE_PROMOTED_S, role 492 lib/pengine/common.c } else if (pcmk__str_eq(role, RSC_ROLE_UNKNOWN_S, pcmk__str_casei)) { role 495 lib/pengine/common.c crm_err("Unknown role: %s", role); role 160 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 204 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 233 lib/pengine/complex.c const char *role = crm_element_value(op, "role"); role 236 lib/pengine/complex.c if ((role == NULL) role 237 lib/pengine/complex.c || pcmk__strcase_any_of(role, RSC_ROLE_STARTED_S, RSC_ROLE_UNPROMOTED_S, role 239 lib/pengine/complex.c role = RSC_ROLE_UNKNOWN_S; role 242 lib/pengine/complex.c key = crm_strdup_printf("%s-%s", name, role); role 602 lib/pengine/complex.c .role = RSC_ROLE_UNKNOWN, role 694 lib/pengine/complex.c (*rsc)->role = RSC_ROLE_STOPPED; role 1146 lib/pengine/complex.c || (rsc->role > RSC_ROLE_STOPPED)) { role 1166 lib/pengine/complex.c pe__set_next_role(pe_resource_t *rsc, enum rsc_role_e role, const char *why) role 1169 lib/pengine/complex.c if (rsc->next_role != role) { role 1171 lib/pengine/complex.c rsc->id, role2text(rsc->next_role), role2text(role), why); role 1172 lib/pengine/complex.c rsc->next_role = role; role 481 lib/pengine/group.c enum rsc_role_e role = child_rsc->fns->state(child_rsc, current); role 483 lib/pengine/group.c if (role > group_role) { role 484 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 420 lib/pengine/native.c enum rsc_role_e role = rsc->role; role 422 lib/pengine/native.c if ((role == RSC_ROLE_STARTED) role 426 lib/pengine/native.c role = RSC_ROLE_UNPROMOTED; role 428 lib/pengine/native.c return role; role 587 lib/pengine/native.c enum rsc_role_e role = native_displayable_role(rsc); role 590 lib/pengine/native.c if (role > RSC_ROLE_UNPROMOTED) { role 591 lib/pengine/native.c pcmk__add_word(&outstr, 0, role2text(role)); role 1072 lib/pengine/native.c enum rsc_role_e role = rsc->next_role; role 1075 lib/pengine/native.c role = rsc->role; role 1077 lib/pengine/native.c pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(role)); role 1078 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 657 lib/pengine/pe_actions.c .role = RSC_ROLE_UNKNOWN, role 1227 lib/pengine/pe_actions.c .role = RSC_ROLE_UNKNOWN, role 569 lib/pengine/pe_notif.c switch (rsc->role) { role 593 lib/pengine/pe_notif.c rsc->id, pe__node_name(node), role2text(rsc->role)); role 864 lib/pengine/pe_notif.c if ((rsc->role != RSC_ROLE_STOPPED) role 599 lib/pengine/pe_output.c role_desc(enum rsc_role_e role) role 601 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 539 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 1164 lib/pengine/rules.c if (rule_data->role == RSC_ROLE_UNKNOWN) { role 1172 lib/pengine/rules.c if (rule_data->role > RSC_ROLE_STARTED) { role 1177 lib/pengine/rules.c if ((rule_data->role > RSC_ROLE_UNKNOWN) role 1178 lib/pengine/rules.c && (rule_data->role < RSC_ROLE_UNPROMOTED)) { role 1183 lib/pengine/rules.c if (text2role(value) == rule_data->role) { role 1189 lib/pengine/rules.c if ((rule_data->role > RSC_ROLE_UNKNOWN) role 1190 lib/pengine/rules.c && (rule_data->role < RSC_ROLE_UNPROMOTED)) { role 1193 lib/pengine/rules.c } else if (text2role(value) != rule_data->role) { role 1248 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1250 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); role 1254 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 1261 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); role 1265 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, role 1268 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); role 1272 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) role 1274 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); role 1278 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 1285 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); role 1290 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, role 1293 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, match_data); role 1304 lib/pengine/rules.c .role = RSC_ROLE_UNKNOWN, role 221 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 1205 lib/pengine/unpack.c if ((rsc == NULL) || (rsc->role != RSC_ROLE_STARTED) role 1206 lib/pengine/unpack.c || (rsc->container->role != RSC_ROLE_STARTED)) { role 1223 lib/pengine/unpack.c && (rsc->role != RSC_ROLE_STARTED))) { role 1497 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED) { role 1504 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED && rsc->next_role == RSC_ROLE_STOPPED) { role 1522 lib/pengine/unpack.c } else if (rsc->role == RSC_ROLE_STOPPED role 1523 lib/pengine/unpack.c || (container && container->role == RSC_ROLE_STOPPED)) { role 1994 lib/pengine/unpack.c rsc->id, role2text(rsc->role), pe__node_name(node), role 1998 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_UNKNOWN) { role 2020 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED role 2121 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2139 lib/pengine/unpack.c } else if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2164 lib/pengine/unpack.c if (rsc->role > RSC_ROLE_STOPPED) { role 2187 lib/pengine/unpack.c if (rsc->role != RSC_ROLE_STOPPED && rsc->role != RSC_ROLE_UNKNOWN) { role 2239 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STOPPED role 2245 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2456 lib/pengine/unpack.c saved_role = rsc->role; role 2457 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNKNOWN; role 2486 lib/pengine/unpack.c if (saved_role > rsc->role) { role 2487 lib/pengine/unpack.c rsc->role = saved_role; role 2583 lib/pengine/unpack.c rsc->role = RSC_ROLE_UNPROMOTED; role 2585 lib/pengine/unpack.c rsc->role = RSC_ROLE_STARTED; role 2898 lib/pengine/unpack.c rsc->role = RSC_ROLE_STOPPED; role 3001 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STARTED; role 3076 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STARTED; role 3143 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STARTED; role 3437 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_PROMOTED; role 3441 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_PROMOTED; role 3446 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STOPPED; role 3454 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_UNPROMOTED; role 3461 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STOPPED; role 3463 lib/pengine/unpack.c } else if (history->rsc->role < RSC_ROLE_STARTED) { role 3470 lib/pengine/unpack.c history->rsc->id, role2text(history->rsc->role), role 3674 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STOPPED; role 3695 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_PROMOTED; role 3701 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_PROMOTED; role 4063 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STOPPED; role 4075 lib/pengine/unpack.c if (history->rsc->role < RSC_ROLE_STARTED) { role 4080 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STARTED; role 4084 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STOPPED; role 4089 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_PROMOTED; role 4098 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_UNPROMOTED; role 4102 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_STARTED; role 4109 lib/pengine/unpack.c } else if (history->rsc->role < RSC_ROLE_STARTED) { role 4247 lib/pengine/unpack.c if (history->rsc->role <= RSC_ROLE_STOPPED) { role 4248 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_UNKNOWN; role 4400 lib/pengine/unpack.c history->rsc->role = RSC_ROLE_PROMOTED; role 4634 lib/pengine/unpack.c role2text(rsc->role), role2text(rsc->next_role)); role 4645 lib/pengine/unpack.c .role = RSC_ROLE_UNKNOWN, role 449 lib/pengine/utils.c get_target_role(const pe_resource_t *rsc, enum rsc_role_e *role) role 454 lib/pengine/utils.c CRM_CHECK(role != NULL, return FALSE); role 483 lib/pengine/utils.c *role = local_role;