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 85 include/crm/pengine/rules.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 89 include/crm/pengine/rules.h gboolean pe_test_rule_re(xmlNode *rule, GHashTable *node_hash, rule 94 include/crm/pengine/rules.h gboolean pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, rule 1041 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 1046 lib/pacemaker/pcmk_sched_constraints.c pe_err("Rule %s: no score specified. Assuming 0.", rule); rule 1056 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, score); rule 1061 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 501 lib/pengine/rules.c xmlNode * rule = NULL; rule 504 lib/pengine/rules.c for (rule = pcmk__xe_first_child(attr_set); rule != NULL; rule 505 lib/pengine/rules.c rule = pcmk__xe_next(rule)) { rule 507 lib/pengine/rules.c if (pcmk__str_eq((const char *)rule->name, XML_TAG_RULE, rule 509 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 513 lib/pengine/rules.c return rule; rule 526 lib/pengine/rules.c xmlNode *rule = NULL; rule 535 lib/pengine/rules.c rule = get_versioned_rule(attr_set_copy); rule 536 lib/pengine/rules.c if (!rule) { rule 541 lib/pengine/rules.c expr = pcmk__xe_first_child(rule); rule 830 lib/pengine/rules.c for (xmlNode *rule = first_named_child(ruleset, XML_TAG_RULE); rule 831 lib/pengine/rules.c rule != NULL; rule = crm_next_same_xml(rule)) { rule 834 lib/pengine/rules.c if (pe_eval_expr(rule, rule_data, next_change)) { rule 849 lib/pengine/rules.c pe_eval_expr(xmlNode *rule, pe_rule_eval_data_t *rule_data, crm_time_t *next_change) rule 858 lib/pengine/rules.c rule = expand_idref(rule, NULL); rule 859 lib/pengine/rules.c value = crm_element_value(rule, XML_RULE_ATTR_BOOLEAN_OP); rule 865 lib/pengine/rules.c crm_trace("Testing rule %s", ID(rule)); rule 866 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 873 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); rule 877 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); rule 883 lib/pengine/rules.c crm_err("Invalid Rule %s: rules must contain at least one expression", ID(rule)); rule 886 lib/pengine/rules.c crm_trace("Rule %s %s", ID(rule), passed ? "passed" : "failed"); rule 1367 lib/pengine/rules.c gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 1369 lib/pengine/rules.c gboolean pe_test_rule_re(xmlNode *rule, GHashTable *node_hash, rule 1372 lib/pengine/rules.c gboolean pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, rule 1395 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) rule 1397 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); rule 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) rule 1408 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); rule 1412 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 1415 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); rule 116 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 117 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 119 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rule 120 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_MINUS_INFINITY_S); rule 121 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 129 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 181 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 182 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 184 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rule 185 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_INFINITY_S); rule 186 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 194 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 33 tools/crm_rule.c char *rule; rule 62 tools/crm_rule.c { "rule", 'r', 0, G_OPTION_ARG_STRING, &options.rule, rule 254 tools/crm_rule.c if (options.rule == NULL) { rule 337 tools/crm_rule.c rc = crm_rule_check(data_set, options.rule, rule_date);