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 1441 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(action, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1443 daemons/controld/controld_execd.c if ((xml_rsc == NULL) || (ID(xml_rsc) == NULL)) { xml_rsc 1453 daemons/controld/controld_execd.c ID(xml_rsc), rc, target_node); xml_rsc 1457 daemons/controld/controld_execd.c op = construct_op(lrm_state, action, ID(xml_rsc), operation); xml_rsc 1501 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1503 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc != NULL, return); xml_rsc 1513 daemons/controld/controld_execd.c op = construct_op(lrm_state, xml, ID(xml_rsc), "asyncmon"); xml_rsc 1520 daemons/controld/controld_execd.c crm_err("%s does not have permission to fail %s", user_name, ID(xml_rsc)); xml_rsc 1524 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1530 daemons/controld/controld_execd.c if (get_lrm_resource(lrm_state, xml_rsc, TRUE, &rsc) == pcmk_ok) { xml_rsc 1545 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1816 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1822 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc && ID(xml_rsc), return); xml_rsc 1824 daemons/controld/controld_execd.c rc = get_lrm_resource(lrm_state, xml_rsc, create_rsc, &rsc); xml_rsc 1838 daemons/controld/controld_execd.c ID(xml_rsc), operation, xml_rsc 1840 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, input, ID(xml_rsc), NULL, pcmk_ok, xml_rsc 1846 daemons/controld/controld_execd.c crm_err("Invalid resource definition for %s", ID(xml_rsc)); xml_rsc 1857 daemons/controld/controld_execd.c ID(xml_rsc), pcmk_strerror(rc), rc); xml_rsc 594 daemons/controld/controld_messages.c xmlNode *xml_rsc = first_named_child(xml_op, XML_CIB_TAG_RESOURCE); xml_rsc 597 daemons/controld/controld_messages.c if (xml_rsc) { xml_rsc 598 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 320 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 349 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 350 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 352 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 366 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 367 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 369 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 388 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 389 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 394 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 420 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 439 lib/pacemaker/pcmk_sched_colocation.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 440 lib/pacemaker/pcmk_sched_colocation.c if (xml_rsc != NULL) { xml_rsc 441 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 450 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 451 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 453 lib/pacemaker/pcmk_sched_colocation.c rid = ID(xml_rsc); xml_rsc 466 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 467 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 469 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 475 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 476 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 478 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 486 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 487 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 492 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 593 lib/pacemaker/pcmk_sched_ordering.c xmlNode *xml_rsc = NULL; xml_rsc 627 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 628 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 630 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, resource, ID(xml_rsc)); xml_rsc 714 lib/pacemaker/pcmk_sched_ordering.c xmlNode *xml_rsc = NULL; xml_rsc 765 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 766 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 768 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 799 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 800 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 801 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 808 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 809 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 811 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 822 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 823 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 825 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 831 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 832 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 833 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 842 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 843 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 845 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 851 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 852 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 854 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 860 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 861 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 863 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 259 lib/pacemaker/pcmk_sched_tickets.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 260 lib/pacemaker/pcmk_sched_tickets.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 265 lib/pacemaker/pcmk_sched_tickets.c ID(xml_rsc)); xml_rsc 268 lib/pacemaker/pcmk_sched_tickets.c set_id, ID(xml_rsc)); xml_rsc 1688 lib/pengine/unpack.c xmlNode *xml_rsc = create_xml_node(NULL, XML_CIB_TAG_RESOURCE); xml_rsc 1690 lib/pengine/unpack.c copy_in_properties(xml_rsc, rsc_entry); xml_rsc 1691 lib/pengine/unpack.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 1692 lib/pengine/unpack.c crm_log_xml_debug(xml_rsc, "Orphan resource"); xml_rsc 1694 lib/pengine/unpack.c if (pe__unpack_resource(xml_rsc, &rsc, NULL, data_set) != pcmk_rc_ok) { xml_rsc 1698 lib/pengine/unpack.c if (xml_contains_remote_node(xml_rsc)) {