attr 66 attrd/attrd_common.h const char *attr, const char *value); attr 150 attrd/attrd_common_alerts.c const char *attr, const char *value) attr 156 attrd/attrd_common_alerts.c node, nodeid, attr, value); attr 204 attrd/commands.c const char *attr = crm_element_value(xml, F_ATTRD_ATTRIBUTE); attr 209 attrd/commands.c if ((attr == NULL) && regex) { attr 219 attrd/commands.c while (g_hash_table_iter_next(&aIter, (gpointer *) & attr, NULL)) { attr 220 attrd/commands.c int status = regexec(r_patt, attr, 0, NULL, 0); attr 223 attrd/commands.c crm_trace("Matched %s with %s", attr, regex); attr 224 attrd/commands.c crm_xml_add(xml, F_ATTRD_ATTRIBUTE, attr); attr 235 attrd/commands.c } else if (attr == NULL) { attr 248 attrd/commands.c a = g_hash_table_lookup(attributes, attr); attr 261 attrd/commands.c crm_info("Expanded %s=%s to %d", attr, value, int_value); attr 274 attrd/commands.c crm_debug("Broadcasting %s[%s] = %s%s", attr, host, value, attr 379 attrd/commands.c static xmlNode *build_query_reply(const char *attr, const char *host) attr 391 attrd/commands.c a = g_hash_table_lookup(attributes, attr); attr 396 attrd/commands.c crm_xml_add(reply, F_ATTRD_ATTRIBUTE, attr); attr 446 attrd/commands.c const char *attr; attr 457 attrd/commands.c attr = crm_element_value(query, F_ATTRD_ATTRIBUTE); attr 458 attrd/commands.c if (attr == NULL) { attr 465 attrd/commands.c reply = build_query_reply(attr, crm_element_value(query, F_ATTRD_HOST)); attr 497 attrd/commands.c char *attr = NULL; attr 515 attrd/commands.c while (g_hash_table_iter_next(&iter, (gpointer *) &attr, NULL)) { attr 516 attrd/commands.c if (regexec(®ex, attr, 0, NULL, 0) == 0) { attr 518 attrd/commands.c attr, (rsc? rsc : "all resources")); attr 519 attrd/commands.c crm_xml_add(xml, F_ATTRD_ATTRIBUTE, attr); attr 740 attrd/commands.c const char *attr = crm_element_value(xml, F_ATTRD_ATTRIBUTE); attr 743 attrd/commands.c if (attr == NULL) { attr 752 attrd/commands.c a = g_hash_table_lookup(attributes, attr); attr 757 attrd/commands.c crm_warn("Could not update %s: attribute not found", attr); attr 769 attrd/commands.c attr); attr 776 attrd/commands.c attr, dampen, dvalue); attr 785 attrd/commands.c a->timer = mainloop_timer_add(attr, a->timeout_ms, FALSE, attr 788 attrd/commands.c attr, dampen, dvalue); attr 791 attrd/commands.c crm_info("Update attribute %s to remove delay", attr); attr 809 attrd/commands.c crm_debug("Setting %s for all hosts to %s", attr, value); attr 828 attrd/commands.c attr, host, v->current, value, peer->uname); attr 832 attrd/commands.c build_attribute_xml(sync, attr, a->set, a->uuid, a->timeout_ms, a->user, attr 843 attrd/commands.c attr, host, v->current, value, peer->uname); attr 850 attrd/commands.c crm_trace("Delayed write out (%dms) for %s", a->timeout_ms, attr); attr 857 attrd/commands.c crm_trace("Unchanged %s[%s] from %s is %s", attr, host, peer->uname, value); attr 173 attrd/legacy.c const char *attr = crm_element_value(msg, F_ATTRD_ATTRIBUTE); attr 176 attrd/legacy.c if (attr == NULL) { attr 181 attrd/legacy.c hash_entry = g_hash_table_lookup(attr_hash, attr); attr 185 attrd/legacy.c crm_info("Creating hash entry for %s", attr); attr 187 attrd/legacy.c hash_entry->id = strdup(attr); attr 190 attrd/legacy.c hash_entry = g_hash_table_lookup(attr_hash, attr); attr 198 attrd/legacy.c crm_debug("\t%s->set: %s", attr, value); attr 207 attrd/legacy.c crm_trace("\t%s->section: %s", attr, value); attr 215 attrd/legacy.c crm_trace("\t%s->timeout: %s", attr, value); attr 224 attrd/legacy.c crm_trace("\t%s->user: %s", attr, value); attr 755 attrd/legacy.c char *attr; attr 768 attrd/legacy.c free(data->attr); attr 783 attrd/legacy.c crm_warn("Update %s=%s failed: %s", data->attr, data->value, pcmk_strerror(call_id)); attr 789 attrd/legacy.c crm_debug("Update %d for %s=%s passed", call_id, data->attr, data->value); attr 790 attrd/legacy.c hash_entry = g_hash_table_lookup(attr_hash, data->attr); attr 806 attrd/legacy.c call_id, data->attr, data->value, pcmk_strerror(rc)); attr 810 attrd/legacy.c call_id, data->attr, data->value, pcmk_strerror(rc)); attr 879 attrd/legacy.c data->attr = strdup(hash_entry->id); attr 1099 attrd/legacy.c const char *attr = crm_element_value(msg, F_ATTRD_ATTRIBUTE); attr 1136 attrd/legacy.c if ((attr == NULL) && (pattern != NULL)) { attr 1144 attrd/legacy.c update_remote_attr(host, attr, value, section, user_name); attr 1155 attrd/legacy.c if (attr != NULL) { attr 1157 attrd/legacy.c crm_debug("%s message from %s: %s=%s", op, from, attr, crm_str(value)); attr 115 crmd/te_callbacks.c xmlNode *attr = getXpathResult(xpathObj, lpc); attr 116 crmd/te_callbacks.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 120 crmd/te_callbacks.c value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 124 crmd/te_callbacks.c abort_transition(INFINITY, tg_restart, "Transient attribute: update", attr); attr 125 crmd/te_callbacks.c crm_log_xml_trace(attr, "Abort"); attr 39 include/crm/cib/util.h int find_nvpair_attr_delegate(cib_t * the_cib, const char *attr, attr 196 include/crm/cluster.h void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node); attr 298 include/crm/compatibility.h find_nvpair_attr(cib_t * the_cib, const char *attr, const char *section, const char *node_uuid, attr 302 include/crm/compatibility.h return find_nvpair_attr_delegate(the_cib, attr, section, node_uuid, set_type, attr 46 include/crm/fencing/internal.h const char *attr, const char *value, attr 336 include/crm/stonith-ng.h const char *attr, const char *value, int level); attr 357 include/crm/stonith-ng.h const char *attr, const char *value, attr 56 lib/cib/cib_attrs.c find_nvpair_attr_delegate(cib_t * the_cib, const char *attr, const char *section, attr 162 lib/cib/cib_attrs.c const char *tmp = crm_element_value(xml_search, attr); attr 459 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) attr 463 lib/cluster/cluster.c crm_xml_add(xml, attr, uuid_calc); attr 255 lib/common/xml.c crm_attr_value(xmlAttr * attr) attr 257 lib/common/xml.c if (attr == NULL || attr->children == NULL) { attr 260 lib/common/xml.c return (const char *)attr->children->content; attr 400 lib/common/xml.c const char *attr = crm_element_value(xml, XML_ACL_ATTR_ATTRIBUTE); attr 417 lib/common/xml.c if(ref || attr) { attr 425 lib/common/xml.c if(ref && attr) { attr 429 lib/common/xml.c if(attr) { attr 430 lib/common/xml.c offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "@%s", attr); attr 433 lib/common/xml.c if(ref || attr) { attr 1000 lib/common/xml.c xmlNode *attr = NULL; attr 1021 lib/common/xml.c attr = create_xml_node(change, XML_DIFF_ATTR); attr 1023 lib/common/xml.c crm_xml_add(attr, XML_NVPAIR_ATTR_NAME, (const char *)pIter->name); attr 1025 lib/common/xml.c crm_xml_add(attr, XML_DIFF_OP, "unset"); attr 1030 lib/common/xml.c crm_xml_add(attr, XML_DIFF_OP, "set"); attr 1031 lib/common/xml.c crm_xml_add(attr, XML_NVPAIR_ATTR_VALUE, value); attr 2459 lib/common/xml.c xmlAttr *attr = xmlHasProp(xml, (const xmlChar *)name); attr 2461 lib/common/xml.c if(attr && mode == xpf_acl_create) { attr 2493 lib/common/xml.c xmlAttr *attr = NULL; attr 2526 lib/common/xml.c attr = xmlSetProp(node, (const xmlChar *)name, (const xmlChar *)value); attr 2528 lib/common/xml.c crm_attr_dirty(attr); attr 2531 lib/common/xml.c CRM_CHECK(attr && attr->children && attr->children->content, return NULL); attr 2532 lib/common/xml.c return (char *)attr->children->content; attr 2539 lib/common/xml.c xmlAttr *attr = NULL; attr 2569 lib/common/xml.c attr = xmlSetProp(node, (const xmlChar *)name, (const xmlChar *)value); attr 2571 lib/common/xml.c crm_attr_dirty(attr); attr 2573 lib/common/xml.c CRM_CHECK(attr && attr->children && attr->children->content, return NULL); attr 2574 lib/common/xml.c return (char *)attr->children->content; attr 3282 lib/common/xml.c dump_xml_attr(xmlAttrPtr attr, int options, char **buffer, int *offset, int *max) attr 3289 lib/common/xml.c if (attr == NULL || attr->children == NULL) { attr 3293 lib/common/xml.c p = attr->_private; attr 3298 lib/common/xml.c p_name = (const char *)attr->name; attr 3299 lib/common/xml.c p_value = crm_xml_escape((const char *)attr->children->content); attr 3889 lib/common/xml.c xmlAttr *attr = xmlHasProp(obj, (const xmlChar *)name); attr 3891 lib/common/xml.c p = attr->_private; attr 5167 lib/common/xml.c xmlAttr *attr = NULL; attr 5179 lib/common/xml.c attr = xmlHasProp(data, (const xmlChar *)name); attr 5180 lib/common/xml.c if (attr == NULL || attr->children == NULL) { attr 5183 lib/common/xml.c return (const char *)attr->children->content; attr 268 lib/fencing/st_client.c const char *attr, const char *value, int level) attr 273 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return -EINVAL); attr 285 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_ATTRIBUTE, attr); attr 320 lib/fencing/st_client.c const char *attr, const char *value, attr 327 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return NULL); attr 343 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_ATTRIBUTE, attr); attr 374 lib/fencing/st_client.c const char *attr, const char *value, attr 378 lib/fencing/st_client.c xmlNode *data = create_level_registration_xml(node, pattern, attr, value, attr 193 lib/pengine/rules.c const char *attr = NULL; attr 195 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); attr 207 lib/pengine/rules.c } else if (safe_str_eq(attr, CRM_ATTR_UNAME) attr 208 lib/pengine/rules.c || safe_str_eq(attr, CRM_ATTR_KIND) attr 209 lib/pengine/rules.c || safe_str_eq(attr, CRM_ATTR_ID)) { attr 212 lib/pengine/rules.c } else if (safe_str_eq(attr, CRM_ATTR_ROLE)) { attr 216 lib/pengine/rules.c } else if (safe_str_eq(attr, CRM_ATTR_RA_VERSION)) { attr 282 lib/pengine/rules.c const char *attr = NULL; attr 286 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); attr 292 lib/pengine/rules.c if (attr == NULL || op == NULL) { attr 294 lib/pengine/rules.c " (\'%s\' \'%s\' \'%s\')", crm_str(attr), crm_str(op), crm_str(value)); attr 300 lib/pengine/rules.c char *resolved_attr = pe_expand_re_matches(attr, match_data->re); attr 303 lib/pengine/rules.c attr = (const char *) resolved_attr; attr 327 lib/pengine/rules.c h_val = (const char *)g_hash_table_lookup(hash, attr); attr 331 lib/pengine/rules.c free((char *)attr); attr 332 lib/pengine/rules.c attr = NULL; attr 148 lib/pengine/rules_alerts.c xmlNode *attr; attr 153 lib/pengine/rules_alerts.c for (attr = first_named_child(event_type, XML_CIB_TAG_ALERT_ATTR); attr 154 lib/pengine/rules_alerts.c attr != NULL; attr 155 lib/pengine/rules_alerts.c attr = crm_next_same_xml(attr)) { attr 157 lib/pengine/rules_alerts.c attr_name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 450 lib/pengine/unpack.c xmlNode *attr = NULL; attr 465 lib/pengine/unpack.c for (attr = __xml_first_child(attr_set); attr != NULL; attr = __xml_next_element(attr)) { attr 466 lib/pengine/unpack.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 467 lib/pengine/unpack.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 887 lib/pengine/utils.c xmlNode *attr = NULL; attr 890 lib/pengine/utils.c for (attr = __xml_first_child(attrs); attr != NULL; attr = __xml_next_element(attr)) { attr 891 lib/pengine/utils.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); attr 892 lib/pengine/utils.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); attr 897 lib/pengine/utils.c crm_xml_add_int(attr, XML_NVPAIR_ATTR_VALUE, start_delay); attr 901 lib/pengine/utils.c crm_xml_add(attr, XML_NVPAIR_ATTR_NAME, XML_OP_ATTR_START_DELAY); attr 902 lib/pengine/utils.c crm_xml_add_int(attr, XML_NVPAIR_ATTR_VALUE, start_delay); attr 906 lib/pengine/utils.c crm_xml_add_int(attr, XML_NVPAIR_ATTR_VALUE, timeout); attr 50 pengine/allocate.h const char *attr, float factor, enum pe_weights flags); attr 53 pengine/allocate.h const char *attr, float factor, enum pe_weights flags); attr 56 pengine/allocate.h const char *attr, float factor, enum pe_weights flags); attr 59 pengine/allocate.h const char *attr, float factor, enum pe_weights flags); attr 62 pengine/allocate.h const char *attr, float factor, enum pe_weights flags); attr 65 pengine/allocate.h const char *attr, float factor, enum pe_weights flags); attr 1449 pengine/clone.c clone_merge_weights(resource_t * rsc, const char *rhs, GHashTable * nodes, const char *attr, attr 1452 pengine/clone.c return rsc_merge_weights(rsc, rhs, nodes, attr, factor, flags); attr 569 pengine/constraints.c tag_to_set(xmlNode * xml_obj, xmlNode ** rsc_set, const char * attr, attr 585 pengine/constraints.c if (attr == NULL) { attr 596 pengine/constraints.c id = crm_element_value(xml_obj, attr); attr 642 pengine/constraints.c xml_remove_prop(xml_obj, attr); attr 2334 pengine/constraints.c const char *attr = crm_element_value(xml_obj, XML_COLOC_ATTR_NODE_ATTR); attr 2389 pengine/constraints.c rsc_colocation_new(id, attr, score_i, rsc_lh, rsc_rh, state_lh, state_rh, data_set); attr 940 pengine/container.c container_merge_weights(resource_t * rsc, const char *rhs, GHashTable * nodes, const char *attr, attr 943 pengine/container.c return rsc_merge_weights(rsc, rhs, nodes, attr, factor, flags); attr 483 pengine/group.c group_merge_weights(resource_t * rsc, const char *rhs, GHashTable * nodes, const char *attr, attr 499 pengine/group.c group_data->first_child->cmds->merge_weights(group_data->first_child, rhs, nodes, attr, attr 266 pengine/master.c master_merge_weights(resource_t * rsc, const char *rhs, GHashTable * nodes, const char *attr, attr 269 pengine/master.c return rsc_merge_weights(rsc, rhs, nodes, attr, factor, flags); attr 964 pengine/master.c node_hash_update_one(GHashTable * hash, node_t * other, const char *attr, int score) attr 973 pengine/master.c } else if (attr == NULL) { attr 974 pengine/master.c attr = CRM_ATTR_UNAME; attr 977 pengine/master.c value = pe_node_attribute_raw(other, attr); attr 980 pengine/master.c const char *tmp = pe_node_attribute_raw(node, attr); attr 200 pengine/native.c node_list_attr_score(GHashTable * list, const char *attr, const char *value) attr 207 pengine/native.c if (attr == NULL) { attr 208 pengine/native.c attr = CRM_ATTR_UNAME; attr 219 pengine/native.c const char *tmp = pe_node_attribute_raw(node, attr); attr 228 pengine/native.c if (safe_str_neq(attr, CRM_ATTR_UNAME)) { attr 230 pengine/native.c attr, value, best_node ? best_node : "<none>", best_score); attr 237 pengine/native.c node_hash_update(GHashTable * list1, GHashTable * list2, const char *attr, float factor, attr 245 pengine/native.c if (attr == NULL) { attr 246 pengine/native.c attr = CRM_ATTR_UNAME; attr 257 pengine/native.c score = node_list_attr_score(list2, attr, pe_node_attribute_raw(node, attr)); attr 308 pengine/native.c native_merge_weights(resource_t * rsc, const char *rhs, GHashTable * nodes, const char *attr, attr 311 pengine/native.c return rsc_merge_weights(rsc, rhs, nodes, attr, factor, flags); attr 315 pengine/native.c rsc_merge_weights(resource_t * rsc, const char *rhs, GHashTable * nodes, const char *attr, attr 341 pengine/native.c work = rsc_merge_weights(last->data, rhs, NULL, attr, factor, flags); attr 354 pengine/native.c work = rsc_merge_weights(iter->data, rhs, work, attr, factor, flags); attr 360 pengine/native.c node_hash_update(work, rsc->allowed_nodes, attr, factor, attr 1445 tools/crm_mon.c const char *attr; attr 1447 tools/crm_mon.c attr = XML_RSC_OP_LAST_CHANGE; attr 1448 tools/crm_mon.c value = crm_element_value(xml_op, attr); attr 1452 tools/crm_mon.c print_nvpair(stream, attr, NULL, NULL, int_value); attr 1456 tools/crm_mon.c attr = XML_RSC_OP_LAST_RUN; attr 1457 tools/crm_mon.c value = crm_element_value(xml_op, attr); attr 1461 tools/crm_mon.c print_nvpair(stream, attr, NULL, NULL, int_value); attr 1465 tools/crm_mon.c attr = XML_RSC_OP_T_EXEC; attr 1466 tools/crm_mon.c value = crm_element_value(xml_op, attr); attr 1468 tools/crm_mon.c print_nvpair(stream, attr, value, "ms", 0); attr 1471 tools/crm_mon.c attr = XML_RSC_OP_T_QUEUE; attr 1472 tools/crm_mon.c value = crm_element_value(xml_op, attr); attr 1474 tools/crm_mon.c print_nvpair(stream, attr, value, "ms", 0); attr 65 tools/crm_resource.h int cli_resource_print_attribute(resource_t *rsc, const char *attr, attr 67 tools/crm_resource.h int cli_resource_print_property(resource_t *rsc, const char *attr, attr 315 tools/crm_resource_print.c cli_resource_print_attribute(resource_t *rsc, const char *attr, pe_working_set_t * data_set) attr 327 tools/crm_resource_print.c " returning the default value for %s", rsc->id, crm_str(attr)); attr 345 tools/crm_resource_print.c crm_debug("Looking up %s in %s", attr, rsc->id); attr 346 tools/crm_resource_print.c value = g_hash_table_lookup(params, attr); attr 352 tools/crm_resource_print.c CMD_ERR("Attribute '%s' not found for '%s'", attr, rsc->id); attr 361 tools/crm_resource_print.c cli_resource_print_property(resource_t *rsc, const char *attr, pe_working_set_t * data_set) attr 363 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); attr 91 tools/crm_resource_runtime.c find_resource_attr(cib_t * the_cib, const char *attr, const char *rsc, const char *set_type, attr 154 tools/crm_resource_runtime.c const char *tmp = crm_element_value(xml_search, attr); attr 283 tools/crm_ticket.c find_ticket_state_attr_legacy(cib_t * the_cib, const char *attr, const char *ticket_id, attr 352 tools/crm_ticket.c const char *tmp = crm_element_value(xml_search, attr);