match 181 crmd/crmd_metadata.c xmlNode *match = NULL; match 210 crmd/crmd_metadata.c match = first_named_child(metadata, "actions"); match 211 crmd/crmd_metadata.c for (match = first_named_child(match, "action"); match != NULL; match 212 crmd/crmd_metadata.c match = crm_next_same_xml(match)) { match 214 crmd/crmd_metadata.c const char *action_name = crm_element_value(match, "name"); match 223 crmd/crmd_metadata.c match = first_named_child(metadata, "parameters"); match 224 crmd/crmd_metadata.c for (match = first_named_child(match, "parameter"); match != NULL; match 225 crmd/crmd_metadata.c match = crm_next_same_xml(match)) { match 227 crmd/crmd_metadata.c const char *param_name = crm_element_value(match, "name"); match 233 crmd/crmd_metadata.c struct ra_param_s *p = ra_param_from_xml(match); match 245 crmd/pengine.c xmlNode *match = getXpathResult(xpathObj, lpc); match 246 crmd/pengine.c crm_trace("Forcing %s/%s = %s", ID(match), attr_name, attr_value); match 247 crmd/pengine.c crm_xml_add(match, XML_NVPAIR_ATTR_VALUE, attr_value); match 205 crmd/te_callbacks.c xmlNode *match = getXpathResult(xpathObj, lpc); match 207 crmd/te_callbacks.c CRM_LOG_ASSERT(match != NULL); match 208 crmd/te_callbacks.c if(match == NULL) { continue; }; match 210 crmd/te_callbacks.c op_id = ID(match); match 219 crmd/te_callbacks.c const char *node = get_node_id(match); match 225 crmd/te_callbacks.c abort_transition(INFINITY, tg_restart, "Resource op removal", match); match 314 crmd/te_callbacks.c char *match = NULL; match 316 crmd/te_callbacks.c match = strstr(mutable_path, "node_state[@id=\'"); match 317 crmd/te_callbacks.c if (match == NULL) { match 321 crmd/te_callbacks.c match += strlen("node_state[@id=\'"); match 323 crmd/te_callbacks.c search = strchr(match, '\''); match 330 crmd/te_callbacks.c node_uuid = strdup(match); match 422 crmd/te_callbacks.c xmlNode *match = NULL; match 429 crmd/te_callbacks.c match = change->children; match 435 crmd/te_callbacks.c match = first_named_child(change, XML_DIFF_RESULT); match 436 crmd/te_callbacks.c if(match) { match 437 crmd/te_callbacks.c match = match->children; match 441 crmd/te_callbacks.c if(match) { match 442 crmd/te_callbacks.c if (match->type == XML_COMMENT_NODE) { match 446 crmd/te_callbacks.c name = (const char *)match->name; match 514 crmd/te_callbacks.c xmlNode *status = first_named_child(match, XML_CIB_TAG_STATUS); match 515 crmd/te_callbacks.c xmlNode *config = first_named_child(match, XML_CIB_TAG_CONFIGURATION); match 531 crmd/te_callbacks.c for (state = __xml_first_child(match); state != NULL; state = __xml_next(state)) { match 539 crmd/te_callbacks.c xmlNode *lrm = first_named_child(match, XML_CIB_TAG_LRM); match 541 crmd/te_callbacks.c node = ID(match); match 545 crmd/te_callbacks.c node = ID(match); match 546 crmd/te_callbacks.c process_resource_updates(node, match, change, op, xpath); match 551 crmd/te_callbacks.c process_resource_updates(local_node, match, change, op, xpath); match 559 crmd/te_callbacks.c for (rsc_op = __xml_first_child(match); rsc_op != NULL; rsc_op = __xml_next(rsc_op)) { match 567 crmd/te_callbacks.c process_graph_event(match, local_node); match 571 crmd/te_callbacks.c crm_err("Ignoring %s operation for %s %p, %s", op, xpath, match, name); match 402 crmd/te_events.c crm_action_t *match = NULL; match 409 crmd/te_events.c gIter != NULL && match == NULL; match 413 crmd/te_events.c gIter2 != NULL && match == NULL; match 416 crmd/te_events.c match = (crm_action_t*)gIter2->data; match 417 crmd/te_events.c xpath_ret = xpath_search(match->xml, xpath); match 419 crmd/te_events.c match = NULL; match 427 crmd/te_events.c if (match != NULL) { match 429 crmd/te_events.c target, match->id, match 430 crmd/te_events.c crm_element_value(match->xml, XML_LRM_ATTR_TASK_KEY)); match 436 crmd/te_events.c return match; match 785 fencing/commands.c xmlNode *match = getXpathResult(xpath, lpc); match 787 fencing/commands.c CRM_LOG_ASSERT(match != NULL); match 788 fencing/commands.c if(match == NULL) { continue; }; match 790 fencing/commands.c on_target = crm_element_value(match, "on_target"); match 791 fencing/commands.c action = crm_element_value(match, "name"); match 801 fencing/commands.c const char *automatic = crm_element_value(match, "automatic"); match 804 fencing/commands.c const char *required = crm_element_value(match, "required"); match 451 fencing/main.c xmlNode *match = getXpathResult(xpathObj, lpc); match 453 fencing/main.c CRM_LOG_ASSERT(match != NULL); match 454 fencing/main.c if(match != NULL) { match 455 fencing/main.c standard = crm_element_value(match, XML_AGENT_ATTR_CLASS); match 462 fencing/main.c rsc_id = crm_element_value(match, XML_ATTR_ID); match 469 fencing/main.c handle_topology_change(xmlNode *match, bool remove) match 474 fencing/main.c CRM_CHECK(match != NULL, return); match 475 fencing/main.c crm_trace("Updating %s", ID(match)); match 479 fencing/main.c char *key = stonith_level_key(match, -1); match 481 fencing/main.c crm_element_value_int(match, XML_ATTR_STONITH_INDEX, &index); match 486 fencing/main.c rc = stonith_level_register(match, &desc); match 498 fencing/main.c xmlNode *match = getXpathResult(xpathObj, lpc); match 500 fencing/main.c CRM_LOG_ASSERT(match != NULL); match 501 fencing/main.c if (match && crm_element_value(match, XML_DIFF_MARKER)) { match 504 fencing/main.c char *target = stonith_level_key(match, -1); match 506 fencing/main.c crm_element_value_int(match, XML_ATTR_STONITH_INDEX, &index); match 508 fencing/main.c crm_err("Invalid fencing target in element %s", ID(match)); match 511 fencing/main.c crm_err("Invalid level for %s in element %s", target, ID(match)); match 527 fencing/main.c xmlNode *match = getXpathResult(xpathObj, lpc); match 529 fencing/main.c handle_topology_change(match, TRUE); match 825 fencing/main.c xmlNode *match = getXpathResult(xpath_obj, lpc); match 827 fencing/main.c crm_log_xml_trace(match, "new constraint"); match 847 fencing/main.c xmlNode *match = getXpathResult(xpath_obj, lpc); match 849 fencing/main.c rsc_id = crm_element_value(match, XML_ATTR_ID); match 850 fencing/main.c standard = crm_element_value(match, XML_AGENT_ATTR_CLASS); match 906 fencing/main.c xmlNode *match; match 920 fencing/main.c match = get_xpath_object(xpath, local_cib, LOG_TRACE); match 923 fencing/main.c return (match != NULL); match 977 fencing/main.c xmlNode *match = first_named_child(change, XML_DIFF_RESULT); match 979 fencing/main.c if(match) { match 980 fencing/main.c handle_topology_change(match->children, TRUE); match 314 fencing/remote.c GListPtr match = g_list_find_custom(op->devices_list, iter->data, match 317 fencing/remote.c if (match) { match 318 fencing/remote.c op->devices_list = g_list_remove(op->devices_list, match->data); match 650 fencing/remote.c GListPtr match = g_list_find_custom(op->automatic_list, device, match 653 fencing/remote.c if (!match) { match 668 fencing/remote.c GListPtr match = g_list_find_custom(op->automatic_list, device, match 671 fencing/remote.c if (match) { match 672 fencing/remote.c op->automatic_list = g_list_remove(op->automatic_list, match->data); match 1615 fencing/remote.c device_properties_t *match = NULL; match 1632 fencing/remote.c match = NULL; match 1633 fencing/remote.c for (iter = op->query_results; iter && !match; iter = iter->next) { match 1639 fencing/remote.c match = find_peer_device(op, peer, device->data); match 1641 fencing/remote.c if (!match) { match 67 include/crm/common/internal.h gboolean crm_ends_with(const char *s, const char *match); match 68 include/crm/common/internal.h gboolean crm_ends_with_ext(const char *s, const char *match); match 375 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); match 376 lib/cib/cib_ops.c xmlChar *match_path = xmlGetNodePath(match); match 380 lib/cib/cib_ops.c free_xml(match); match 719 lib/cib/cib_ops.c xmlNode *match = getXpathResult(xpathObj, lpc); match 721 lib/cib/cib_ops.c if (match == NULL) { match 725 lib/cib/cib_ops.c path = xmlGetNodePath(match); match 730 lib/cib/cib_ops.c if (match == *result_cib) { match 737 lib/cib/cib_ops.c free_xml(match); match 743 lib/cib/cib_ops.c if (update_xml_child(match, input) == FALSE) { match 750 lib/cib/cib_ops.c add_node_copy(match, input); match 756 lib/cib/cib_ops.c const char *tag = TYPE(match); match 759 lib/cib/cib_ops.c copy_in_properties(shallow, match); match 769 lib/cib/cib_ops.c xmlNode *parent = match; match 807 lib/cib/cib_ops.c add_node_copy(*answer, match); match 810 lib/cib/cib_ops.c *answer = match; match 814 lib/cib/cib_ops.c xmlNode *parent = match->parent; match 816 lib/cib/cib_ops.c free_xml(match); match 1046 lib/common/mainloop.c mainloop_child_t *match = NULL; match 1051 lib/common/mainloop.c for (iter = child_list; iter != NULL && match == NULL; iter = iter->next) { match 1054 lib/common/mainloop.c match = child; match 1058 lib/common/mainloop.c if (match == NULL) { match 1062 lib/common/mainloop.c rc = child_kill_helper(match); match 1073 lib/common/mainloop.c crm_trace("Waiting for child %d to be reaped by child_death_dispatch()", match->pid); match 1083 lib/common/mainloop.c if (child_waitpid(match, waitflags) == FALSE) { match 1088 lib/common/mainloop.c child_list = g_list_remove(child_list, match); match 1089 lib/common/mainloop.c child_free(match); match 789 lib/common/schemas.c int lpc = 0, match = -1, rc = pcmk_ok; match 802 lib/common/schemas.c match = get_schema_version(value); match 804 lib/common/schemas.c lpc = match; match 814 lib/common/schemas.c if (match >= max_stable_schemas) { match 817 lib/common/schemas.c *best = match; match 913 lib/common/schemas.c if (*best > match && *best) { match 270 lib/common/strings.c crm_ends_with_internal(const char *s, const char *match, gboolean as_extension) match 272 lib/common/strings.c if ((s == NULL) || (match == NULL)) { match 277 lib/common/strings.c if (match[0] != '\0' match 279 lib/common/strings.c || strchr(&match[1], match[0]) == NULL */)) match 280 lib/common/strings.c return !strcmp(null2emptystr(strrchr(s, match[0])), match); match 282 lib/common/strings.c if ((mlen = strlen(match)) == 0) match 285 lib/common/strings.c return ((slen >= mlen) && !strcmp(s + slen - mlen, match)); match 302 lib/common/strings.c crm_ends_with(const char *s, const char *match) match 304 lib/common/strings.c return crm_ends_with_internal(s, match, FALSE); match 331 lib/common/strings.c crm_ends_with_ext(const char *s, const char *match) match 333 lib/common/strings.c return crm_ends_with_internal(s, match, TRUE); match 561 lib/common/xml.c xmlNode *match = getXpathResult(xpathObj, lpc); match 562 lib/common/xml.c char *path = xml_get_path(match); match 564 lib/common/xml.c p = match->_private; match 738 lib/common/xml.c xmlNode *match = getXpathResult(xpathObj, lpc); match 741 lib/common/xml.c if(__xml_purge_attributes(match) == FALSE && match == target) { match 2027 lib/common/xml.c xmlNode *match = NULL; match 2041 lib/common/xml.c match = get_xpath_object(xpath, xml, LOG_TRACE); match 2043 lib/common/xml.c match = __xml_find_path(xml, xpath, position); match 2045 lib/common/xml.c crm_trace("Performing %s on %s with %p", op, xpath, match); match 2047 lib/common/xml.c if(match == NULL && strcmp(op, "delete") == 0) { match 2051 lib/common/xml.c } else if(match == NULL) { match 2061 lib/common/xml.c match_child = match->children; match 2068 lib/common/xml.c child = xmlDocCopyNode(change->children, match->doc, 1); match 2073 lib/common/xml.c } else if(match->last) { /* Add to the end */ match 2075 lib/common/xml.c xmlAddNextSibling(match->last, child); match 2080 lib/common/xml.c xmlAddChild(match, child); match 2088 lib/common/xml.c if(position != __xml_offset(match)) { match 2092 lib/common/xml.c if(p > __xml_offset(match)) { match 2096 lib/common/xml.c CRM_ASSERT(match->parent != NULL); match 2097 lib/common/xml.c match_child = match->parent->children; match 2104 lib/common/xml.c match->name, position, __xml_offset(match), match->prev, match 2105 lib/common/xml.c match_child?"next":"last", match_child?match_child:match->parent->last); match 2108 lib/common/xml.c xmlAddPrevSibling(match_child, match); match 2111 lib/common/xml.c CRM_ASSERT(match->parent->last != NULL); match 2112 lib/common/xml.c xmlAddNextSibling(match->parent->last, match); match 2116 lib/common/xml.c crm_trace("%s is already in position %d", match->name, position); match 2119 lib/common/xml.c if(position != __xml_offset(match)) { match 2121 lib/common/xml.c match->name, ID(match), __xml_offset(match), position, match->prev); match 2126 lib/common/xml.c free_xml(match); match 2129 lib/common/xml.c xmlAttr *pIter = crm_first_attr(match); match 2140 lib/common/xml.c xml_remove_prop(match, name); match 2147 lib/common/xml.c crm_xml_add(match, name, value); match 5055 lib/common/xml.c xmlNode *match = NULL; match 5057 lib/common/xml.c for (match = __xml_first_child(parent); match != NULL; match = __xml_next(match)) { match 5063 lib/common/xml.c if (name == NULL || strcmp((const char *)match->name, name) == 0) { match 5064 lib/common/xml.c return match; match 5080 lib/common/xml.c xmlNode *match = __xml_next(sibling); match 5083 lib/common/xml.c while (match != NULL) { match 5084 lib/common/xml.c if (!strcmp(crm_element_name(match), name)) { match 5085 lib/common/xml.c return match; match 5087 lib/common/xml.c match = __xml_next(match); match 66 lib/common/xpath.c xmlNode *match = NULL; match 81 lib/common/xpath.c match = xpathObj->nodesetval->nodeTab[index]; match 82 lib/common/xpath.c CRM_CHECK(match != NULL, return NULL); match 89 lib/common/xpath.c if (match->type == XML_DOCUMENT_NODE) { match 91 lib/common/xpath.c match = match->children; match 93 lib/common/xpath.c } else if (match->type != XML_ELEMENT_NODE match 94 lib/common/xpath.c && match->parent && match->parent->type == XML_ELEMENT_NODE) { match 96 lib/common/xpath.c match = match->parent; match 98 lib/common/xpath.c } else if (match->type != XML_ELEMENT_NODE) { match 100 lib/common/xpath.c crm_err("We only support %d not %d", XML_ELEMENT_NODE, match->type); match 101 lib/common/xpath.c match = NULL; match 103 lib/common/xpath.c return match; match 250 lib/common/xpath.c xmlNode *match = getXpathResult(xpathObj, lpc); match 252 lib/common/xpath.c CRM_LOG_ASSERT(match != NULL); match 253 lib/common/xpath.c if(match != NULL) { match 254 lib/common/xpath.c matchNodePath = (char *)xmlGetNodePath(match); match 1431 lib/fencing/st_client.c xmlNode *match = getXpathResult(xpathObj, lpc); match 1433 lib/fencing/st_client.c CRM_LOG_ASSERT(match != NULL); match 1434 lib/fencing/st_client.c if(match != NULL) { match 1435 lib/fencing/st_client.c xmlChar *match_path = xmlGetNodePath(match); match 1439 lib/fencing/st_client.c *devices = stonith_key_value_add(*devices, NULL, crm_element_value(match, XML_ATTR_ID)); match 507 lib/pengine/container.c gpointer match = g_hash_table_lookup(rsc->allowed_nodes, uname); match 509 lib/pengine/container.c if (match) { match 510 lib/pengine/container.c ((pe_node_t *) match)->weight = -INFINITY; match 511 lib/pengine/container.c ((pe_node_t *) match)->rsc_discover_mode = pe_discover_never; match 190 lib/pengine/native.c bool match = FALSE; match 199 lib/pengine/native.c match = FALSE; match 202 lib/pengine/native.c match = TRUE; match 206 lib/pengine/native.c match = TRUE; match 210 lib/pengine/native.c match = TRUE; match 215 lib/pengine/native.c match = pe_base_name_eq(rsc, id); match 218 lib/pengine/native.c if (match && on_node) { match 222 lib/pengine/native.c match = FALSE; match 226 lib/pengine/native.c if (match) { match 262 lib/pengine/status.c resource_t *match = match 264 lib/pengine/status.c if (match != NULL) { match 265 lib/pengine/status.c return match; match 275 lib/pengine/status.c node_t *match = pe_find_node_id(nodes, id); match 277 lib/pengine/status.c if (match) { match 278 lib/pengine/status.c return match; match 420 lib/pengine/unpack.c bool match = FALSE; match 434 lib/pengine/unpack.c match = TRUE; match 437 lib/pengine/unpack.c if (match) { match 442 lib/pengine/unpack.c return match; match 1486 lib/pengine/utils.c node_t *match = NULL; match 1507 lib/pengine/utils.c match = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); match 1508 lib/pengine/utils.c if (match == NULL) { match 1509 lib/pengine/utils.c match = node_copy(node); match 1510 lib/pengine/utils.c g_hash_table_insert(rsc->allowed_nodes, (gpointer) match->details->id, match); match 1512 lib/pengine/utils.c match->weight = merge_weights(match->weight, score); match 1852 lib/pengine/utils.c char *match = strstr(param_string, name); match 1859 lib/pengine/utils.c if (need_present && match == NULL) { match 1863 lib/pengine/utils.c } else if (need_present == FALSE && match) { match 2179 lib/pengine/utils.c resource_t *match = gIter->data; match 2180 lib/pengine/utils.c op_digest_cache_t *data = fencing_action_digest_cmp(match, node, data_set); match 2184 lib/pengine/utils.c crm_notice("Unfencing %s (remote): because the definition of %s changed", node->details->uname, match->id); match 2187 lib/pengine/utils.c fprintf(stdout, " notice: Unfencing %s (remote): because the definition of %s changed\n", node->details->uname, match->id); match 2193 lib/pengine/utils.c "%s:%s:%s,", match->id, (const char*)g_hash_table_lookup(match->meta, XML_ATTR_TYPE), data->digest_all_calc); match 2197 lib/pengine/utils.c "%s:%s:%s,", match->id, (const char*)g_hash_table_lookup(match->meta, XML_ATTR_TYPE), data->digest_secure_calc); match 398 lib/services/systemd.c const char *match = NULL; match 420 lib/services/systemd.c match = systemd_unit_extension(value.str); match 421 lib/services/systemd.c if (match == NULL) { match 439 lib/services/systemd.c if (!strcmp(match, ".service")) { match 441 lib/services/systemd.c unit_name = strndup(basename, match - basename); match 443 lib/services/systemd.c } else if (!strcmp(match, ".mount") match 444 lib/services/systemd.c || !strcmp(match, ".socket")) { match 115 lib/services/upstart.c char *match = NULL; match 121 lib/services/upstart.c match = strstr(input, search); match 122 lib/services/upstart.c if (match == NULL) { match 125 lib/services/upstart.c crm_trace("Found: %s", match); match 126 lib/services/upstart.c match[0] = replace; match 127 lib/services/upstart.c len = strlen(match) - shuffle; match 129 lib/services/upstart.c match[lpc] = match[lpc + shuffle]; match 490 pengine/allocate.c gboolean match = FALSE; match 511 pengine/allocate.c match = TRUE; match 514 pengine/allocate.c match = TRUE; match 519 pengine/allocate.c match = TRUE; match 522 pengine/allocate.c match = TRUE; match 526 pengine/allocate.c if (match) { match 707 pengine/allocate.c node_t *match = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); match 711 pengine/allocate.c } else if (match != NULL || is_set(data_set->flags, pe_flag_symmetric_cluster)) { match 943 pengine/allocate.c node_t *match; match 954 pengine/allocate.c match = g_hash_table_lookup(rsc->allowed_nodes, node->details->id); match 955 pengine/allocate.c if (match && match->rsc_discover_mode != pe_discover_exclusive) { match 956 pengine/allocate.c match->weight = -INFINITY; match 120 pengine/clone.c node_t *match = pe_hash_table_lookup(resource1->allowed_nodes, node1->details->id); match 122 pengine/clone.c if (match == NULL || match->weight < 0) { match 130 pengine/clone.c node_t *match = pe_hash_table_lookup(resource2->allowed_nodes, node2->details->id); match 132 pengine/clone.c if (match == NULL || match->weight < 0) { match 716 pengine/clone.c action_t *match = NULL; match 734 pengine/clone.c match = g_list_nth_data(active, 0); match 743 pengine/clone.c match = g_list_nth_data(possible, 0); match 758 pengine/clone.c return match; match 184 pengine/constraints.c resource_t *match = parent->fns->find_rsc(parent, id, NULL, match 187 pengine/constraints.c if (match != NULL) { match 188 pengine/constraints.c if(safe_str_neq(match->id, id)) { match 190 pengine/constraints.c match = uber_parent(match); match 191 pengine/constraints.c crm_debug("Found %s for %s", match->id, id); match 193 pengine/constraints.c return match; match 751 pengine/constraints.c node_t *match = pe_find_node(data_set->nodes, node); match 753 pengine/constraints.c if (!match) { match 756 pengine/constraints.c location = rsc2node_new(id, rsc_lh, score_i, discovery, match, data_set); match 470 pengine/master.c node_t *match = NULL; match 502 pengine/master.c match = pe_find_node_id(rsc->running_on, node->details->id); match 503 pengine/master.c if ((match == NULL) && (known == NULL)) { match 510 pengine/master.c match = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); match 511 pengine/master.c if (match == NULL) { match 514 pengine/master.c } else if (match->weight < 0) { match 516 pengine/master.c rsc->id, match->details->uname, match->weight); match 3934 tools/crm_mon.c xmlNode *match = NULL; match 3941 tools/crm_mon.c match = change->children; match 3950 tools/crm_mon.c match = first_named_child(change, XML_DIFF_RESULT); match 3951 tools/crm_mon.c if(match) { match 3952 tools/crm_mon.c match = match->children; match 3956 tools/crm_mon.c if(match) { match 3957 tools/crm_mon.c name = (const char *)match->name; match 3960 tools/crm_mon.c crm_trace("Handling %s operation for %s %p, %s", op, xpath, match, name); match 3970 tools/crm_mon.c xmlNode *status = first_named_child(match, XML_CIB_TAG_STATUS); match 3983 tools/crm_mon.c for (state = __xml_first_child(match); state != NULL; state = __xml_next(state)) { match 3992 tools/crm_mon.c node = crm_element_value(match, XML_ATTR_UNAME); match 3994 tools/crm_mon.c node = ID(match); match 3996 tools/crm_mon.c handle_rsc_op(match, node); match 3999 tools/crm_mon.c node = ID(match); match 4000 tools/crm_mon.c handle_rsc_op(match, node); match 4005 tools/crm_mon.c handle_rsc_op(match, local_node); match 4011 tools/crm_mon.c handle_rsc_op(match, local_node); match 4017 tools/crm_mon.c handle_rsc_op(match, local_node); match 4021 tools/crm_mon.c crm_trace("Ignoring %s operation for %s %p, %s", op, xpath, match, name); match 258 tools/fake_transition.c xmlNode *match = NULL; match 265 tools/fake_transition.c match = get_xpath_object(xpath, cib_node, LOG_DEBUG_2); match 268 tools/fake_transition.c return match;