attr 138 daemons/attrd/attrd_alerts.c const char *attr, const char *value) attr 144 daemons/attrd/attrd_alerts.c node, nodeid, attr, value); attr 241 daemons/attrd/attrd_commands.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); attr 246 daemons/attrd/attrd_commands.c if ((attr == NULL) && regex) { attr 256 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&aIter, (gpointer *) & attr, NULL)) { attr 257 daemons/attrd/attrd_commands.c int status = regexec(r_patt, attr, 0, NULL, 0); attr 260 daemons/attrd/attrd_commands.c crm_trace("Matched %s with %s", attr, regex); attr 261 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, attr); attr 272 daemons/attrd/attrd_commands.c } else if (attr == NULL) { attr 285 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); attr 298 daemons/attrd/attrd_commands.c crm_info("Expanded %s=%s to %d", attr, value, int_value); attr 306 daemons/attrd/attrd_commands.c crm_debug("Broadcasting %s[%s]=%s%s", attr, host, value, attr 399 daemons/attrd/attrd_commands.c static xmlNode *build_query_reply(const char *attr, const char *host) attr 411 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); attr 416 daemons/attrd/attrd_commands.c crm_xml_add(reply, PCMK__XA_ATTR_NAME, attr); attr 468 daemons/attrd/attrd_commands.c const char *attr; attr 478 daemons/attrd/attrd_commands.c attr = crm_element_value(query, PCMK__XA_ATTR_NAME); attr 479 daemons/attrd/attrd_commands.c if (attr == NULL) { attr 486 daemons/attrd/attrd_commands.c reply = build_query_reply(attr, crm_element_value(query, attr 523 daemons/attrd/attrd_commands.c char *attr = NULL; attr 541 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&iter, (gpointer *) &attr, NULL)) { attr 542 daemons/attrd/attrd_commands.c if (regexec(®ex, attr, 0, NULL, 0) == 0) { attr 544 daemons/attrd/attrd_commands.c attr, (rsc? rsc : "all resources")); attr 545 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, attr); attr 780 daemons/attrd/attrd_commands.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); attr 784 daemons/attrd/attrd_commands.c if (attr == NULL) { attr 794 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); attr 799 daemons/attrd/attrd_commands.c crm_warn("Could not update %s: attribute not found", attr); attr 811 daemons/attrd/attrd_commands.c attr); attr 818 daemons/attrd/attrd_commands.c attr, dampen, dvalue); attr 826 daemons/attrd/attrd_commands.c a->timer = mainloop_timer_add(attr, a->timeout_ms, FALSE, attr 829 daemons/attrd/attrd_commands.c attr, dampen, dvalue); attr 832 daemons/attrd/attrd_commands.c crm_info("Update attribute %s to remove delay", attr); attr 850 daemons/attrd/attrd_commands.c crm_debug("Setting %s for all hosts to %s", attr, value); attr 869 daemons/attrd/attrd_commands.c attr, host, v->current, value, peer->uname); attr 873 daemons/attrd/attrd_commands.c build_attribute_xml(sync, attr, a->set, a->uuid, a->timeout_ms, a->user, attr 884 daemons/attrd/attrd_commands.c attr, host, v->current? v->current : "(unset)", value? value : "(unset)", peer->uname); attr 891 daemons/attrd/attrd_commands.c crm_trace("Delayed write out (%dms) for %s", a->timeout_ms, attr); attr 901 daemons/attrd/attrd_commands.c crm_trace("Unchanged %s[%s] from %s is %s(Set the forced write flag)", attr, host, peer->uname, value); attr 904 daemons/attrd/attrd_commands.c crm_trace("Unchanged %s[%s] from %s is %s", attr, host, peer->uname, value); attr 69 daemons/attrd/pacemaker-attrd.h const char *attr, const char *value); attr 90 daemons/controld/controld_te_callbacks.c xmlNode *attr = getXpathResult(xpathObj, lpc); attr 91 daemons/controld/controld_te_callbacks.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 95 daemons/controld/controld_te_callbacks.c value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 99 daemons/controld/controld_te_callbacks.c abort_transition(INFINITY, tg_restart, "Transient attribute: update", attr); attr 100 daemons/controld/controld_te_callbacks.c crm_log_xml_trace(attr, "Abort"); attr 709 include/config.h # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) attr 711 include/config.h # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr attr 39 include/crm/cib/util.h int find_nvpair_attr_delegate(cib_t * the_cib, const char *attr, attr 164 include/crm/cluster.h void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node); attr 74 include/crm/fencing/internal.h const char *attr, const char *value, attr 349 include/crm/stonith-ng.h const char *attr, const char *value, int level); attr 369 include/crm/stonith-ng.h const char *attr, const char *value, attr 47 include/pcmki/pcmki_sched_allocate.h GHashTable *nodes, const char *attr, attr 51 include/pcmki/pcmki_sched_allocate.h GHashTable *nodes, const char *attr, attr 48 lib/cib/cib_attrs.c find_nvpair_attr_delegate(cib_t * the_cib, const char *attr, const char *section, attr 155 lib/cib/cib_attrs.c const char *tmp = crm_element_value(xml_search, attr); attr 227 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) attr 231 lib/cluster/cluster.c crm_xml_add(xml, attr, uuid_calc); attr 59 lib/common/acl.c const char *attr = crm_element_value(xml, XML_ACL_ATTR_ATTRIBUTE); attr 99 lib/common/acl.c if (ref || attr) { attr 110 lib/common/acl.c if (ref && attr) { attr 115 lib/common/acl.c if (attr) { attr 117 lib/common/acl.c "@%s", attr); attr 120 lib/common/acl.c if (ref || attr) { attr 649 lib/common/acl.c xmlAttr *attr = xmlHasProp(xml, (pcmkXmlStr) name); attr 651 lib/common/acl.c if (attr && mode == xpf_acl_create) { attr 151 lib/common/crmcommon_private.h pcmk__xml_attr_value(const xmlAttr *attr) attr 153 lib/common/crmcommon_private.h return ((attr == NULL) || (attr->children == NULL))? NULL attr 154 lib/common/crmcommon_private.h : (const char *) attr->children->content; attr 320 lib/common/nvpair.c xmlAttr *attr = NULL; attr 354 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); attr 356 lib/common/nvpair.c pcmk__mark_xml_attr_dirty(attr); attr 359 lib/common/nvpair.c CRM_CHECK(attr && attr->children && attr->children->content, return NULL); attr 360 lib/common/nvpair.c return (char *)attr->children->content; attr 377 lib/common/nvpair.c xmlAttr *attr = NULL; attr 404 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); attr 406 lib/common/nvpair.c pcmk__mark_xml_attr_dirty(attr); attr 408 lib/common/nvpair.c CRM_CHECK(attr && attr->children && attr->children->content, return NULL); attr 409 lib/common/nvpair.c return (char *) attr->children->content; attr 525 lib/common/nvpair.c xmlAttr *attr = NULL; attr 540 lib/common/nvpair.c attr = xmlHasProp((xmlNode *) data, (pcmkXmlStr) name); attr 541 lib/common/nvpair.c if (!attr || !attr->children) { attr 544 lib/common/nvpair.c return (const char *) attr->children->content; attr 117 lib/common/patchset.c xmlNode *attr = NULL; attr 139 lib/common/patchset.c attr = create_xml_node(change, XML_DIFF_ATTR); attr 141 lib/common/patchset.c crm_xml_add(attr, XML_NVPAIR_ATTR_NAME, (const char *)pIter->name); attr 143 lib/common/patchset.c crm_xml_add(attr, XML_DIFF_OP, "unset"); attr 146 lib/common/patchset.c crm_xml_add(attr, XML_DIFF_OP, "set"); attr 149 lib/common/patchset.c crm_xml_add(attr, XML_NVPAIR_ATTR_VALUE, value); attr 380 lib/common/xml.c const char *attr = (id == NULL)? NULL : XML_ATTR_ID; attr 382 lib/common/xml.c return pcmk__xe_match(haystack, crm_element_name(needle), attr, id); attr 1399 lib/common/xml.c dump_xml_attr(xmlAttrPtr attr, int options, char **buffer, int *offset, int *max) attr 1406 lib/common/xml.c if (attr == NULL || attr->children == NULL) { attr 1410 lib/common/xml.c p = attr->_private; attr 1415 lib/common/xml.c p_name = (const char *)attr->name; attr 1416 lib/common/xml.c p_value = crm_xml_escape((const char *)attr->children->content); attr 2027 lib/common/xml.c xmlAttr *attr = xmlHasProp(obj, (pcmkXmlStr) name); attr 2029 lib/common/xml.c p = attr->_private; attr 2065 lib/common/xml.c for (xmlAttr *attr = pcmk__first_xml_attr(xml); attr; attr = attr->next) { attr 2066 lib/common/xml.c pcmk__set_xml_flags((xml_private_t *) (attr->_private), flag); attr 2084 lib/common/xml.c xmlAttr *attr = NULL; attr 2090 lib/common/xml.c attr = xmlSetProp(new_xml, (pcmkXmlStr) attr_name, (pcmkXmlStr) old_value); attr 2094 lib/common/xml.c p = attr->_private; attr 343 lib/fencing/st_client.c const char *attr, const char *value, int level) attr 348 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return -EINVAL); attr 360 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_ATTRIBUTE, attr); attr 395 lib/fencing/st_client.c const char *attr, const char *value, attr 402 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return NULL); attr 418 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_ATTRIBUTE, attr); attr 437 lib/fencing/st_client.c const char *attr, const char *value, attr 441 lib/fencing/st_client.c xmlNode *data = create_level_registration_xml(node, pattern, attr, value, attr 639 lib/pacemaker/pcmk_sched_constraints.c tag_to_set(xmlNode * xml_obj, xmlNode ** rsc_set, const char * attr, attr 650 lib/pacemaker/pcmk_sched_constraints.c CRM_CHECK((xml_obj != NULL) && (attr != NULL), return FALSE); attr 659 lib/pacemaker/pcmk_sched_constraints.c id = crm_element_value(xml_obj, attr); attr 706 lib/pacemaker/pcmk_sched_constraints.c xml_remove_prop(xml_obj, attr); attr 2476 lib/pacemaker/pcmk_sched_constraints.c const char *attr = crm_element_value(xml_obj, XML_COLOC_ATTR_NODE_ATTR); attr 2539 lib/pacemaker/pcmk_sched_constraints.c rsc_colocation_new(id, attr, score_i, rsc_lh, rsc_rh, state_lh, state_rh, data_set); attr 497 lib/pacemaker/pcmk_sched_group.c GHashTable *nodes, const char *attr, float factor, attr 513 lib/pacemaker/pcmk_sched_group.c group_data->first_child->cmds->merge_weights(group_data->first_child, rhs, nodes, attr, attr 207 lib/pacemaker/pcmk_sched_native.c best_node_score_matching_attr(const pe_resource_t *rsc, const char *attr, attr 220 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(value, pe_node_attribute_raw(node, attr), pcmk__str_casei)) { attr 227 lib/pacemaker/pcmk_sched_native.c if (!pcmk__str_eq(attr, CRM_ATTR_UNAME, pcmk__str_casei)) { attr 230 lib/pacemaker/pcmk_sched_native.c rsc->id, attr, value); attr 234 lib/pacemaker/pcmk_sched_native.c best_node, rsc->id, best_score, attr, value); attr 256 lib/pacemaker/pcmk_sched_native.c const char *attr, float factor, attr 262 lib/pacemaker/pcmk_sched_native.c if (attr == NULL) { attr 263 lib/pacemaker/pcmk_sched_native.c attr = CRM_ATTR_UNAME; attr 274 lib/pacemaker/pcmk_sched_native.c score = best_node_score_matching_attr(rsc, attr, attr 275 lib/pacemaker/pcmk_sched_native.c pe_node_attribute_raw(node, attr)); attr 358 lib/pacemaker/pcmk_sched_native.c GHashTable *nodes, const char *attr, float factor, attr 378 lib/pacemaker/pcmk_sched_native.c work = pcmk__native_merge_weights(last_rsc, rhs, NULL, attr, factor, attr 399 lib/pacemaker/pcmk_sched_native.c work = pcmk__native_merge_weights(rsc->children->data, rhs, work, attr, attr 406 lib/pacemaker/pcmk_sched_native.c add_node_scores_matching_attr(work, rsc, attr, factor, attr 957 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(GHashTable * hash, pe_node_t * other, const char *attr, int score) attr 966 lib/pacemaker/pcmk_sched_promotable.c } else if (attr == NULL) { attr 967 lib/pacemaker/pcmk_sched_promotable.c attr = CRM_ATTR_UNAME; attr 970 lib/pacemaker/pcmk_sched_promotable.c value = pe_node_attribute_raw(other, attr); attr 973 lib/pacemaker/pcmk_sched_promotable.c const char *tmp = pe_node_attribute_raw(node, attr); attr 108 lib/pengine/rules.c const char *attr = NULL; attr 110 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); attr 128 lib/pengine/rules.c } else if (pcmk__strcase_any_of(attr, CRM_ATTR_UNAME, CRM_ATTR_KIND, CRM_ATTR_ID, NULL)) { attr 131 lib/pengine/rules.c } else if (pcmk__str_eq(attr, CRM_ATTR_ROLE, pcmk__str_casei)) { attr 135 lib/pengine/rules.c } else if (pcmk__str_eq(attr, CRM_ATTR_RA_VERSION, pcmk__str_casei)) { attr 1116 lib/pengine/rules.c const char *attr = NULL; attr 1120 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); attr 1126 lib/pengine/rules.c if (attr == NULL || op == NULL) { attr 1128 lib/pengine/rules.c " (\'%s\' \'%s\' \'%s\')", crm_str(attr), crm_str(op), crm_str(value)); attr 1134 lib/pengine/rules.c char *resolved_attr = pe_expand_re_matches(attr, rule_data->match_data->re); attr 1137 lib/pengine/rules.c attr = (const char *) resolved_attr; attr 1161 lib/pengine/rules.c h_val = (const char *)g_hash_table_lookup(rule_data->node_hash, attr); attr 1165 lib/pengine/rules.c free((char *)attr); attr 1166 lib/pengine/rules.c attr = NULL; attr 121 lib/pengine/rules_alerts.c xmlNode *attr; attr 126 lib/pengine/rules_alerts.c for (attr = first_named_child(event_type, XML_CIB_TAG_ALERT_ATTR); attr 127 lib/pengine/rules_alerts.c attr != NULL; attr 128 lib/pengine/rules_alerts.c attr = crm_next_same_xml(attr)) { attr 130 lib/pengine/rules_alerts.c attr_name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 459 lib/pengine/unpack.c xmlNode *attr = NULL; attr 477 lib/pengine/unpack.c for (attr = pcmk__xe_first_child(attr_set); attr != NULL; attr 478 lib/pengine/unpack.c attr = pcmk__xe_next(attr)) { attr 479 lib/pengine/unpack.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 480 lib/pengine/unpack.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 944 lib/pengine/utils.c xmlNode *attr = NULL; attr 949 lib/pengine/utils.c for (attr = pcmk__xe_first_child(attrs); attr != NULL; attr 950 lib/pengine/utils.c attr = pcmk__xe_next(attr)) { attr 952 lib/pengine/utils.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 953 lib/pengine/utils.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 958 lib/pengine/utils.c crm_xml_add_int(attr, XML_NVPAIR_ATTR_VALUE, start_delay); attr 964 lib/pengine/utils.c crm_xml_add(attr, XML_NVPAIR_ATTR_NAME, attr 966 lib/pengine/utils.c crm_xml_add_ll(attr, XML_NVPAIR_ATTR_VALUE, start_delay); attr 971 lib/pengine/utils.c crm_xml_add_int(attr, XML_NVPAIR_ATTR_VALUE, timeout_ms); attr 48 tools/crm_resource.h int cli_resource_print_attribute(pe_resource_t *rsc, const char *attr, const char *attr_set_type, attr 50 tools/crm_resource.h int cli_resource_print_property(pe_resource_t *rsc, const char *attr, attr 282 tools/crm_resource_print.c cli_resource_print_attribute(pe_resource_t *rsc, const char *attr, const char *attr_set_type, attr 293 tools/crm_resource_print.c " returning the default value for %s", rsc->id, crm_str(attr)); attr 311 tools/crm_resource_print.c crm_debug("Looking up %s in %s", attr, rsc->id); attr 312 tools/crm_resource_print.c value = g_hash_table_lookup(params, attr); attr 318 tools/crm_resource_print.c CMD_ERR("Attribute '%s' not found for '%s'", attr, rsc->id); attr 327 tools/crm_resource_print.c cli_resource_print_property(pe_resource_t *rsc, const char *attr, pe_working_set_t * data_set) attr 329 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); attr 79 tools/crm_resource_runtime.c find_resource_attr(cib_t * the_cib, const char *attr, const char *rsc, const char *attr_set_type, attr 144 tools/crm_resource_runtime.c const char *tmp = crm_element_value(xml_search, attr);