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 239 daemons/attrd/attrd_commands.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); attr 244 daemons/attrd/attrd_commands.c if ((attr == NULL) && regex) { attr 254 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&aIter, (gpointer *) & attr, NULL)) { attr 255 daemons/attrd/attrd_commands.c int status = regexec(r_patt, attr, 0, NULL, 0); attr 258 daemons/attrd/attrd_commands.c crm_trace("Matched %s with %s", attr, regex); attr 259 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, attr); attr 270 daemons/attrd/attrd_commands.c } else if (attr == NULL) { attr 283 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); attr 296 daemons/attrd/attrd_commands.c crm_info("Expanded %s=%s to %d", attr, value, int_value); attr 304 daemons/attrd/attrd_commands.c crm_debug("Broadcasting %s[%s]=%s%s", attr, host, value, attr 397 daemons/attrd/attrd_commands.c static xmlNode *build_query_reply(const char *attr, const char *host) attr 409 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); attr 414 daemons/attrd/attrd_commands.c crm_xml_add(reply, PCMK__XA_ATTR_NAME, attr); attr 466 daemons/attrd/attrd_commands.c const char *attr; attr 476 daemons/attrd/attrd_commands.c attr = crm_element_value(query, PCMK__XA_ATTR_NAME); attr 477 daemons/attrd/attrd_commands.c if (attr == NULL) { attr 484 daemons/attrd/attrd_commands.c reply = build_query_reply(attr, crm_element_value(query, attr 521 daemons/attrd/attrd_commands.c char *attr = NULL; attr 539 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&iter, (gpointer *) &attr, NULL)) { attr 540 daemons/attrd/attrd_commands.c if (regexec(®ex, attr, 0, NULL, 0) == 0) { attr 542 daemons/attrd/attrd_commands.c attr, (rsc? rsc : "all resources")); attr 543 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, attr); attr 783 daemons/attrd/attrd_commands.c const char *attr = crm_element_value(xml, PCMK__XA_ATTR_NAME); attr 787 daemons/attrd/attrd_commands.c if (attr == NULL) { attr 797 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); attr 802 daemons/attrd/attrd_commands.c crm_warn("Could not update %s: attribute not found", attr); attr 814 daemons/attrd/attrd_commands.c attr); attr 821 daemons/attrd/attrd_commands.c attr, dampen, dvalue); attr 829 daemons/attrd/attrd_commands.c a->timer = mainloop_timer_add(attr, a->timeout_ms, FALSE, attr 832 daemons/attrd/attrd_commands.c attr, dampen, dvalue); attr 835 daemons/attrd/attrd_commands.c crm_info("Update attribute %s to remove delay", attr); attr 853 daemons/attrd/attrd_commands.c crm_debug("Setting %s for all hosts to %s", attr, value); attr 872 daemons/attrd/attrd_commands.c attr, host, v->current, value, peer->uname); attr 876 daemons/attrd/attrd_commands.c build_attribute_xml(sync, attr, a->set, a->uuid, a->timeout_ms, a->user, attr 887 daemons/attrd/attrd_commands.c attr, host, v->current? v->current : "(unset)", value? value : "(unset)", peer->uname); attr 893 daemons/attrd/attrd_commands.c && pcmk__str_eq(attr, XML_CIB_ATTR_SHUTDOWN, pcmk__str_none)) { attr 905 daemons/attrd/attrd_commands.c crm_trace("Delayed write out (%dms) for %s", a->timeout_ms, attr); attr 915 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 918 daemons/attrd/attrd_commands.c crm_trace("Unchanged %s[%s] from %s is %s", attr, host, peer->uname, value); attr 72 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 688 include/config.h # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) attr 690 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 277 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) attr 279 lib/cluster/cluster.c crm_xml_add(xml, attr, crm_peer_uuid(node)); 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 632 lib/common/acl.c xmlAttr *attr = xmlHasProp(xml, (pcmkXmlStr) name); attr 634 lib/common/acl.c if (attr && mode == xpf_acl_create) { attr 145 lib/common/crmcommon_private.h pcmk__xml_attr_value(const xmlAttr *attr) attr 147 lib/common/crmcommon_private.h return ((attr == NULL) || (attr->children == NULL))? NULL attr 148 lib/common/crmcommon_private.h : (const char *) attr->children->content; attr 327 lib/common/nvpair.c xmlAttr *attr = NULL; attr 361 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); attr 363 lib/common/nvpair.c pcmk__mark_xml_attr_dirty(attr); attr 366 lib/common/nvpair.c CRM_CHECK(attr && attr->children && attr->children->content, return NULL); attr 367 lib/common/nvpair.c return (char *)attr->children->content; attr 384 lib/common/nvpair.c xmlAttr *attr = NULL; attr 411 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); attr 413 lib/common/nvpair.c pcmk__mark_xml_attr_dirty(attr); attr 415 lib/common/nvpair.c CRM_CHECK(attr && attr->children && attr->children->content, return NULL); attr 416 lib/common/nvpair.c return (char *) attr->children->content; attr 532 lib/common/nvpair.c xmlAttr *attr = NULL; attr 547 lib/common/nvpair.c attr = xmlHasProp((xmlNode *) data, (pcmkXmlStr) name); attr 548 lib/common/nvpair.c if (!attr || !attr->children) { attr 551 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 638 lib/common/patchset.c not_id(xmlAttrPtr attr, void *user_data) attr 640 lib/common/patchset.c return strcmp((const char *) attr->name, XML_ATTR_ID) != 0; attr 379 lib/common/xml.c const char *attr = (id == NULL)? NULL : XML_ATTR_ID; attr 381 lib/common/xml.c return pcmk__xe_match(haystack, crm_element_name(needle), attr, id); attr 1420 lib/common/xml.c dump_xml_attr(xmlAttrPtr attr, int options, char **buffer, int *offset, int *max) attr 1427 lib/common/xml.c if (attr == NULL || attr->children == NULL) { attr 1431 lib/common/xml.c p = attr->_private; attr 1436 lib/common/xml.c p_name = (const char *)attr->name; attr 1437 lib/common/xml.c p_value = crm_xml_escape((const char *)attr->children->content); attr 2044 lib/common/xml.c xmlAttr *attr = xmlHasProp(obj, (pcmkXmlStr) name); attr 2046 lib/common/xml.c p = attr->_private; attr 2082 lib/common/xml.c for (xmlAttr *attr = pcmk__xe_first_attr(xml); attr; attr = attr->next) { attr 2083 lib/common/xml.c pcmk__set_xml_flags((xml_private_t *) (attr->_private), flag); attr 2101 lib/common/xml.c xmlAttr *attr = NULL; attr 2107 lib/common/xml.c attr = xmlSetProp(new_xml, (pcmkXmlStr) attr_name, (pcmkXmlStr) old_value); attr 2111 lib/common/xml.c p = attr->_private; attr 344 lib/fencing/st_client.c const char *attr, const char *value, int level) attr 349 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return -EINVAL); attr 361 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_ATTRIBUTE, attr); attr 396 lib/fencing/st_client.c const char *attr, const char *value, attr 403 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return NULL); attr 419 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_ATTRIBUTE, attr); attr 438 lib/fencing/st_client.c const char *attr, const char *value, attr 442 lib/fencing/st_client.c xmlNode *data = create_level_registration_xml(node, pattern, attr, value, attr 642 lib/pacemaker/pcmk_sched_constraints.c tag_to_set(xmlNode * xml_obj, xmlNode ** rsc_set, const char * attr, attr 653 lib/pacemaker/pcmk_sched_constraints.c CRM_CHECK((xml_obj != NULL) && (attr != NULL), return FALSE); attr 662 lib/pacemaker/pcmk_sched_constraints.c id = crm_element_value(xml_obj, attr); attr 709 lib/pacemaker/pcmk_sched_constraints.c xml_remove_prop(xml_obj, attr); attr 2543 lib/pacemaker/pcmk_sched_constraints.c const char *attr = crm_element_value(xml_obj, XML_COLOC_ATTR_NODE_ATTR); attr 2606 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, attr, score_i, rsc_lh, rsc_rh, state_lh, state_rh, 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 211 lib/pacemaker/pcmk_sched_native.c best_node_score_matching_attr(const pe_resource_t *rsc, const char *attr, attr 224 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(value, pe_node_attribute_raw(node, attr), pcmk__str_casei)) { attr 231 lib/pacemaker/pcmk_sched_native.c if (!pcmk__str_eq(attr, CRM_ATTR_UNAME, pcmk__str_casei)) { attr 234 lib/pacemaker/pcmk_sched_native.c rsc->id, attr, value); attr 238 lib/pacemaker/pcmk_sched_native.c best_node, rsc->id, best_score, attr, value); attr 260 lib/pacemaker/pcmk_sched_native.c const char *attr, float factor, attr 266 lib/pacemaker/pcmk_sched_native.c if (attr == NULL) { attr 267 lib/pacemaker/pcmk_sched_native.c attr = CRM_ATTR_UNAME; attr 278 lib/pacemaker/pcmk_sched_native.c score = best_node_score_matching_attr(rsc, attr, attr 279 lib/pacemaker/pcmk_sched_native.c pe_node_attribute_raw(node, attr)); attr 362 lib/pacemaker/pcmk_sched_native.c GHashTable *nodes, const char *attr, float factor, attr 382 lib/pacemaker/pcmk_sched_native.c work = pcmk__native_merge_weights(last_rsc, rhs, NULL, attr, factor, attr 403 lib/pacemaker/pcmk_sched_native.c work = pcmk__native_merge_weights(rsc->children->data, rhs, work, attr, attr 410 lib/pacemaker/pcmk_sched_native.c add_node_scores_matching_attr(work, rsc, attr, factor, attr 948 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(GHashTable * hash, pe_node_t * other, const char *attr, int score) attr 957 lib/pacemaker/pcmk_sched_promotable.c } else if (attr == NULL) { attr 958 lib/pacemaker/pcmk_sched_promotable.c attr = CRM_ATTR_UNAME; attr 961 lib/pacemaker/pcmk_sched_promotable.c value = pe_node_attribute_raw(other, attr); attr 964 lib/pacemaker/pcmk_sched_promotable.c const char *tmp = pe_node_attribute_raw(node, attr); attr 195 lib/pengine/pe_digest.c is_fence_param(xmlAttrPtr attr, void *user_data) attr 197 lib/pengine/pe_digest.c return pcmk_stonith_param((const char *) attr->name); 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 277 lib/pengine/rules.c update_field(crm_time_t *t, xmlNode *xml, const char *attr, attr 282 lib/pengine/rules.c if ((pcmk__scan_ll(crm_element_value(xml, attr), &value, 0LL) == pcmk_rc_ok) attr 1082 lib/pengine/rules.c const char *attr = NULL; attr 1086 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); attr 1092 lib/pengine/rules.c if (attr == NULL || op == NULL) { attr 1094 lib/pengine/rules.c " (\'%s\' \'%s\' \'%s\')", crm_str(attr), crm_str(op), crm_str(value)); attr 1101 lib/pengine/rules.c char *resolved_attr = pe_expand_re_matches(attr, rule_data->match_data->re); attr 1104 lib/pengine/rules.c attr = (const char *) resolved_attr; attr 1114 lib/pengine/rules.c h_val = (const char *)g_hash_table_lookup(rule_data->node_hash, attr); attr 1118 lib/pengine/rules.c free((char *)attr); attr 1119 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 451 lib/pengine/unpack.c xmlNode *attr = NULL; attr 469 lib/pengine/unpack.c for (attr = pcmk__xe_first_child(attr_set); attr != NULL; attr 470 lib/pengine/unpack.c attr = pcmk__xe_next(attr)) { attr 471 lib/pengine/unpack.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 472 lib/pengine/unpack.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 899 lib/pengine/utils.c xmlNode *attr = NULL; attr 904 lib/pengine/utils.c for (attr = pcmk__xe_first_child(attrs); attr != NULL; attr 905 lib/pengine/utils.c attr = pcmk__xe_next(attr)) { attr 907 lib/pengine/utils.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 908 lib/pengine/utils.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 913 lib/pengine/utils.c crm_xml_add_int(attr, XML_NVPAIR_ATTR_VALUE, start_delay); attr 919 lib/pengine/utils.c crm_xml_add(attr, XML_NVPAIR_ATTR_NAME, attr 921 lib/pengine/utils.c crm_xml_add_ll(attr, XML_NVPAIR_ATTR_VALUE, start_delay); attr 926 lib/pengine/utils.c crm_xml_add_int(attr, XML_NVPAIR_ATTR_VALUE, timeout_ms); attr 135 tools/crm_resource_print.c char *attr = va_arg(args, char *); attr 141 tools/crm_resource_print.c value = g_hash_table_lookup(params, attr); attr 145 tools/crm_resource_print.c out->list_item(out, attr, "%s", value); attr 148 tools/crm_resource_print.c out->err(out, "Attribute '%s' not found for '%s'", attr, rsc->id); attr 158 tools/crm_resource_print.c char *attr = va_arg(args, char *); attr 164 tools/crm_resource_print.c value = g_hash_table_lookup(params, attr); attr 169 tools/crm_resource_print.c out->err(out, "Attribute '%s' not found for '%s'", attr, rsc->id); attr 179 tools/crm_resource_print.c char *attr = va_arg(args, char *); attr 181 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); attr 185 tools/crm_resource_print.c out->list_item(out, attr, "%s", value); attr 196 tools/crm_resource_print.c char *attr = va_arg(args, char *); attr 198 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); attr 104 tools/crm_resource_runtime.c find_resource_attr(pcmk__output_t *out, cib_t * the_cib, const char *attr, attr 172 tools/crm_resource_runtime.c const char *tmp = crm_element_value(xml_search, attr);