rule 54 include/crm/pengine/rules.h gboolean test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now); rule 56 include/crm/pengine/rules.h gboolean pe_test_rule_re(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, rule 59 include/crm/pengine/rules.h gboolean pe_test_rule_full(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, rule 47 lib/pengine/rules.c xmlNode *rule = NULL; rule 49 lib/pengine/rules.c for (rule = __xml_first_child(ruleset); rule != NULL; rule = __xml_next_element(rule)) { rule 50 lib/pengine/rules.c if (crm_str_eq((const char *)rule->name, XML_TAG_RULE, TRUE)) { rule 52 lib/pengine/rules.c if (test_rule(rule, node_hash, RSC_ROLE_UNKNOWN, now)) { rule 62 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) rule 64 lib/pengine/rules.c return pe_test_rule_full(rule, node_hash, role, now, NULL); rule 68 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) rule 75 lib/pengine/rules.c return pe_test_rule_full(rule, node_hash, role, now, &match_data); rule 79 lib/pengine/rules.c pe_test_rule_full(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_match_data_t * match_data) rule 88 lib/pengine/rules.c rule = expand_idref(rule, NULL); rule 89 lib/pengine/rules.c value = crm_element_value(rule, XML_RULE_ATTR_BOOLEAN_OP); rule 95 lib/pengine/rules.c crm_trace("Testing rule %s", ID(rule)); rule 96 lib/pengine/rules.c for (expr = __xml_first_child(rule); expr != NULL; expr = __xml_next_element(expr)) { rule 101 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); rule 105 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); rule 111 lib/pengine/rules.c crm_err("Invalid Rule %s: rules must contain at least one expression", ID(rule)); rule 114 lib/pengine/rules.c crm_trace("Rule %s %s", ID(rule), passed ? "passed" : "failed"); rule 769 lib/pengine/rules.c xmlNode * rule = NULL; rule 772 lib/pengine/rules.c for (rule = __xml_first_child(attr_set); rule != NULL; rule = __xml_next_element(rule)) { rule 773 lib/pengine/rules.c if (crm_str_eq((const char *)rule->name, XML_TAG_RULE, TRUE)) { rule 774 lib/pengine/rules.c for (expr = __xml_first_child(rule); expr != NULL; expr = __xml_next_element(expr)) { rule 776 lib/pengine/rules.c return rule; rule 789 lib/pengine/rules.c xmlNode *rule = NULL; rule 798 lib/pengine/rules.c rule = get_versioned_rule(attr_set_copy); rule 799 lib/pengine/rules.c if (!rule) { rule 804 lib/pengine/rules.c expr = __xml_first_child(rule); rule 959 pengine/constraints.c get_node_score(const char *rule, const char *score, gboolean raw, node_t * node, resource_t *rsc) rule 964 pengine/constraints.c pe_err("Rule %s: no score specified. Assuming 0.", rule); rule 974 pengine/constraints.c rule, node->details->uname, score); rule 979 pengine/constraints.c rule, node->details->uname, attr_score, score); rule 114 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 115 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 117 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rule 118 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, MINUS_INFINITY_S); rule 119 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 127 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 177 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 178 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 180 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rule 181 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, INFINITY_S); rule 182 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 190 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression");