xml_rsc 787 daemons/controld/controld_execd.c xmlNode *xml_rsc = create_xml_node(rsc_list, XML_LRM_TAG_RESOURCE); xml_rsc 789 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_ATTR_ID, entry->id); xml_rsc 790 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_ATTR_TYPE, entry->rsc.type); xml_rsc 791 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_CLASS, entry->rsc.standard); xml_rsc 792 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_PROVIDER, entry->rsc.provider); xml_rsc 798 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_RSC_ATTR_CONTAINER, container); xml_rsc 801 daemons/controld/controld_execd.c build_operation_update(xml_rsc, &(entry->rsc), entry->failed, lrm_state->node_name, xml_rsc 803 daemons/controld/controld_execd.c build_operation_update(xml_rsc, &(entry->rsc), entry->last, lrm_state->node_name, xml_rsc 806 daemons/controld/controld_execd.c build_operation_update(xml_rsc, &(entry->rsc), gIter->data, lrm_state->node_name, xml_rsc 1448 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(action, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1450 daemons/controld/controld_execd.c if ((xml_rsc == NULL) || (ID(xml_rsc) == NULL)) { xml_rsc 1460 daemons/controld/controld_execd.c ID(xml_rsc), rc, target_node); xml_rsc 1464 daemons/controld/controld_execd.c op = construct_op(lrm_state, action, ID(xml_rsc), operation); xml_rsc 1508 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1510 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc != NULL, return); xml_rsc 1520 daemons/controld/controld_execd.c op = construct_op(lrm_state, xml, ID(xml_rsc), "asyncmon"); xml_rsc 1527 daemons/controld/controld_execd.c crm_err("%s does not have permission to fail %s", user_name, ID(xml_rsc)); xml_rsc 1531 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1537 daemons/controld/controld_execd.c if (get_lrm_resource(lrm_state, xml_rsc, TRUE, &rsc) == pcmk_ok) { xml_rsc 1552 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1807 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1813 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc && ID(xml_rsc), return); xml_rsc 1815 daemons/controld/controld_execd.c rc = get_lrm_resource(lrm_state, xml_rsc, create_rsc, &rsc); xml_rsc 1829 daemons/controld/controld_execd.c ID(xml_rsc), operation, xml_rsc 1831 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, input, ID(xml_rsc), NULL, pcmk_ok, xml_rsc 1837 daemons/controld/controld_execd.c crm_err("Invalid resource definition for %s", ID(xml_rsc)); xml_rsc 1848 daemons/controld/controld_execd.c ID(xml_rsc), pcmk_strerror(rc), rc); xml_rsc 595 daemons/controld/controld_messages.c xmlNode *xml_rsc = first_named_child(xml_op, XML_CIB_TAG_RESOURCE); xml_rsc 598 daemons/controld/controld_messages.c if (xml_rsc) { xml_rsc 599 daemons/controld/controld_messages.c rsc = ID(xml_rsc); xml_rsc 461 lib/common/ipc_controld.c xmlNode *request, *msg_data, *xml_rsc, *params; xml_rsc 491 lib/common/ipc_controld.c xml_rsc = create_xml_node(msg_data, XML_CIB_TAG_RESOURCE); xml_rsc 492 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 493 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_ID_LONG, rsc_long_id); xml_rsc 494 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_CLASS, standard); xml_rsc 495 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_PROVIDER, provider); xml_rsc 496 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_TYPE, type); xml_rsc 292 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 321 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 322 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 324 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 338 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 339 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 341 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 360 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 361 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 366 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 392 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 411 lib/pacemaker/pcmk_sched_colocation.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 412 lib/pacemaker/pcmk_sched_colocation.c if (xml_rsc != NULL) { xml_rsc 413 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 422 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 423 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 425 lib/pacemaker/pcmk_sched_colocation.c rid = ID(xml_rsc); xml_rsc 438 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 439 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 441 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 447 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 448 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 450 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 458 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 459 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 464 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 232 lib/pacemaker/pcmk_sched_constraints.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 233 lib/pacemaker/pcmk_sched_constraints.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 238 lib/pacemaker/pcmk_sched_constraints.c if (!pcmk__valid_resource_or_tag(data_set, ID(xml_rsc), &rsc, xml_rsc 242 lib/pacemaker/pcmk_sched_constraints.c ID(xml_obj), ID(xml_rsc)); xml_rsc 251 lib/pacemaker/pcmk_sched_constraints.c xmlNode *last_ref = xml_rsc; xml_rsc 292 lib/pacemaker/pcmk_sched_constraints.c tag_refs = g_list_append(tag_refs, xml_rsc); xml_rsc 443 lib/pacemaker/pcmk_sched_location.c xmlNode *xml_rsc = NULL; xml_rsc 462 lib/pacemaker/pcmk_sched_location.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 463 lib/pacemaker/pcmk_sched_location.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 466 lib/pacemaker/pcmk_sched_location.c ID(xml_rsc)); xml_rsc 469 lib/pacemaker/pcmk_sched_location.c set_id, ID(xml_rsc)); xml_rsc 744 lib/pacemaker/pcmk_sched_ordering.c xmlNode *xml_rsc = NULL; xml_rsc 778 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 779 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 781 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, resource, ID(xml_rsc)); xml_rsc 865 lib/pacemaker/pcmk_sched_ordering.c xmlNode *xml_rsc = NULL; xml_rsc 916 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 917 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 919 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 950 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 951 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 952 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 959 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 960 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 962 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 973 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 974 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 976 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 982 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 983 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 984 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 994 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 995 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 997 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 1003 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 1004 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 1006 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 1012 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 1013 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 1015 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 244 lib/pacemaker/pcmk_sched_tickets.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 245 lib/pacemaker/pcmk_sched_tickets.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 250 lib/pacemaker/pcmk_sched_tickets.c ID(xml_rsc)); xml_rsc 253 lib/pacemaker/pcmk_sched_tickets.c set_id, ID(xml_rsc)); xml_rsc 1676 lib/pengine/unpack.c xmlNode *xml_rsc = create_xml_node(NULL, XML_CIB_TAG_RESOURCE); xml_rsc 1678 lib/pengine/unpack.c copy_in_properties(xml_rsc, rsc_entry); xml_rsc 1679 lib/pengine/unpack.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 1680 lib/pengine/unpack.c crm_log_xml_debug(xml_rsc, "Orphan resource"); xml_rsc 1682 lib/pengine/unpack.c if (!common_unpack(xml_rsc, &rsc, NULL, data_set)) { xml_rsc 1686 lib/pengine/unpack.c if (xml_contains_remote_node(xml_rsc)) {