rule 40 include/crm/pengine/rules.h gboolean pe_test_rule(xmlNode *rule, GHashTable *node_hash, rule 71 include/crm/pengine/rules.h gboolean pe_eval_expr(xmlNode *rule, pe_rule_eval_data_t *rule_data, rule 30 include/crm/pengine/rules_compat.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 34 include/crm/pengine/rules_compat.h gboolean pe_test_rule_re(xmlNode *rule, GHashTable *node_hash, rule 39 include/crm/pengine/rules_compat.h gboolean pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, rule 1036 lib/pacemaker/pcmk_sched_constraints.c get_node_score(const char *rule, const char *score, gboolean raw, pe_node_t * node, pe_resource_t *rsc) rule 1041 lib/pacemaker/pcmk_sched_constraints.c pe_err("Rule %s: no score specified. Assuming 0.", rule); rule 1051 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, score); rule 1056 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, attr_score, score); rule 55 lib/pengine/rules.c pe_test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 68 lib/pengine/rules.c return pe_eval_expr(rule, &rule_data, next_change); rule 416 lib/pengine/rules.c xmlNode * rule = NULL; rule 419 lib/pengine/rules.c for (rule = pcmk__xe_first_child(attr_set); rule != NULL; rule 420 lib/pengine/rules.c rule = pcmk__xe_next(rule)) { rule 422 lib/pengine/rules.c if (pcmk__str_eq((const char *)rule->name, XML_TAG_RULE, rule 424 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 428 lib/pengine/rules.c return rule; rule 441 lib/pengine/rules.c xmlNode *rule = NULL; rule 450 lib/pengine/rules.c rule = get_versioned_rule(attr_set_copy); rule 451 lib/pengine/rules.c if (!rule) { rule 456 lib/pengine/rules.c expr = pcmk__xe_first_child(rule); rule 745 lib/pengine/rules.c for (xmlNode *rule = first_named_child(ruleset, XML_TAG_RULE); rule 746 lib/pengine/rules.c rule != NULL; rule = crm_next_same_xml(rule)) { rule 749 lib/pengine/rules.c if (pe_eval_expr(rule, rule_data, next_change)) { rule 764 lib/pengine/rules.c pe_eval_expr(xmlNode *rule, pe_rule_eval_data_t *rule_data, crm_time_t *next_change) rule 773 lib/pengine/rules.c rule = expand_idref(rule, NULL); rule 774 lib/pengine/rules.c value = crm_element_value(rule, XML_RULE_ATTR_BOOLEAN_OP); rule 780 lib/pengine/rules.c crm_trace("Testing rule %s", ID(rule)); rule 781 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 788 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); rule 792 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); rule 798 lib/pengine/rules.c crm_err("Invalid Rule %s: rules must contain at least one expression", ID(rule)); rule 801 lib/pengine/rules.c crm_trace("Rule %s %s", ID(rule), passed ? "passed" : "failed"); rule 1348 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) rule 1350 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); rule 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) rule 1361 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); rule 1365 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 1368 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); rule 130 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 131 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 133 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rule 134 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_MINUS_INFINITY_S); rule 135 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 143 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 196 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 197 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 199 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rule 200 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_INFINITY_S); rule 201 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 209 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 34 tools/crm_rule.c char *rule; rule 63 tools/crm_rule.c { "rule", 'r', 0, G_OPTION_ARG_STRING, &options.rule, rule 263 tools/crm_rule.c if (options.rule == NULL) { rule 346 tools/crm_rule.c rc = crm_rule_check(data_set, options.rule, rule_date);