xpath 343 attrd/legacy.c char *xpath; xpath 358 attrd/legacy.c xpath = crm_strdup_printf(XPATH_REMOTE_ATTR("") XPATH_CLEAR_ALL); xpath 360 attrd/legacy.c xpath = crm_strdup_printf(XPATH_REMOTE_ATTR(XPATH_ID) XPATH_CLEAR_ALL, xpath 368 attrd/legacy.c xpath = crm_strdup_printf(XPATH_REMOTE_ATTR("") XPATH_CLEAR_ONE, xpath 371 attrd/legacy.c xpath = crm_strdup_printf(XPATH_REMOTE_ATTR(XPATH_ID) XPATH_CLEAR_ONE, xpath 382 attrd/legacy.c xpath = crm_strdup_printf(XPATH_REMOTE_ATTR("") XPATH_CLEAR_OP, xpath 386 attrd/legacy.c xpath = crm_strdup_printf(XPATH_REMOTE_ATTR(XPATH_ID) XPATH_CLEAR_OP, xpath 392 attrd/legacy.c crm_trace("Clearing attributes matching %s", xpath); xpath 393 attrd/legacy.c rc = the_cib->cmds->delete(the_cib, xpath, NULL, cib_xpath|cib_multiple); xpath 394 attrd/legacy.c register_cib_callback(rc, xpath, remote_clear_callback, free); xpath 154 attrd/main.c char *xpath = crm_strdup_printf(XPATH_TRANSIENT, attrd_cluster->uname); xpath 157 attrd/main.c xpath); xpath 159 attrd/main.c call_id = the_cib->cmds->delete(the_cib, xpath, NULL, xpath 161 attrd/main.c the_cib->cmds->register_callback_full(the_cib, call_id, 120, FALSE, xpath, xpath 345 crmd/membership.c char xpath[NODE_PATH_MAX]; xpath 353 crmd/membership.c snprintf(xpath, NODE_PATH_MAX, xpath 358 crmd/membership.c call_id = fsa_cib_conn->cmds->query(fsa_cib_conn, xpath, NULL, xpath 245 crmd/te_callbacks.c const char *node, xmlNode *xml, xmlNode *change, const char *op, const char *xpath) xpath 292 crmd/te_callbacks.c static char *get_node_from_xpath(const char *xpath) xpath 295 crmd/te_callbacks.c char *tmp = strstr(xpath, NODE_PATT); xpath 309 crmd/te_callbacks.c static char *extract_node_uuid(const char *xpath) xpath 311 crmd/te_callbacks.c char *mutable_path = strdup(xpath); xpath 336 crmd/te_callbacks.c abort_unless_down(const char *xpath, const char *op, xmlNode *change, xpath 347 crmd/te_callbacks.c node_uuid = extract_node_uuid(xpath); xpath 349 crmd/te_callbacks.c crm_err("Could not extract node ID from %s", xpath); xpath 356 crmd/te_callbacks.c crm_trace("Not expecting %s to be down (%s)", node_uuid, xpath); xpath 359 crmd/te_callbacks.c crm_trace("Expecting changes to %s (%s)", node_uuid, xpath); xpath 421 crmd/te_callbacks.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 443 crmd/te_callbacks.c crm_trace("Ignoring %s operation for comment at %s", op, xpath); xpath 450 crmd/te_callbacks.c op, (xpath? xpath : "CIB"), xpath 452 crmd/te_callbacks.c if(xpath == NULL) { xpath 455 crmd/te_callbacks.c } else if(strstr(xpath, "/cib/configuration")) { xpath 459 crmd/te_callbacks.c } else if(strstr(xpath, "/"XML_CIB_TAG_TICKETS) || safe_str_eq(name, XML_CIB_TAG_TICKETS)) { xpath 463 crmd/te_callbacks.c } else if(strstr(xpath, "/"XML_TAG_TRANSIENT_NODEATTRS"[") || safe_str_eq(name, XML_TAG_TRANSIENT_NODEATTRS)) { xpath 464 crmd/te_callbacks.c abort_unless_down(xpath, op, change, "Transient attribute change"); xpath 467 crmd/te_callbacks.c } else if(strstr(xpath, "/"XML_LRM_TAG_RSC_OP"[") && safe_str_eq(op, "delete")) { xpath 469 crmd/te_callbacks.c char *mutable_key = strdup(xpath); xpath 485 crmd/te_callbacks.c node_uuid = extract_node_uuid(xpath); xpath 502 crmd/te_callbacks.c } else if(strstr(xpath, "/"XML_CIB_TAG_LRM"[") && safe_str_eq(op, "delete")) { xpath 503 crmd/te_callbacks.c abort_unless_down(xpath, op, change, "Resource state removal"); xpath 505 crmd/te_callbacks.c } else if(strstr(xpath, "/"XML_CIB_TAG_STATE"[") && safe_str_eq(op, "delete")) { xpath 506 crmd/te_callbacks.c abort_unless_down(xpath, op, change, "Node state removal"); xpath 509 crmd/te_callbacks.c crm_debug("No result for %s operation to %s", op, xpath); xpath 521 crmd/te_callbacks.c process_resource_updates(node, lrm, change, op, xpath); xpath 535 crmd/te_callbacks.c process_resource_updates(node, lrm, change, op, xpath); xpath 542 crmd/te_callbacks.c process_resource_updates(node, lrm, change, op, xpath); xpath 546 crmd/te_callbacks.c process_resource_updates(node, match, change, op, xpath); xpath 549 crmd/te_callbacks.c char *local_node = get_node_from_xpath(xpath); xpath 551 crmd/te_callbacks.c process_resource_updates(local_node, match, change, op, xpath); xpath 557 crmd/te_callbacks.c char *local_node = get_node_from_xpath(xpath); xpath 565 crmd/te_callbacks.c char *local_node = get_node_from_xpath(xpath); xpath 571 crmd/te_callbacks.c crm_err("Ignoring %s operation for %s %p, %s", op, xpath, match, name); xpath 406 crmd/te_events.c char *xpath = crm_strdup_printf(XPATH_DOWNED, target); xpath 417 crmd/te_events.c xpath_ret = xpath_search(match->xml, xpath); xpath 425 crmd/te_events.c free(xpath); xpath 990 crmd/utils.c char *xpath = user_data; xpath 993 crmd/utils.c "Deletion of \"%s\": %s (rc=%d)", xpath, pcmk_strerror(rc), rc); xpath 1003 crmd/utils.c char *xpath = crm_strdup_printf(XPATH_STATUS_TAG, uname, tag); xpath 1006 crmd/utils.c tag, uname, xpath); xpath 1007 crmd/utils.c call_id = fsa_cib_conn->cmds->delete(fsa_cib_conn, xpath, NULL, xpath 1009 crmd/utils.c fsa_register_cib_callback(call_id, FALSE, xpath, erase_xpath_callback); xpath 722 fencing/commands.c xmlXPathObjectPtr xpath = NULL; xpath 732 fencing/commands.c xpath = xpath_search(xml, "//parameter[@name='nodeid']"); xpath 733 fencing/commands.c if (numXpathResults(xpath) <= 0) { xpath 734 fencing/commands.c freeXpathObject(xpath); xpath 738 fencing/commands.c freeXpathObject(xpath); xpath 766 fencing/commands.c xmlXPathObjectPtr xpath = NULL; xpath 774 fencing/commands.c xpath = xpath_search(device->agent_metadata, "//action"); xpath 775 fencing/commands.c max = numXpathResults(xpath); xpath 778 fencing/commands.c freeXpathObject(xpath); xpath 785 fencing/commands.c xmlNode *match = getXpathResult(xpath, lpc); xpath 816 fencing/commands.c freeXpathObject(xpath); xpath 556 fencing/main.c const char *xpath = "//" XML_TAG_FENCING_LEVEL; xpath 566 fencing/main.c xpathObj = xpath_search(local_cib, xpath); xpath 755 fencing/main.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 761 fencing/main.c } else if(safe_str_eq(op, "delete") && strstr(xpath, XML_CIB_TAG_RESOURCE)) { xpath 766 fencing/main.c if (strstr(xpath, XML_TAG_ATTR_SETS)) { xpath 770 fencing/main.c mutable = strdup(xpath); xpath 784 fencing/main.c } else if(strstr(xpath, XML_CIB_TAG_RESOURCES)) { xpath 785 fencing/main.c shortpath = strrchr(xpath, '/'); CRM_ASSERT(shortpath); xpath 790 fencing/main.c } else if(strstr(xpath, XML_CIB_TAG_CONSTRAINTS)) { xpath 791 fencing/main.c shortpath = strrchr(xpath, '/'); CRM_ASSERT(shortpath); xpath 905 fencing/main.c char xpath[XPATH_MAX]; xpath 916 fencing/main.c n = snprintf(xpath, XPATH_MAX, "//" XML_CIB_TAG_NODES xpath 920 fencing/main.c match = get_xpath_object(xpath, local_cib, LOG_TRACE); xpath 930 fencing/main.c const char *xpath; xpath 939 fencing/main.c xpath = "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_REMOVED "//" XML_TAG_FENCING_LEVEL; xpath 940 fencing/main.c xpathObj = xpath_search(msg, xpath); xpath 946 fencing/main.c xpath = "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED "//" XML_TAG_FENCING_LEVEL; xpath 947 fencing/main.c xpathObj = xpath_search(msg, xpath); xpath 961 fencing/main.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 966 fencing/main.c } else if(strstr(xpath, "/" XML_TAG_FENCING_LEVEL) != NULL) { xpath 969 fencing/main.c crm_trace("Handling %s operation %d.%d.%d for %s", op, add[0], add[1], add[2], xpath); xpath 986 fencing/main.c op, add[0], add[1], add[2], xpath); xpath 991 fencing/main.c } else if (strstr(xpath, "/" XML_TAG_FENCING_TOPOLOGY) != NULL) { xpath 994 fencing/main.c op, add[0], add[1], add[2], xpath); xpath 998 fencing/main.c } else if (strstr(xpath, "/" XML_CIB_TAG_CONFIGURATION)) { xpath 1002 fencing/main.c op, add[0], add[1], add[2], xpath); xpath 1006 fencing/main.c op, add[0], add[1], add[2], xpath); xpath 1013 fencing/main.c op, add[0], add[1], add[2], xpath); xpath 205 include/crm/common/xml.h xmlNode *get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level); xpath 206 include/crm/common/xml.h xmlNode *get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level); xpath 358 include/crm/common/xml.h void crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xpath 232 lib/cib/cib_utils.c const char *xpath = get_object_path(object_type); xpath 234 lib/cib/cib_utils.c if (xpath == NULL) { xpath 238 lib/cib/cib_utils.c return get_xpath_object(xpath, the_root, LOG_DEBUG_4); xpath 259 lib/common/alerts.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 261 lib/common/alerts.c if (xpath == NULL) { xpath 265 lib/common/alerts.c if ((!config || !strstr(xpath, XPATH_CRMCONFIG)) xpath 266 lib/common/alerts.c && !strstr(xpath, XPATH_ALERTS)) { xpath 273 lib/common/alerts.c if ((strcmp(xpath, XPATH_CONFIG) != 0) || xpath 88 lib/common/xml.c char *xpath; xpath 280 lib/common/xml.c free(acl->xpath); xpath 375 lib/common/xml.c const char *xpath = crm_element_value(xml, XML_ACL_ATTR_XPATH); xpath 392 lib/common/xml.c } else if (tag == NULL && ref == NULL && xpath == NULL) { xpath 403 lib/common/xml.c if(xpath) { xpath 404 lib/common/xml.c acl->xpath = strdup(xpath); xpath 405 lib/common/xml.c crm_trace("Using xpath: %s", acl->xpath); xpath 438 lib/common/xml.c acl->xpath = strdup(buffer); xpath 439 lib/common/xml.c crm_trace("Built xpath: %s", acl->xpath); xpath 557 lib/common/xml.c xpathObj = xpath_search(xml, acl->xpath); xpath 565 lib/common/xml.c crm_trace("Applying %x to %s for %s", acl->mode, path, acl->xpath); xpath 583 lib/common/xml.c crm_trace("Now enforcing ACL: %s (%d matches)", acl->xpath, max); xpath 732 lib/common/xml.c } else if(acl->xpath) { xpath 734 lib/common/xml.c xmlXPathObjectPtr xpathObj = xpath_search(target, acl->xpath); xpath 740 lib/common/xml.c crm_trace("Purging attributes from %s", acl->xpath); xpath 747 lib/common/xml.c crm_trace("Enforced ACL %s (%d matches)", acl->xpath, max); xpath 1440 lib/common/xml.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 1445 lib/common/xml.c char *prefix = crm_strdup_printf("++ %s: ", xpath); xpath 1460 lib/common/xml.c do_crm_log_alias(log_level, __FILE__, function, __LINE__, "+~ %s moved to offset %s", xpath, crm_element_value(change, XML_DIFF_POSITION)); xpath 1492 lib/common/xml.c do_crm_log_alias(log_level, __FILE__, function, __LINE__, "+ %s: %s", xpath, buffer_set); xpath 1495 lib/common/xml.c do_crm_log_alias(log_level, __FILE__, function, __LINE__, "-- %s: %s", xpath, buffer_unset); xpath 1503 lib/common/xml.c do_crm_log_alias(log_level, __FILE__, function, __LINE__, "-- %s (%d)", xpath, position); xpath 1506 lib/common/xml.c do_crm_log_alias(log_level, __FILE__, function, __LINE__, "-- %s", xpath); xpath 2029 lib/common/xml.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 2041 lib/common/xml.c match = get_xpath_object(xpath, xml, LOG_TRACE); xpath 2043 lib/common/xml.c match = __xml_find_path(xml, xpath, position); xpath 2045 lib/common/xml.c crm_trace("Performing %s on %s with %p", op, xpath, match); xpath 2048 lib/common/xml.c crm_debug("No %s match for %s in %p", op, xpath, xml->doc); xpath 2052 lib/common/xml.c crm_err("No %s match for %s in %p", op, xpath, xml->doc); xpath 179 lib/common/xpath.c crm_foreach_xpath_result(xmlNode *xml, const char *xpath, xpath 182 lib/common/xpath.c xmlXPathObjectPtr xpathObj = xpath_search(xml, xpath); xpath 198 lib/common/xpath.c get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level) xpath 205 lib/common/xpath.c if (xml_obj == NULL || xpath == NULL) { xpath 211 lib/common/xpath.c len = strlen(xpath_prefix) + strlen(xpath) + 1; xpath 214 lib/common/xpath.c strcat(xpath_full, xpath); xpath 224 lib/common/xpath.c get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level) xpath 232 lib/common/xpath.c if (xpath == NULL) { xpath 236 lib/common/xpath.c xpathObj = xpath_search(xml_obj, xpath); xpath 241 lib/common/xpath.c do_crm_log(error_level, "No match for %s in %s", xpath, crm_str(nodePath)); xpath 247 lib/common/xpath.c do_crm_log(error_level, "Too many matches for %s in %s", xpath, crm_str(nodePath)); xpath 255 lib/common/xpath.c do_crm_log(error_level, "%s[%d] = %s", xpath, lpc, crm_str(matchNodePath)); xpath 77 lib/pengine/failcounts.c char *xpath = crm_strdup_printf("//primitive[@id='%s']//op[@on-fail='block']", xpath 79 lib/pengine/failcounts.c xmlXPathObject *xpathObj = xpath_search(rsc->xml, xpath); xpath 82 lib/pengine/failcounts.c free(xpath); xpath 161 lib/pengine/unpack.c void set_if_xpath(unsigned long long flag, const char *xpath, xpath 167 lib/pengine/unpack.c result = xpath_search(data_set->input, xpath); xpath 2381 lib/pengine/unpack.c char xpath[STATUS_PATH_MAX]; xpath 2383 lib/pengine/unpack.c offset += snprintf(xpath + offset, STATUS_PATH_MAX - offset, "//node_state[@uname='%s']", node); xpath 2385 lib/pengine/unpack.c snprintf(xpath + offset, STATUS_PATH_MAX - offset, "//" XML_LRM_TAG_RESOURCE "[@id='%s']", xpath 2391 lib/pengine/unpack.c snprintf(xpath + offset, STATUS_PATH_MAX - offset, xpath 2396 lib/pengine/unpack.c snprintf(xpath + offset, STATUS_PATH_MAX - offset, xpath 2401 lib/pengine/unpack.c snprintf(xpath + offset, STATUS_PATH_MAX - offset, xpath 2406 lib/pengine/unpack.c return get_xpath_object(xpath, data_set->input, LOG_DEBUG); xpath 3908 tools/crm_mon.c static char *get_node_from_xpath(const char *xpath) xpath 3911 tools/crm_mon.c char *tmp = strstr(xpath, NODE_PATT); xpath 3933 tools/crm_mon.c const char *xpath = crm_element_value(change, XML_DIFF_PATH); xpath 3960 tools/crm_mon.c crm_trace("Handling %s operation for %s %p, %s", op, xpath, match, name); xpath 3961 tools/crm_mon.c if(xpath == NULL) { xpath 3965 tools/crm_mon.c crm_debug("No result for %s operation to %s", op, xpath); xpath 4003 tools/crm_mon.c char *local_node = get_node_from_xpath(xpath); xpath 4009 tools/crm_mon.c char *local_node = get_node_from_xpath(xpath); xpath 4015 tools/crm_mon.c char *local_node = get_node_from_xpath(xpath); xpath 4021 tools/crm_mon.c crm_trace("Ignoring %s operation for %s %p, %s", op, xpath, match, name); xpath 120 tools/fake_transition.c char *xpath = NULL; xpath 122 tools/fake_transition.c xpath = calloc(1, max); xpath 124 tools/fake_transition.c snprintf(xpath, max, new_node_template, node); xpath 125 tools/fake_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, NULL, cib_xpath | cib_sync_call | cib_scope_local); xpath 141 tools/fake_transition.c free(xpath); xpath 188 tools/fake_transition.c char *xpath = crm_strdup_printf(node_template, node); xpath 194 tools/fake_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, xpath 198 tools/fake_transition.c crm_err("Detected multiple node_state entries for xpath=%s, bailing", xpath); xpath 200 tools/fake_transition.c free(xpath); xpath 222 tools/fake_transition.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, xpath 227 tools/fake_transition.c free(xpath); xpath 257 tools/fake_transition.c char *xpath = NULL; xpath 262 tools/fake_transition.c xpath = calloc(1, max); xpath 264 tools/fake_transition.c snprintf(xpath, max, rsc_template, node, resource); xpath 265 tools/fake_transition.c match = get_xpath_object(xpath, cib_node, LOG_DEBUG_2); xpath 267 tools/fake_transition.c free(xpath); xpath 279 tools/fake_transition.c char *xpath = NULL; xpath 308 tools/fake_transition.c xpath = (char *)xmlGetNodePath(cib_node); xpath 309 tools/fake_transition.c crm_info("Injecting new resource %s into %s '%s'", resource, xpath, ID(cib_node)); xpath 310 tools/fake_transition.c free(xpath); xpath 465 tools/fake_transition.c char xpath[STATUS_PATH_MAX]; xpath 477 tools/fake_transition.c snprintf(xpath, STATUS_PATH_MAX, "//node_state[@uname='%s']/%s", node, XML_CIB_TAG_LRM); xpath 478 tools/fake_transition.c cib->cmds->delete(cib, xpath, NULL, xpath 481 tools/fake_transition.c snprintf(xpath, STATUS_PATH_MAX, "//node_state[@uname='%s']/%s", node, xpath 483 tools/fake_transition.c cib->cmds->delete(cib, xpath, NULL, xpath 773 tools/fake_transition.c char xpath[STATUS_PATH_MAX]; xpath 783 tools/fake_transition.c snprintf(xpath, STATUS_PATH_MAX, "//node_state[@uname='%s']/%s", target, XML_CIB_TAG_LRM); xpath 784 tools/fake_transition.c fake_cib->cmds->delete(fake_cib, xpath, NULL, xpath 787 tools/fake_transition.c snprintf(xpath, STATUS_PATH_MAX, "//node_state[@uname='%s']/%s", target, xpath 789 tools/fake_transition.c fake_cib->cmds->delete(fake_cib, xpath, NULL,