xml_rsc 542 daemons/controld/controld_execd.c xmlNode *xml_rsc = create_xml_node(rsc_list, XML_LRM_TAG_RESOURCE); xml_rsc 544 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_ATTR_ID, entry->id); xml_rsc 545 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_ATTR_TYPE, entry->rsc.type); xml_rsc 546 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_CLASS, entry->rsc.standard); xml_rsc 547 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_PROVIDER, entry->rsc.provider); xml_rsc 553 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_RSC_ATTR_CONTAINER, container); xml_rsc 556 daemons/controld/controld_execd.c controld_add_resource_history_xml(xml_rsc, &(entry->rsc), entry->failed, xml_rsc 558 daemons/controld/controld_execd.c controld_add_resource_history_xml(xml_rsc, &(entry->rsc), entry->last, xml_rsc 561 daemons/controld/controld_execd.c controld_add_resource_history_xml(xml_rsc, &(entry->rsc), gIter->data, xml_rsc 1101 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(action, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1103 daemons/controld/controld_execd.c if ((xml_rsc == NULL) || (ID(xml_rsc) == NULL)) { xml_rsc 1113 daemons/controld/controld_execd.c ID(xml_rsc), rc, target_node); xml_rsc 1117 daemons/controld/controld_execd.c op = construct_op(lrm_state, action, ID(xml_rsc), operation); xml_rsc 1163 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1165 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc != NULL, return); xml_rsc 1175 daemons/controld/controld_execd.c op = construct_op(lrm_state, xml, ID(xml_rsc), "asyncmon"); xml_rsc 1182 daemons/controld/controld_execd.c crm_err("%s does not have permission to fail %s", user_name, ID(xml_rsc)); xml_rsc 1186 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1192 daemons/controld/controld_execd.c if (get_lrm_resource(lrm_state, xml_rsc, TRUE, &rsc) == pcmk_ok) { xml_rsc 1207 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1490 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1496 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc && ID(xml_rsc), return); xml_rsc 1498 daemons/controld/controld_execd.c rc = get_lrm_resource(lrm_state, xml_rsc, create_rsc, &rsc); xml_rsc 1512 daemons/controld/controld_execd.c ID(xml_rsc), operation, xml_rsc 1514 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, input, ID(xml_rsc), NULL, pcmk_ok, xml_rsc 1520 daemons/controld/controld_execd.c crm_err("Invalid resource definition for %s", ID(xml_rsc)); xml_rsc 1531 daemons/controld/controld_execd.c ID(xml_rsc), pcmk_strerror(rc), rc); xml_rsc 626 daemons/controld/controld_messages.c xmlNode *xml_rsc = first_named_child(xml_op, XML_CIB_TAG_RESOURCE); xml_rsc 629 daemons/controld/controld_messages.c if (xml_rsc) { xml_rsc 630 daemons/controld/controld_messages.c rsc = ID(xml_rsc); xml_rsc 480 lib/common/ipc_controld.c xmlNode *request, *msg_data, *xml_rsc, *params; xml_rsc 510 lib/common/ipc_controld.c xml_rsc = create_xml_node(msg_data, XML_CIB_TAG_RESOURCE); xml_rsc 511 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 512 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_ID_LONG, rsc_long_id); xml_rsc 513 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_CLASS, standard); xml_rsc 514 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_PROVIDER, provider); xml_rsc 515 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_TYPE, type); xml_rsc 443 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 483 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 484 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 486 lib/pacemaker/pcmk_sched_colocation.c xml_rsc_id = ID(xml_rsc); xml_rsc 519 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 520 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 524 lib/pacemaker/pcmk_sched_colocation.c xml_rsc_id = ID(xml_rsc); xml_rsc 569 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 590 lib/pacemaker/pcmk_sched_colocation.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 591 lib/pacemaker/pcmk_sched_colocation.c if (xml_rsc != NULL) { xml_rsc 592 lib/pacemaker/pcmk_sched_colocation.c xml_rsc_id = ID(xml_rsc); xml_rsc 608 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 609 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 611 lib/pacemaker/pcmk_sched_colocation.c xml_rsc_id = ID(xml_rsc); xml_rsc 631 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 632 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 634 lib/pacemaker/pcmk_sched_colocation.c xml_rsc_id = ID(xml_rsc); xml_rsc 649 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 650 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 652 lib/pacemaker/pcmk_sched_colocation.c xml_rsc_id = ID(xml_rsc); xml_rsc 669 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 670 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 674 lib/pacemaker/pcmk_sched_colocation.c xml_rsc_id = ID(xml_rsc); xml_rsc 698 lib/pacemaker/pcmk_sched_colocation.c "resource", ID(set1), ID(xml_rsc), xml_rsc 235 lib/pacemaker/pcmk_sched_constraints.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 236 lib/pacemaker/pcmk_sched_constraints.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 241 lib/pacemaker/pcmk_sched_constraints.c if (!pcmk__valid_resource_or_tag(scheduler, ID(xml_rsc), &rsc, xml_rsc 245 lib/pacemaker/pcmk_sched_constraints.c ID(xml_obj), ID(xml_rsc)); xml_rsc 254 lib/pacemaker/pcmk_sched_constraints.c xmlNode *last_ref = xml_rsc; xml_rsc 294 lib/pacemaker/pcmk_sched_constraints.c tag_refs = g_list_append(tag_refs, xml_rsc); xml_rsc 444 lib/pacemaker/pcmk_sched_location.c xmlNode *xml_rsc = NULL; xml_rsc 463 lib/pacemaker/pcmk_sched_location.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 464 lib/pacemaker/pcmk_sched_location.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 467 lib/pacemaker/pcmk_sched_location.c ID(xml_rsc)); xml_rsc 470 lib/pacemaker/pcmk_sched_location.c set_id, ID(xml_rsc)); xml_rsc 629 lib/pacemaker/pcmk_sched_ordering.c for (const xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 630 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 632 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, resource, ID(xml_rsc)); xml_rsc 716 lib/pacemaker/pcmk_sched_ordering.c const xmlNode *xml_rsc = NULL; xml_rsc 766 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 767 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 769 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 802 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 803 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 804 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 811 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 812 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 814 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 825 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 826 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 828 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 834 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 835 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 836 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 845 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 846 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 848 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 854 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 855 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 857 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 863 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 864 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 866 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 255 lib/pacemaker/pcmk_sched_tickets.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 256 lib/pacemaker/pcmk_sched_tickets.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 261 lib/pacemaker/pcmk_sched_tickets.c ID(xml_rsc)); xml_rsc 264 lib/pacemaker/pcmk_sched_tickets.c set_id, ID(xml_rsc)); xml_rsc 1907 lib/pengine/unpack.c xmlNode *xml_rsc = create_xml_node(NULL, XML_CIB_TAG_RESOURCE); xml_rsc 1909 lib/pengine/unpack.c copy_in_properties(xml_rsc, rsc_entry); xml_rsc 1910 lib/pengine/unpack.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 1911 lib/pengine/unpack.c crm_log_xml_debug(xml_rsc, "Orphan resource"); xml_rsc 1913 lib/pengine/unpack.c if (pe__unpack_resource(xml_rsc, &rsc, NULL, scheduler) != pcmk_rc_ok) { xml_rsc 1917 lib/pengine/unpack.c if (xml_contains_remote_node(xml_rsc)) {