xml_rsc 798 crmd/lrm.c xmlNode *xml_rsc = create_xml_node(rsc_list, XML_LRM_TAG_RESOURCE); xml_rsc 800 crmd/lrm.c crm_xml_add(xml_rsc, XML_ATTR_ID, entry->id); xml_rsc 801 crmd/lrm.c crm_xml_add(xml_rsc, XML_ATTR_TYPE, entry->rsc.type); xml_rsc 802 crmd/lrm.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_CLASS, entry->rsc.class); xml_rsc 803 crmd/lrm.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_PROVIDER, entry->rsc.provider); xml_rsc 809 crmd/lrm.c crm_xml_add(xml_rsc, XML_RSC_ATTR_CONTAINER, container); xml_rsc 812 crmd/lrm.c build_operation_update(xml_rsc, &(entry->rsc), entry->failed, lrm_state->node_name, __FUNCTION__); xml_rsc 813 crmd/lrm.c build_operation_update(xml_rsc, &(entry->rsc), entry->last, lrm_state->node_name, __FUNCTION__); xml_rsc 815 crmd/lrm.c build_operation_update(xml_rsc, &(entry->rsc), gIter->data, lrm_state->node_name, __FUNCTION__); xml_rsc 1412 crmd/lrm.c xmlNode *xml_rsc = find_xml_node(action, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1414 crmd/lrm.c if(xml_rsc == NULL) { xml_rsc 1427 crmd/lrm.c op = construct_op(lrm_state, action, ID(xml_rsc), operation); xml_rsc 1452 crmd/lrm.c rsc.type = crm_element_value_copy(xml_rsc, XML_ATTR_TYPE); xml_rsc 1453 crmd/lrm.c rsc.class = crm_element_value_copy(xml_rsc, XML_AGENT_ATTR_CLASS); xml_rsc 1454 crmd/lrm.c rsc.provider = crm_element_value_copy(xml_rsc, XML_AGENT_ATTR_PROVIDER); xml_rsc 1533 crmd/lrm.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1535 crmd/lrm.c CRM_CHECK(xml_rsc != NULL, return); xml_rsc 1546 crmd/lrm.c op = construct_op(lrm_state, input->xml, ID(xml_rsc), "asyncmon"); xml_rsc 1560 crmd/lrm.c crm_err("%s does not have permission to fail %s", user_name, ID(xml_rsc)); xml_rsc 1561 crmd/lrm.c send_direct_ack(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1567 crmd/lrm.c rsc = get_lrm_resource(lrm_state, xml_rsc, input->xml, create_rsc); xml_rsc 1579 crmd/lrm.c send_direct_ack(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1646 crmd/lrm.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1648 crmd/lrm.c CRM_CHECK(xml_rsc != NULL, return); xml_rsc 1661 crmd/lrm.c rsc = get_lrm_resource(lrm_state, xml_rsc, input->xml, create_rsc); xml_rsc 1663 crmd/lrm.c crm_err("Invalid resource definition for %s", ID(xml_rsc)); xml_rsc 1672 crmd/lrm.c delete_rsc_entry(lrm_state, input, ID(xml_rsc), NULL, pcmk_ok, user_name); xml_rsc 1675 crmd/lrm.c send_task_ok_ack(lrm_state, input, ID(xml_rsc), NULL, operation, xml_rsc 632 crmd/messages.c xmlNode *xml_rsc = first_named_child(xml_op, XML_CIB_TAG_RESOURCE); xml_rsc 635 crmd/messages.c if (xml_rsc) { xml_rsc 636 crmd/messages.c rsc = ID(xml_rsc); xml_rsc 426 lib/pengine/unpack.c for (xml_rsc = __xml_first_child(parent); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 427 lib/pengine/unpack.c const char *id = ID(xml_rsc); xml_rsc 1650 lib/pengine/unpack.c xmlNode *xml_rsc = create_xml_node(NULL, XML_CIB_TAG_RESOURCE); xml_rsc 1652 lib/pengine/unpack.c copy_in_properties(xml_rsc, rsc_entry); xml_rsc 1653 lib/pengine/unpack.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 1654 lib/pengine/unpack.c crm_log_xml_debug(xml_rsc, "Orphan resource"); xml_rsc 1656 lib/pengine/unpack.c if (!common_unpack(xml_rsc, &rsc, NULL, data_set)) { xml_rsc 1660 lib/pengine/unpack.c if (xml_contains_remote_node(xml_rsc)) { xml_rsc 468 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 476 pengine/constraints.c for (xml_rsc = __xml_first_child(set); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 479 pengine/constraints.c const char *id = ID(xml_rsc); xml_rsc 481 pengine/constraints.c if (safe_str_neq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF)) { xml_rsc 495 pengine/constraints.c xmlNode *last_ref = xml_rsc; xml_rsc 537 pengine/constraints.c tag_refs = g_list_append(tag_refs, xml_rsc); xml_rsc 885 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 905 pengine/constraints.c for (xml_rsc = __xml_first_child(set); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 906 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 907 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 1572 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 1613 pengine/constraints.c for (xml_rsc = __xml_first_child(set); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1614 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1615 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, resource, ID(xml_rsc)); xml_rsc 1745 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 1797 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1798 pengine/constraints.c if (!crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1802 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 1832 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1833 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1834 pengine/constraints.c rid = ID(xml_rsc); xml_rsc 1841 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1842 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1843 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 1853 pengine/constraints.c for (xml_rsc = __xml_first_child(set2); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1854 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1855 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 1864 pengine/constraints.c for (xml_rsc = __xml_first_child(set2); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1865 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1866 pengine/constraints.c rid = ID(xml_rsc); xml_rsc 1877 pengine/constraints.c for (xml_rsc = __xml_first_child(set2); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1878 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1879 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 1885 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 1887 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1888 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1889 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 1895 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 1896 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 1899 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 2158 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 2181 pengine/constraints.c for (xml_rsc = __xml_first_child(set); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2182 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2183 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 2195 pengine/constraints.c for (xml_rsc = __xml_first_child(set); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2196 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2197 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 2214 pengine/constraints.c for (xml_rsc = __xml_first_child(set); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2215 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2218 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 2248 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 2260 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2261 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2262 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 2272 pengine/constraints.c for (xml_rsc = __xml_first_child(set2); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2273 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2274 pengine/constraints.c rid = ID(xml_rsc); xml_rsc 2284 pengine/constraints.c for (xml_rsc = __xml_first_child(set2); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2285 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2286 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 2292 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2293 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2294 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 2300 pengine/constraints.c for (xml_rsc = __xml_first_child(set1); xml_rsc != NULL; xml_rsc = __xml_next_element(xml_rsc)) { xml_rsc 2301 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { xml_rsc 2304 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 2656 pengine/constraints.c xmlNode *xml_rsc = NULL; xml_rsc 2672 pengine/constraints.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 2673 pengine/constraints.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 2675 pengine/constraints.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 454 tools/crm_resource_runtime.c xmlNode *xml_rsc = NULL; xml_rsc 496 tools/crm_resource_runtime.c xml_rsc = create_xml_node(msg_data, XML_CIB_TAG_RESOURCE); xml_rsc 498 tools/crm_resource_runtime.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc->clone_name); xml_rsc 499 tools/crm_resource_runtime.c crm_xml_add(xml_rsc, XML_ATTR_ID_LONG, rsc->id); xml_rsc 502 tools/crm_resource_runtime.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc->id); xml_rsc 505 tools/crm_resource_runtime.c value = crm_copy_xml_element(rsc->xml, xml_rsc, XML_ATTR_TYPE); xml_rsc 511 tools/crm_resource_runtime.c value = crm_copy_xml_element(rsc->xml, xml_rsc, XML_AGENT_ATTR_CLASS); xml_rsc 517 tools/crm_resource_runtime.c crm_copy_xml_element(rsc->xml, xml_rsc, XML_AGENT_ATTR_PROVIDER);