request 57 daemons/attrd/attrd_corosync.c pcmk__request_t request = { request 67 daemons/attrd/attrd_corosync.c request.op = crm_element_value_copy(request.xml, PCMK__XA_TASK); request 68 daemons/attrd/attrd_corosync.c CRM_CHECK(request.op != NULL, return); request 70 daemons/attrd/attrd_corosync.c attrd_handle_request(&request); request 76 daemons/attrd/attrd_corosync.c !pcmk__str_eq(request.op, PCMK__ATTRD_CMD_CONFIRM, pcmk__str_none)) { request 97 daemons/attrd/attrd_corosync.c pcmk__reset_request(&request); request 454 daemons/attrd/attrd_corosync.c attrd_peer_clear_failure(pcmk__request_t *request) request 456 daemons/attrd/attrd_corosync.c xmlNode *xml = request->xml; request 466 daemons/attrd/attrd_corosync.c crm_node_t *peer = crm_get_peer(0, request->peer); request 99 daemons/attrd/attrd_ipc.c attrd_client_clear_failure(pcmk__request_t *request) request 101 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; request 109 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 146 daemons/attrd/attrd_ipc.c return attrd_client_update(request); request 150 daemons/attrd/attrd_ipc.c attrd_client_peer_remove(pcmk__request_t *request) request 152 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; request 158 daemons/attrd/attrd_ipc.c attrd_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags); request 183 daemons/attrd/attrd_ipc.c pcmk__client_name(request->ipc_client), host); request 188 daemons/attrd/attrd_ipc.c pcmk__client_name(request->ipc_client)); request 191 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 196 daemons/attrd/attrd_ipc.c attrd_client_query(pcmk__request_t *request) request 198 daemons/attrd/attrd_ipc.c xmlNode *query = request->xml; request 202 daemons/attrd/attrd_ipc.c crm_debug("Query arrived from %s", pcmk__client_name(request->ipc_client)); request 207 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, request 209 daemons/attrd/attrd_ipc.c pcmk__client_name(request->ipc_client)); request 217 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, request 219 daemons/attrd/attrd_ipc.c pcmk__client_name(request->ipc_client)); request 222 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 225 daemons/attrd/attrd_ipc.c request->ipc_client->request_id = 0; request 230 daemons/attrd/attrd_ipc.c attrd_client_refresh(pcmk__request_t *request) request 234 daemons/attrd/attrd_ipc.c attrd_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags); request 237 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 306 daemons/attrd/attrd_ipc.c handle_regexes(pcmk__request_t *request) request 308 daemons/attrd/attrd_ipc.c xmlNode *xml = request->xml; request 318 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, request 320 daemons/attrd/attrd_ipc.c pcmk__client_name(request->ipc_client)); request 324 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, request 326 daemons/attrd/attrd_ipc.c pcmk__client_name(request->ipc_client)); request 364 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(pcmk__request_t *request, xmlNode *xml) request 371 daemons/attrd/attrd_ipc.c attrd_expect_confirmations(request, attrd_cluster_sync_point_update); request 388 daemons/attrd/attrd_ipc.c pcmk__request_t *request = (pcmk__request_t *) data; request 393 daemons/attrd/attrd_ipc.c request->xml = child; request 394 daemons/attrd/attrd_ipc.c attrd_client_update(request); request 399 daemons/attrd/attrd_ipc.c attrd_client_update(pcmk__request_t *request) request 404 daemons/attrd/attrd_ipc.c CRM_CHECK((request != NULL) && (request->xml != NULL), return NULL); request 406 daemons/attrd/attrd_ipc.c xml = request->xml; request 426 daemons/attrd/attrd_ipc.c if (handle_value_expansion(&value, child, request->op, attr) == EINVAL) { request 427 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_NOSUCH, PCMK_EXEC_ERROR, request 433 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(request, xml); request 434 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 440 daemons/attrd/attrd_ipc.c xmlNode *orig_xml = request->xml; request 446 daemons/attrd/attrd_ipc.c pcmk__xe_foreach_child(xml, XML_ATTR_OP, send_child_update, request); request 447 daemons/attrd/attrd_ipc.c request->xml = orig_xml; request 457 daemons/attrd/attrd_ipc.c if (handle_regexes(request) != pcmk_rc_ok) { request 465 daemons/attrd/attrd_ipc.c return attrd_client_update(request); request 470 daemons/attrd/attrd_ipc.c if (handle_value_expansion(&value, xml, request->op, attr) == EINVAL) { request 471 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_NOSUCH, PCMK_EXEC_ERROR, request 479 daemons/attrd/attrd_ipc.c send_update_msg_to_cluster(request, xml); request 480 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 579 daemons/attrd/attrd_ipc.c pcmk__request_t request = { request 592 daemons/attrd/attrd_ipc.c request.op = crm_element_value_copy(request.xml, PCMK__XA_TASK); request 593 daemons/attrd/attrd_ipc.c CRM_CHECK(request.op != NULL, return 0); request 595 daemons/attrd/attrd_ipc.c attrd_handle_request(&request); request 596 daemons/attrd/attrd_ipc.c pcmk__reset_request(&request); request 43 daemons/attrd/attrd_messages.c remove_unsupported_sync_points(pcmk__request_t *request) request 45 daemons/attrd/attrd_messages.c if (request->xml->children != NULL && !ATTRD_SUPPORTS_MULTI_MESSAGE(minimum_protocol_version) && request 46 daemons/attrd/attrd_messages.c attrd_request_has_sync_point(request->xml)) { request 48 daemons/attrd/attrd_messages.c pcmk__request_origin(request)); request 49 daemons/attrd/attrd_messages.c remove_sync_point_attribute(request->xml, NULL); request 54 daemons/attrd/attrd_messages.c handle_unknown_request(pcmk__request_t *request) request 57 daemons/attrd/attrd_messages.c request->op, pcmk__request_origin_type(request), request 58 daemons/attrd/attrd_messages.c pcmk__request_origin(request)); request 59 daemons/attrd/attrd_messages.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, request 60 daemons/attrd/attrd_messages.c "Unknown request type '%s' (bug?)", request->op); request 65 daemons/attrd/attrd_messages.c handle_clear_failure_request(pcmk__request_t *request) request 67 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 71 daemons/attrd/attrd_messages.c attrd_peer_clear_failure(request); request 72 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 75 daemons/attrd/attrd_messages.c remove_unsupported_sync_points(request); request 77 daemons/attrd/attrd_messages.c if (attrd_request_has_sync_point(request->xml)) { request 85 daemons/attrd/attrd_messages.c attrd_add_client_to_waitlist(request); request 92 daemons/attrd/attrd_messages.c attrd_send_ack(request->ipc_client, request->ipc_id, request 93 daemons/attrd/attrd_messages.c request->ipc_flags); request 96 daemons/attrd/attrd_messages.c return attrd_client_clear_failure(request); request 101 daemons/attrd/attrd_messages.c handle_confirm_request(pcmk__request_t *request) request 103 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 106 daemons/attrd/attrd_messages.c crm_debug("Received confirmation from %s", request->peer); request 108 daemons/attrd/attrd_messages.c if (crm_element_value_int(request->xml, XML_LRM_ATTR_CALLID, &callid) == -1) { request 109 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, request 112 daemons/attrd/attrd_messages.c attrd_handle_confirmation(callid, request->peer); request 115 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 118 daemons/attrd/attrd_messages.c return handle_unknown_request(request); request 123 daemons/attrd/attrd_messages.c handle_flush_request(pcmk__request_t *request) request 125 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 129 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 132 daemons/attrd/attrd_messages.c return handle_unknown_request(request); request 137 daemons/attrd/attrd_messages.c handle_query_request(pcmk__request_t *request) request 139 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 140 daemons/attrd/attrd_messages.c return handle_unknown_request(request); request 142 daemons/attrd/attrd_messages.c return attrd_client_query(request); request 147 daemons/attrd/attrd_messages.c handle_remove_request(pcmk__request_t *request) request 149 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 150 daemons/attrd/attrd_messages.c const char *host = crm_element_value(request->xml, PCMK__XA_ATTR_NODE_NAME); request 151 daemons/attrd/attrd_messages.c attrd_peer_remove(host, true, request->peer); request 152 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 155 daemons/attrd/attrd_messages.c return attrd_client_peer_remove(request); request 160 daemons/attrd/attrd_messages.c handle_refresh_request(pcmk__request_t *request) request 162 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 163 daemons/attrd/attrd_messages.c return handle_unknown_request(request); request 165 daemons/attrd/attrd_messages.c return attrd_client_refresh(request); request 170 daemons/attrd/attrd_messages.c handle_sync_request(pcmk__request_t *request) request 172 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 173 daemons/attrd/attrd_messages.c crm_node_t *peer = crm_get_peer(0, request->peer); request 175 daemons/attrd/attrd_messages.c attrd_peer_sync(peer, request->xml); request 176 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 179 daemons/attrd/attrd_messages.c return handle_unknown_request(request); request 184 daemons/attrd/attrd_messages.c handle_sync_response_request(pcmk__request_t *request) request 186 daemons/attrd/attrd_messages.c if (request->ipc_client != NULL) { request 187 daemons/attrd/attrd_messages.c return handle_unknown_request(request); request 189 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 190 daemons/attrd/attrd_messages.c crm_node_t *peer = crm_get_peer(0, request->peer); request 191 daemons/attrd/attrd_messages.c bool peer_won = attrd_check_for_new_writer(peer, request->xml); request 194 daemons/attrd/attrd_messages.c attrd_peer_sync_response(peer, peer_won, request->xml); request 198 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 204 daemons/attrd/attrd_messages.c handle_update_request(pcmk__request_t *request) request 206 daemons/attrd/attrd_messages.c if (request->peer != NULL) { request 207 daemons/attrd/attrd_messages.c const char *host = crm_element_value(request->xml, PCMK__XA_ATTR_NODE_NAME); request 208 daemons/attrd/attrd_messages.c crm_node_t *peer = crm_get_peer(0, request->peer); request 210 daemons/attrd/attrd_messages.c attrd_peer_update(peer, request->xml, host, false); request 211 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 215 daemons/attrd/attrd_messages.c remove_unsupported_sync_points(request); request 217 daemons/attrd/attrd_messages.c if (attrd_request_has_sync_point(request->xml)) { request 225 daemons/attrd/attrd_messages.c attrd_add_client_to_waitlist(request); request 236 daemons/attrd/attrd_messages.c attrd_send_ack(request->ipc_client, request->ipc_id, request 237 daemons/attrd/attrd_messages.c request->flags|crm_ipc_client_response); request 240 daemons/attrd/attrd_messages.c return attrd_client_update(request); request 275 daemons/attrd/attrd_messages.c attrd_handle_request(pcmk__request_t *request) request 285 daemons/attrd/attrd_messages.c reply = pcmk__process_request(request, attrd_handlers); request 290 daemons/attrd/attrd_messages.c if (request->ipc_client != NULL) { request 291 daemons/attrd/attrd_messages.c pcmk__ipc_send_xml(request->ipc_client, request->ipc_id, reply, request 292 daemons/attrd/attrd_messages.c request->ipc_flags); request 300 daemons/attrd/attrd_messages.c reason = request->result.exit_reason; request 302 daemons/attrd/attrd_messages.c request->op, pcmk__request_origin_type(request), request 303 daemons/attrd/attrd_messages.c pcmk__request_origin(request), request 304 daemons/attrd/attrd_messages.c pcmk_exec_status_str(request->result.execution_status), request 309 daemons/attrd/attrd_messages.c if (!pcmk__result_ok(&request->result)) { request 316 daemons/attrd/attrd_messages.c pcmk__reset_request(request); request 135 daemons/attrd/attrd_sync.c attrd_add_client_to_waitlist(pcmk__request_t *request) request 137 daemons/attrd/attrd_sync.c const char *sync_point = attrd_request_sync_point(request->xml); request 152 daemons/attrd/attrd_sync.c wl->client_id = strdup(request->ipc_client->id); request 165 daemons/attrd/attrd_sync.c wl->ipc_id = request->ipc_id; request 166 daemons/attrd/attrd_sync.c wl->flags = request->flags; request 178 daemons/attrd/attrd_sync.c crm_xml_add_int(request->xml, XML_LRM_ATTR_CALLID, waitlist_client); request 477 daemons/attrd/attrd_sync.c attrd_expect_confirmations(pcmk__request_t *request, attrd_confirmation_action_fn fn) request 489 daemons/attrd/attrd_sync.c if (crm_element_value_int(request->xml, XML_LRM_ATTR_CALLID, &callid) == -1) { request 514 daemons/attrd/attrd_sync.c action->xml = copy_xml(request->xml); request 516 daemons/attrd/attrd_sync.c action->client_id = strdup(request->ipc_client->id); request 519 daemons/attrd/attrd_sync.c action->ipc_id = request->ipc_id; request 520 daemons/attrd/attrd_sync.c action->flags = request->flags; request 161 daemons/attrd/pacemaker-attrd.h void attrd_peer_clear_failure(pcmk__request_t *request); request 166 daemons/attrd/pacemaker-attrd.h xmlNode *attrd_client_peer_remove(pcmk__request_t *request); request 167 daemons/attrd/pacemaker-attrd.h xmlNode *attrd_client_clear_failure(pcmk__request_t *request); request 168 daemons/attrd/pacemaker-attrd.h xmlNode *attrd_client_update(pcmk__request_t *request); request 169 daemons/attrd/pacemaker-attrd.h xmlNode *attrd_client_refresh(pcmk__request_t *request); request 170 daemons/attrd/pacemaker-attrd.h xmlNode *attrd_client_query(pcmk__request_t *request); request 196 daemons/attrd/pacemaker-attrd.h void attrd_handle_request(pcmk__request_t *request); request 205 daemons/attrd/pacemaker-attrd.h void attrd_add_client_to_waitlist(pcmk__request_t *request); request 210 daemons/attrd/pacemaker-attrd.h void attrd_expect_confirmations(pcmk__request_t *request, attrd_confirmation_action_fn fn); request 55 daemons/based/based_callbacks.c static int cib_process_command(xmlNode *request, request 654 daemons/based/based_callbacks.c parse_peer_options_v1(const cib__operation_t *operation, xmlNode *request, request 661 daemons/based/based_callbacks.c const char *originator = crm_element_value(request, F_ORIG); request 662 daemons/based/based_callbacks.c const char *reply_to = crm_element_value(request, F_CIB_ISREPLY); request 666 daemons/based/based_callbacks.c if (pcmk__xe_attr_is_true(request, F_CIB_GLOBAL_UPDATE)) { request 678 daemons/based/based_callbacks.c op = crm_element_value(request, F_CIB_OPERATION); request 694 daemons/based/based_callbacks.c process_ping_reply(request); request 706 daemons/based/based_callbacks.c host = crm_element_value(request, F_CIB_HOST); request 722 daemons/based/based_callbacks.c delegated = crm_element_value(request, F_CIB_DELEGATED); request 746 daemons/based/based_callbacks.c crm_log_xml_err(request, "Peer[inbound]"); request 753 daemons/based/based_callbacks.c parse_peer_options_v2(const cib__operation_t *operation, xmlNode *request, request 758 daemons/based/based_callbacks.c const char *delegated = crm_element_value(request, F_CIB_DELEGATED); request 759 daemons/based/based_callbacks.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 760 daemons/based/based_callbacks.c const char *originator = crm_element_value(request, F_ORIG); request 761 daemons/based/based_callbacks.c const char *reply_to = crm_element_value(request, F_CIB_ISREPLY); request 781 daemons/based/based_callbacks.c process_ping_reply(request); request 795 daemons/based/based_callbacks.c const char *max = crm_element_value(request, F_CIB_SCHEMA_MAX); request 796 daemons/based/based_callbacks.c const char *upgrade_rc = crm_element_value(request, F_CIB_UPGRADE_RC); request 805 daemons/based/based_callbacks.c crm_xml_add(request, F_CIB_RC, upgrade_rc); request 820 daemons/based/based_callbacks.c } else if (pcmk__xe_attr_is_true(request, F_CIB_GLOBAL_UPDATE)) { request 857 daemons/based/based_callbacks.c host = crm_element_value(request, F_CIB_HOST); request 874 daemons/based/based_callbacks.c pcmk__s(crm_element_value(request, F_CIB_CLIENTNAME), "client"), request 875 daemons/based/based_callbacks.c pcmk__s(crm_element_value(request, F_CIB_CALLID), "without ID"), request 881 daemons/based/based_callbacks.c parse_peer_options(const cib__operation_t *operation, xmlNode *request, request 890 daemons/based/based_callbacks.c return parse_peer_options_v1(operation, request, local_notify, request 893 daemons/based/based_callbacks.c return parse_peer_options_v2(operation, request, local_notify, request 905 daemons/based/based_callbacks.c forward_request(xmlNode *request) request 907 daemons/based/based_callbacks.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 908 daemons/based/based_callbacks.c const char *section = crm_element_value(request, F_CIB_SECTION); request 909 daemons/based/based_callbacks.c const char *host = crm_element_value(request, F_CIB_HOST); request 910 daemons/based/based_callbacks.c const char *originator = crm_element_value(request, F_ORIG); request 911 daemons/based/based_callbacks.c const char *client_name = crm_element_value(request, F_CIB_CLIENTNAME); request 912 daemons/based/based_callbacks.c const char *call_id = crm_element_value(request, F_CIB_CALLID); request 929 daemons/based/based_callbacks.c crm_xml_add(request, F_CIB_DELEGATED, OUR_NODENAME); request 932 daemons/based/based_callbacks.c crm_msg_cib, request, FALSE); request 935 daemons/based/based_callbacks.c xml_remove_prop(request, F_CIB_DELEGATED); request 1007 daemons/based/based_callbacks.c cib_process_request(xmlNode *request, gboolean privileged, request 1023 daemons/based/based_callbacks.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 1024 daemons/based/based_callbacks.c const char *originator = crm_element_value(request, F_ORIG); request 1025 daemons/based/based_callbacks.c const char *host = crm_element_value(request, F_CIB_HOST); request 1027 daemons/based/based_callbacks.c const char *call_id = crm_element_value(request, F_CIB_CALLID); request 1028 daemons/based/based_callbacks.c const char *client_id = crm_element_value(request, F_CIB_CLIENTID); request 1029 daemons/based/based_callbacks.c const char *client_name = crm_element_value(request, F_CIB_CLIENTNAME); request 1030 daemons/based/based_callbacks.c const char *reply_to = crm_element_value(request, F_CIB_ISREPLY); request 1035 daemons/based/based_callbacks.c crm_element_value_int(request, F_CIB_CALLOPTS, &call_options); request 1056 daemons/based/based_callbacks.c crm_xml_add(request, F_ORIG, OUR_NODENAME); request 1079 daemons/based/based_callbacks.c } else if (!parse_peer_options(operation, request, &local_notify, request 1111 daemons/based/based_callbacks.c forward_request(request); request 1127 daemons/based/based_callbacks.c const char *section = crm_element_value(request, F_CIB_SECTION); request 1129 daemons/based/based_callbacks.c rc = cib_process_command(request, operation, op_function, &op_reply, request 1135 daemons/based/based_callbacks.c } else if (pcmk__xe_attr_is_true(request, F_CIB_GLOBAL_UPDATE)) { request 1169 daemons/based/based_callbacks.c crm_log_xml_err(request, "null reply"); request 1189 daemons/based/based_callbacks.c crm_xml_add_int(request, F_CIB_LOCAL_NOTIFY_ID, cib_local_bcast_num); request 1190 daemons/based/based_callbacks.c broadcast = send_peer_reply(request, result_diff, originator, TRUE); request 1231 daemons/based/based_callbacks.c do_local_notify(request, client_id, request 1261 daemons/based/based_callbacks.c prepare_input(const xmlNode *request, enum cib__op_type type, request 1270 daemons/based/based_callbacks.c if (pcmk__xe_attr_is_true(request, F_CIB_GLOBAL_UPDATE)) { request 1271 daemons/based/based_callbacks.c input = get_message_xml(request, F_CIB_UPDATE_DIFF); request 1273 daemons/based/based_callbacks.c input = get_message_xml(request, F_CIB_CALLDATA); request 1278 daemons/based/based_callbacks.c input = get_message_xml(request, F_CIB_CALLDATA); request 1279 daemons/based/based_callbacks.c *section = crm_element_value(request, F_CIB_SECTION); request 1314 daemons/based/based_callbacks.c cib_process_command(xmlNode *request, const cib__operation_t *operation, request 1326 daemons/based/based_callbacks.c const char *call_id = crm_element_value(request, F_CIB_CALLID); request 1327 daemons/based/based_callbacks.c const char *client_id = crm_element_value(request, F_CIB_CLIENTID); request 1328 daemons/based/based_callbacks.c const char *client_name = crm_element_value(request, F_CIB_CLIENTNAME); request 1329 daemons/based/based_callbacks.c const char *originator = crm_element_value(request, F_ORIG); request 1348 daemons/based/based_callbacks.c op = crm_element_value(request, F_CIB_OPERATION); request 1349 daemons/based/based_callbacks.c crm_element_value_int(request, F_CIB_CALLOPTS, &call_options); request 1357 daemons/based/based_callbacks.c input = prepare_input(request, operation->type, §ion); request 1361 daemons/based/based_callbacks.c request, input, false, &config_changed, &the_cib, request 1375 daemons/based/based_callbacks.c if (pcmk__xe_attr_is_true(request, F_CIB_GLOBAL_UPDATE)) { request 1394 daemons/based/based_callbacks.c request, input, manage_counters, &config_changed, request 1457 daemons/based/based_callbacks.c sync_our_cib(request, TRUE); request 413 daemons/based/based_messages.c sync_our_cib(xmlNode * request, gboolean all) request 417 daemons/based/based_messages.c const char *host = crm_element_value(request, F_ORIG); request 418 daemons/based/based_messages.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 427 daemons/based/based_messages.c replace_request = cib_msg_copy(request); request 64 daemons/based/based_transaction.c for (xmlNodePtr request = first_named_child(transaction, T_CIB_COMMAND); request 65 daemons/based/based_transaction.c request != NULL; request = crm_next_same_xml(request)) { request 67 daemons/based/based_transaction.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 68 daemons/based/based_transaction.c const char *host = crm_element_value(request, F_CIB_HOST); request 81 daemons/based/based_transaction.c rc = cib_process_request(request, TRUE, client); request 90 daemons/based/based_transaction.c crm_log_xml_info(request, "Failed request"); request 96 daemons/based/based_transaction.c crm_log_xml_trace(request, "Successful request"); request 77 daemons/based/pacemaker-based.h int cib_process_request(xmlNode *request, gboolean privileged, request 126 daemons/based/pacemaker-based.h int sync_our_cib(xmlNode *request, gboolean all); request 965 daemons/controld/controld_execd.c ha_msg_input_t *request, bool unregister, bool from_cib) request 980 daemons/controld/controld_execd.c if (request) { request 982 daemons/controld/controld_execd.c char *ref = crm_element_value_copy(request->msg, XML_ATTR_REFERENCE); request 986 daemons/controld/controld_execd.c op->input = copy_ha_msg_input(request); request 996 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, request, id, iter, rc, user, from_cib); request 548 daemons/controld/controld_execd_state.c xmlNode *request = get_message_xml(msg, F_LRMD_IPC_MSG); request 550 daemons/controld/controld_execd_state.c CRM_CHECK(request != NULL, return); request 552 daemons/controld/controld_execd_state.c crm_xml_add(request, XML_ACL_TAG_ROLE, "pacemaker-remote"); request 553 daemons/controld/controld_execd_state.c pcmk__update_acl_user(request, F_LRMD_IPC_USER, lrm_state->node_name); request 560 daemons/controld/controld_execd_state.c if (pcmk__str_eq(crm_element_value(request, F_CRM_TASK), CRM_OP_NODE_INFO, pcmk__str_casei)) { request 563 daemons/controld/controld_execd_state.c crm_element_value_int(request, XML_ATTR_ID, &node_id); request 565 daemons/controld/controld_execd_state.c && (crm_element_value(request, XML_ATTR_UNAME) == NULL)) { request 566 daemons/controld/controld_execd_state.c crm_xml_add(request, XML_ATTR_UNAME, lrm_state->node_name); request 570 daemons/controld/controld_execd_state.c crmd_proxy_dispatch(session, request); request 838 daemons/controld/controld_messages.c handle_node_list(const xmlNode *request) request 857 daemons/controld/controld_messages.c reply = create_reply(request, reply_data); request 104 daemons/execd/execd_alerts.c process_lrmd_alert_exec(pcmk__client_t *client, uint32_t id, xmlNode *request) request 108 daemons/execd/execd_alerts.c xmlNode *alert_xml = get_xpath_object("//" F_LRMD_ALERT, request, LOG_ERR); request 146 daemons/execd/execd_alerts.c crm_element_value_int(request, F_LRMD_CALLID, &(cb_data->call_id)); request 682 daemons/execd/execd_commands.c send_generic_notify(int rc, xmlNode * request) request 687 daemons/execd/execd_commands.c xmlNode *rsc_xml = get_xpath_object("//" F_LRMD_RSC, request, LOG_ERR); request 689 daemons/execd/execd_commands.c const char *op = crm_element_value(request, F_LRMD_OPERATION); request 691 daemons/execd/execd_commands.c crm_element_value_int(request, F_LRMD_CALLID, &call_id); request 1477 daemons/execd/execd_commands.c process_lrmd_signon(pcmk__client_t *client, xmlNode *request, int call_id, request 1482 daemons/execd/execd_commands.c const char *protocol_version = crm_element_value(request, F_LRMD_PROTOCOL_VERSION); request 1491 daemons/execd/execd_commands.c if (pcmk__xe_attr_is_true(request, F_LRMD_IS_IPC_PROVIDER)) { request 1521 daemons/execd/execd_commands.c process_lrmd_rsc_register(pcmk__client_t *client, uint32_t id, xmlNode *request) request 1524 daemons/execd/execd_commands.c lrmd_rsc_t *rsc = build_rsc_from_xml(request); request 1542 daemons/execd/execd_commands.c process_lrmd_get_rsc_info(xmlNode *request, int call_id) request 1545 daemons/execd/execd_commands.c xmlNode *rsc_xml = get_xpath_object("//" F_LRMD_RSC, request, LOG_ERR); request 1572 daemons/execd/execd_commands.c xmlNode *request) request 1576 daemons/execd/execd_commands.c xmlNode *rsc_xml = get_xpath_object("//" F_LRMD_RSC, request, LOG_ERR); request 1603 daemons/execd/execd_commands.c process_lrmd_rsc_exec(pcmk__client_t *client, uint32_t id, xmlNode *request) request 1607 daemons/execd/execd_commands.c xmlNode *rsc_xml = get_xpath_object("//" F_LRMD_RSC, request, LOG_ERR); request 1620 daemons/execd/execd_commands.c cmd = create_lrmd_cmd(request, client); request 1728 daemons/execd/execd_commands.c process_lrmd_rsc_cancel(pcmk__client_t *client, uint32_t id, xmlNode *request) request 1730 daemons/execd/execd_commands.c xmlNode *rsc_xml = get_xpath_object("//" F_LRMD_RSC, request, LOG_ERR); request 1762 daemons/execd/execd_commands.c process_lrmd_get_recurring(xmlNode *request, int call_id) request 1771 daemons/execd/execd_commands.c rsc_xml = first_named_child(request, F_LRMD_CALLDATA); request 1808 daemons/execd/execd_commands.c process_lrmd_message(pcmk__client_t *client, uint32_t id, xmlNode *request) request 1812 daemons/execd/execd_commands.c const char *op = crm_element_value(request, F_LRMD_OPERATION); request 1824 daemons/execd/execd_commands.c crm_element_value_int(request, F_LRMD_CALLID, &call_id); request 1829 daemons/execd/execd_commands.c ipc_proxy_forward_client(client, request); request 1838 daemons/execd/execd_commands.c rc = process_lrmd_signon(client, request, call_id, &reply); request 1842 daemons/execd/execd_commands.c rc = process_lrmd_rsc_register(client, id, request); request 1850 daemons/execd/execd_commands.c reply = process_lrmd_get_rsc_info(request, call_id); request 1857 daemons/execd/execd_commands.c rc = process_lrmd_rsc_unregister(client, id, request); request 1868 daemons/execd/execd_commands.c rc = process_lrmd_rsc_exec(client, id, request); request 1875 daemons/execd/execd_commands.c rc = process_lrmd_rsc_cancel(client, id, request); request 1885 daemons/execd/execd_commands.c xmlNode *data = get_message_xml(request, F_LRMD_CALLDATA); request 1894 daemons/execd/execd_commands.c rc = process_lrmd_alert_exec(client, id, request); request 1901 daemons/execd/execd_commands.c reply = process_lrmd_get_recurring(request, call_id); request 1936 daemons/execd/execd_commands.c send_generic_notify(rc, request); request 129 daemons/execd/pacemaker-execd.c xmlNode *request = pcmk__client_data2xml(client, data, &id, &flags); request 139 daemons/execd/pacemaker-execd.c if (!request) { request 144 daemons/execd/pacemaker-execd.c const char *value = crm_element_value(request, F_LRMD_CLIENTNAME); request 158 daemons/execd/pacemaker-execd.c crm_xml_add(request, F_LRMD_CLIENTID, client->id); request 159 daemons/execd/pacemaker-execd.c crm_xml_add(request, F_LRMD_CLIENTNAME, client->name); request 160 daemons/execd/pacemaker-execd.c crm_xml_add_int(request, F_LRMD_CALLID, lrmd_call_id); request 162 daemons/execd/pacemaker-execd.c process_lrmd_message(client, id, request); request 164 daemons/execd/pacemaker-execd.c free_xml(request); request 70 daemons/execd/pacemaker-execd.h xmlNode *request); request 107 daemons/execd/pacemaker-execd.h xmlNode *request); request 228 daemons/execd/remoted_proxy.c xmlNode *request = NULL; request 249 daemons/execd/remoted_proxy.c request = pcmk__client_data2xml(client, data, &id, &flags); request 251 daemons/execd/remoted_proxy.c if (!request) { request 256 daemons/execd/remoted_proxy.c free_xml(request); return FALSE); request 258 daemons/execd/remoted_proxy.c free_xml(request); return FALSE); request 273 daemons/execd/remoted_proxy.c add_message_xml(msg, F_LRMD_IPC_MSG, request); request 275 daemons/execd/remoted_proxy.c free_xml(request); request 92 daemons/execd/remoted_tls.c xmlNode *request = NULL; request 112 daemons/execd/remoted_tls.c request = pcmk__remote_message_xml(client->remote); request 113 daemons/execd/remoted_tls.c while (request) { request 114 daemons/execd/remoted_tls.c crm_element_value_int(request, F_LRMD_REMOTE_MSG_ID, &id); request 117 daemons/execd/remoted_tls.c const char *value = crm_element_value(request, F_LRMD_CLIENTNAME); request 129 daemons/execd/remoted_tls.c crm_xml_add(request, F_LRMD_CLIENTID, client->id); request 130 daemons/execd/remoted_tls.c crm_xml_add(request, F_LRMD_CLIENTNAME, client->name); request 131 daemons/execd/remoted_tls.c crm_xml_add_int(request, F_LRMD_CALLID, lrmd_call_id); request 133 daemons/execd/remoted_tls.c process_lrmd_message(client, id, request); request 134 daemons/execd/remoted_tls.c free_xml(request); request 137 daemons/execd/remoted_tls.c request = pcmk__remote_message_xml(client->remote); request 2951 daemons/fenced/fenced_commands.c fenced_construct_reply(const xmlNode *request, xmlNode *data, request 2962 daemons/fenced/fenced_commands.c if (request == NULL) { request 2989 daemons/fenced/fenced_commands.c value = crm_element_value(request, name); request 3082 daemons/fenced/fenced_commands.c remove_relay_op(xmlNode * request) request 3084 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, request, LOG_TRACE); request 3095 daemons/fenced/fenced_commands.c relay_op_id = crm_element_value(request, F_STONITH_REMOTE_OP_ID_RELAY); request 3096 daemons/fenced/fenced_commands.c op_id = crm_element_value(request, F_STONITH_REMOTE_OP_ID); request 3097 daemons/fenced/fenced_commands.c client_name = crm_element_value(request, F_STONITH_CLIENTNAME); request 3163 daemons/fenced/fenced_commands.c handle_register_request(pcmk__request_t *request) request 3167 daemons/fenced/fenced_commands.c CRM_ASSERT(request->ipc_client != NULL); request 3169 daemons/fenced/fenced_commands.c crm_xml_add(reply, F_STONITH_CLIENTID, request->ipc_client->id); request 3170 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 3171 daemons/fenced/fenced_commands.c pcmk__set_request_flags(request, pcmk__request_reuse_options); request 3177 daemons/fenced/fenced_commands.c handle_agent_request(pcmk__request_t *request) request 3179 daemons/fenced/fenced_commands.c execute_agent_action(request->xml, &request->result); request 3180 daemons/fenced/fenced_commands.c if (request->result.execution_status == PCMK_EXEC_PENDING) { request 3183 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3188 daemons/fenced/fenced_commands.c handle_update_timeout_request(pcmk__request_t *request) request 3190 daemons/fenced/fenced_commands.c const char *call_id = crm_element_value(request->xml, F_STONITH_CALLID); request 3191 daemons/fenced/fenced_commands.c const char *client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); request 3194 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, F_STONITH_TIMEOUT, &op_timeout); request 3196 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 3202 daemons/fenced/fenced_commands.c handle_query_request(pcmk__request_t *request) request 3208 daemons/fenced/fenced_commands.c const char *client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); request 3211 daemons/fenced/fenced_commands.c if (request->peer != NULL) { request 3213 daemons/fenced/fenced_commands.c create_remote_stonith_op(client_id, request->xml, TRUE); request 3217 daemons/fenced/fenced_commands.c remove_relay_op(request->xml); request 3219 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 3221 daemons/fenced/fenced_commands.c dev = get_xpath_object("//@" F_STONITH_ACTION, request->xml, LOG_NEVER); request 3232 daemons/fenced/fenced_commands.c crm_log_xml_trace(request->xml, "Query"); request 3237 daemons/fenced/fenced_commands.c query->reply = fenced_construct_reply(request->xml, NULL, &request->result); request 3238 daemons/fenced/fenced_commands.c pcmk__str_update(&query->remote_peer, request->peer); request 3242 daemons/fenced/fenced_commands.c query->call_options = request->call_options; request 3244 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, F_STONITH_TIMEOUT, &timeout); request 3253 daemons/fenced/fenced_commands.c handle_notify_request(pcmk__request_t *request) request 3257 daemons/fenced/fenced_commands.c CRM_ASSERT(request->ipc_client != NULL); request 3258 daemons/fenced/fenced_commands.c flag_name = crm_element_value(request->xml, F_STONITH_NOTIFY_ACTIVATE); request 3261 daemons/fenced/fenced_commands.c flag_name, pcmk__request_origin(request)); request 3262 daemons/fenced/fenced_commands.c pcmk__set_client_flags(request->ipc_client, get_stonith_flag(flag_name)); request 3265 daemons/fenced/fenced_commands.c flag_name = crm_element_value(request->xml, F_STONITH_NOTIFY_DEACTIVATE); request 3268 daemons/fenced/fenced_commands.c flag_name, pcmk__request_origin(request)); request 3269 daemons/fenced/fenced_commands.c pcmk__clear_client_flags(request->ipc_client, request 3273 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 3274 daemons/fenced/fenced_commands.c pcmk__set_request_flags(request, pcmk__request_reuse_options); request 3276 daemons/fenced/fenced_commands.c return pcmk__ipc_create_ack(request->ipc_flags, "ack", NULL, CRM_EX_OK); request 3281 daemons/fenced/fenced_commands.c handle_relay_request(pcmk__request_t *request) request 3283 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request->xml, request 3288 daemons/fenced/fenced_commands.c pcmk__request_origin_type(request), request 3289 daemons/fenced/fenced_commands.c pcmk__request_origin(request), request 3293 daemons/fenced/fenced_commands.c if (initiate_remote_stonith_op(NULL, request->xml, FALSE) == NULL) { request 3294 daemons/fenced/fenced_commands.c fenced_set_protocol_error(&request->result); request 3295 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3298 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, NULL); request 3304 daemons/fenced/fenced_commands.c handle_fence_request(pcmk__request_t *request) request 3306 daemons/fenced/fenced_commands.c if ((request->peer != NULL) || stand_alone) { request 3307 daemons/fenced/fenced_commands.c fence_locally(request->xml, &request->result); request 3309 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(request->call_options, st_opt_manual_ack)) { request 3310 daemons/fenced/fenced_commands.c switch (fenced_handle_manual_confirmation(request->ipc_client, request 3311 daemons/fenced/fenced_commands.c request->xml)) { request 3313 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, request 3317 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, request 3321 daemons/fenced/fenced_commands.c fenced_set_protocol_error(&request->result); request 3327 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request->xml, request 3333 daemons/fenced/fenced_commands.c if (request->ipc_client != NULL) { request 3337 daemons/fenced/fenced_commands.c pcmk__request_origin(request), action, request 3341 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, request 3343 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, request 3344 daemons/fenced/fenced_commands.c &request->result); request 3350 daemons/fenced/fenced_commands.c request->peer, action, target, request 3358 daemons/fenced/fenced_commands.c if (request->ipc_client->id == 0) { request 3359 daemons/fenced/fenced_commands.c client_id = crm_element_value(request->xml, F_STONITH_CLIENTID); request 3361 daemons/fenced/fenced_commands.c client_id = request->ipc_client->id; request 3368 daemons/fenced/fenced_commands.c op = create_remote_stonith_op(client_id, request->xml, FALSE); request 3370 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_OPERATION, STONITH_OP_RELAY); request 3371 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_CLIENTID, request 3372 daemons/fenced/fenced_commands.c request->ipc_client->id); request 3373 daemons/fenced/fenced_commands.c crm_xml_add(request->xml, F_STONITH_REMOTE_OP_ID, op->id); request 3375 daemons/fenced/fenced_commands.c crm_msg_stonith_ng, request->xml, FALSE); request 3376 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, request 3379 daemons/fenced/fenced_commands.c } else if (initiate_remote_stonith_op(request->ipc_client, request->xml, request 3381 daemons/fenced/fenced_commands.c fenced_set_protocol_error(&request->result); request 3384 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, request 3389 daemons/fenced/fenced_commands.c if (request->result.execution_status == PCMK_EXEC_PENDING) { request 3392 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3397 daemons/fenced/fenced_commands.c handle_history_request(pcmk__request_t *request) request 3402 daemons/fenced/fenced_commands.c stonith_fence_history(request->xml, &data, request->peer, request 3403 daemons/fenced/fenced_commands.c request->call_options); request 3404 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 3405 daemons/fenced/fenced_commands.c if (!pcmk_is_set(request->call_options, st_opt_discard_reply)) { request 3409 daemons/fenced/fenced_commands.c reply = fenced_construct_reply(request->xml, data, &request->result); request 3417 daemons/fenced/fenced_commands.c handle_device_add_request(pcmk__request_t *request) request 3419 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); request 3420 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request->xml, request 3423 daemons/fenced/fenced_commands.c if (is_privileged(request->ipc_client, op)) { request 3426 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, request 3431 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, request 3435 daemons/fenced/fenced_commands.c fenced_send_device_notification(op, &request->result, request 3437 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3442 daemons/fenced/fenced_commands.c handle_device_delete_request(pcmk__request_t *request) request 3444 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request->xml, request 3447 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); request 3449 daemons/fenced/fenced_commands.c if (is_privileged(request->ipc_client, op)) { request 3451 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 3453 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, request 3457 daemons/fenced/fenced_commands.c fenced_send_device_notification(op, &request->result, device_id); request 3458 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3463 daemons/fenced/fenced_commands.c handle_level_add_request(pcmk__request_t *request) request 3466 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); request 3468 daemons/fenced/fenced_commands.c if (is_privileged(request->ipc_client, op)) { request 3469 daemons/fenced/fenced_commands.c fenced_register_level(request->xml, &desc, &request->result); request 3471 daemons/fenced/fenced_commands.c unpack_level_request(request->xml, NULL, NULL, NULL, &desc); request 3472 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, request 3476 daemons/fenced/fenced_commands.c fenced_send_level_notification(op, &request->result, desc); request 3478 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3483 daemons/fenced/fenced_commands.c handle_level_delete_request(pcmk__request_t *request) request 3486 daemons/fenced/fenced_commands.c const char *op = crm_element_value(request->xml, F_STONITH_OPERATION); request 3488 daemons/fenced/fenced_commands.c if (is_privileged(request->ipc_client, op)) { request 3489 daemons/fenced/fenced_commands.c fenced_unregister_level(request->xml, &desc, &request->result); request 3491 daemons/fenced/fenced_commands.c unpack_level_request(request->xml, NULL, NULL, NULL, &desc); request 3492 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, request 3496 daemons/fenced/fenced_commands.c fenced_send_level_notification(op, &request->result, desc); request 3498 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3503 daemons/fenced/fenced_commands.c handle_cache_request(pcmk__request_t *request) request 3508 daemons/fenced/fenced_commands.c crm_element_value_int(request->xml, XML_ATTR_ID, &node_id); request 3509 daemons/fenced/fenced_commands.c name = crm_element_value(request->xml, XML_ATTR_UNAME); request 3511 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 3516 daemons/fenced/fenced_commands.c handle_unknown_request(pcmk__request_t *request) request 3519 daemons/fenced/fenced_commands.c request->op, pcmk__request_origin_type(request), request 3520 daemons/fenced/fenced_commands.c pcmk__request_origin(request)); request 3521 daemons/fenced/fenced_commands.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, request 3522 daemons/fenced/fenced_commands.c "Unknown IPC request type '%s' (bug?)", request->op); request 3523 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); request 3559 daemons/fenced/fenced_commands.c handle_request(pcmk__request_t *request) request 3567 daemons/fenced/fenced_commands.c reply = pcmk__process_request(request, fenced_handlers); request 3569 daemons/fenced/fenced_commands.c if (pcmk_is_set(request->flags, pcmk__request_reuse_options) request 3570 daemons/fenced/fenced_commands.c && (request->ipc_client != NULL)) { request 3575 daemons/fenced/fenced_commands.c pcmk__ipc_send_xml(request->ipc_client, request->ipc_id, reply, request 3576 daemons/fenced/fenced_commands.c request->ipc_flags); request 3577 daemons/fenced/fenced_commands.c request->ipc_client->request_id = 0; request 3579 daemons/fenced/fenced_commands.c stonith_send_reply(reply, request->call_options, request 3580 daemons/fenced/fenced_commands.c request->peer, request->ipc_client); request 3585 daemons/fenced/fenced_commands.c reason = request->result.exit_reason; request 3587 daemons/fenced/fenced_commands.c request->op, pcmk__request_origin_type(request), request 3588 daemons/fenced/fenced_commands.c pcmk__request_origin(request), request 3589 daemons/fenced/fenced_commands.c pcmk_exec_status_str(request->result.execution_status), request 3596 daemons/fenced/fenced_commands.c handle_reply(pcmk__client_t *client, xmlNode *request, const char *remote_peer) request 3599 daemons/fenced/fenced_commands.c char *op = crm_element_value_copy(request, F_STONITH_OPERATION); request 3602 daemons/fenced/fenced_commands.c process_remote_stonith_query(request); request 3604 daemons/fenced/fenced_commands.c fenced_process_fencing_reply(request); request 3609 daemons/fenced/fenced_commands.c crm_log_xml_warn(request, "UnknownOp"); request 3656 daemons/fenced/fenced_commands.c pcmk__request_t request = { request 3666 daemons/fenced/fenced_commands.c request.op = crm_element_value_copy(request.xml, F_STONITH_OPERATION); request 3667 daemons/fenced/fenced_commands.c CRM_CHECK(request.op != NULL, return); request 3669 daemons/fenced/fenced_commands.c if (pcmk_is_set(request.call_options, st_opt_sync_call)) { request 3670 daemons/fenced/fenced_commands.c pcmk__set_request_flags(&request, pcmk__request_sync); request 3673 daemons/fenced/fenced_commands.c handle_request(&request); request 3674 daemons/fenced/fenced_commands.c pcmk__reset_request(&request); request 246 daemons/fenced/fenced_remote.c crm_log_xml_debug(op->request, "Destroying"); request 261 daemons/fenced/fenced_remote.c if (op->request) { request 262 daemons/fenced/fenced_remote.c free_xml(op->request); request 263 daemons/fenced/fenced_remote.c op->request = NULL; request 454 daemons/fenced/fenced_remote.c reply = fenced_construct_reply(op->request, data, &op->result); request 631 daemons/fenced/fenced_remote.c if (op->request) { request 632 daemons/fenced/fenced_remote.c free_xml(op->request); request 633 daemons/fenced/fenced_remote.c op->request = NULL; request 1137 daemons/fenced/fenced_remote.c create_remote_stonith_op(const char *client, xmlNode *request, gboolean peer) request 1140 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_NEVER); request 1164 daemons/fenced/fenced_remote.c crm_element_value_int(request, F_STONITH_TIMEOUT, &(op->base_timeout)); request 1166 daemons/fenced/fenced_remote.c crm_element_value_int(request, F_STONITH_DELAY, &(op->client_delay)); request 1195 daemons/fenced/fenced_remote.c operation = crm_element_value(request, F_STONITH_OPERATION); request 1201 daemons/fenced/fenced_remote.c op->client_name = crm_element_value_copy(request, F_STONITH_CLIENTNAME); request 1205 daemons/fenced/fenced_remote.c op->request = copy_xml(request); /* TODO: Figure out how to avoid this */ request 1206 daemons/fenced/fenced_remote.c crm_element_value_int(request, F_STONITH_CALLOPTS, &call_options); request 1209 daemons/fenced/fenced_remote.c crm_element_value_int(request, F_STONITH_CALLID, &(op->client_callid)); request 1262 daemons/fenced/fenced_remote.c initiate_remote_stonith_op(const pcmk__client_t *client, xmlNode *request, request 1275 daemons/fenced/fenced_remote.c client_id = crm_element_value(request, F_STONITH_CLIENTID); request 1279 daemons/fenced/fenced_remote.c op = create_remote_stonith_op(client_id, request, FALSE); request 1325 daemons/fenced/fenced_remote.c operation = crm_element_value(request, F_STONITH_OPERATION); request 1327 daemons/fenced/fenced_remote.c relay_op_id = crm_element_value(request, F_STONITH_REMOTE_OP_ID); request 1641 daemons/fenced/fenced_remote.c } else if (!op->request) { request 1646 daemons/fenced/fenced_remote.c client_node = crm_element_value(op->request, F_STONITH_CLIENTNODE); request 1647 daemons/fenced/fenced_remote.c call_id = crm_element_value(op->request, F_STONITH_CALLID); request 1648 daemons/fenced/fenced_remote.c client_id = crm_element_value(op->request, F_STONITH_CLIENTID); request 94 daemons/fenced/pacemaker-fenced.c xmlNode *request = NULL; request 103 daemons/fenced/pacemaker-fenced.c request = pcmk__client_data2xml(c, data, &id, &flags); request 104 daemons/fenced/pacemaker-fenced.c if (request == NULL) { request 110 daemons/fenced/pacemaker-fenced.c op = crm_element_value(request, F_CRM_TASK); request 112 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_TYPE, T_STONITH_NG); request 113 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_STONITH_OPERATION, op); request 114 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_STONITH_CLIENTID, c->id); request 115 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_STONITH_CLIENTNAME, pcmk__client_name(c)); request 116 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_STONITH_CLIENTNODE, stonith_our_uname); request 118 daemons/fenced/pacemaker-fenced.c send_cluster_message(NULL, crm_msg_stonith_ng, request, FALSE); request 119 daemons/fenced/pacemaker-fenced.c free_xml(request); request 124 daemons/fenced/pacemaker-fenced.c const char *value = crm_element_value(request, F_STONITH_CLIENTNAME); request 132 daemons/fenced/pacemaker-fenced.c crm_element_value_int(request, F_STONITH_CALLOPTS, &call_options); request 142 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_STONITH_CLIENTID, c->id); request 143 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_STONITH_CLIENTNAME, pcmk__client_name(c)); request 144 daemons/fenced/pacemaker-fenced.c crm_xml_add(request, F_STONITH_CLIENTNODE, stonith_our_uname); request 146 daemons/fenced/pacemaker-fenced.c crm_log_xml_trace(request, "ipc-received"); request 147 daemons/fenced/pacemaker-fenced.c stonith_command(c, id, flags, request, NULL); request 149 daemons/fenced/pacemaker-fenced.c free_xml(request); request 143 daemons/fenced/pacemaker-fenced.h xmlNode *request; request 247 daemons/fenced/pacemaker-fenced.h xmlNode *fenced_construct_reply(const xmlNode *request, xmlNode *data, request 264 daemons/fenced/pacemaker-fenced.h xmlNode *request, request 271 daemons/fenced/pacemaker-fenced.h void *create_remote_stonith_op(const char *client, xmlNode * request, gboolean peer); request 26 daemons/pacemakerd/pcmkd_messages.c handle_node_cache_request(pcmk__request_t *request) request 30 daemons/pacemakerd/pcmkd_messages.c pcmk__client_name(request->ipc_client)); request 32 daemons/pacemakerd/pcmkd_messages.c pcmk__ipc_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags, request 38 daemons/pacemakerd/pcmkd_messages.c handle_ping_request(pcmk__request_t *request) request 40 daemons/pacemakerd/pcmkd_messages.c xmlNode *msg = request->xml; request 52 daemons/pacemakerd/pcmkd_messages.c pcmk__ipc_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags, request 67 daemons/pacemakerd/pcmkd_messages.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, request 69 daemons/pacemakerd/pcmkd_messages.c pcmk__client_name(request->ipc_client)); request 71 daemons/pacemakerd/pcmkd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 81 daemons/pacemakerd/pcmkd_messages.c shutdown_complete_state_reported_to = request->ipc_client->pid; request 94 daemons/pacemakerd/pcmkd_messages.c handle_shutdown_request(pcmk__request_t *request) request 96 daemons/pacemakerd/pcmkd_messages.c xmlNode *msg = request->xml; request 105 daemons/pacemakerd/pcmkd_messages.c bool allowed = pcmk_is_set(request->ipc_client->flags, pcmk__client_privileged); request 107 daemons/pacemakerd/pcmkd_messages.c pcmk__ipc_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags, request 119 daemons/pacemakerd/pcmkd_messages.c pcmk__client_name(request->ipc_client)); request 127 daemons/pacemakerd/pcmkd_messages.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, request 129 daemons/pacemakerd/pcmkd_messages.c pcmk__client_name(request->ipc_client)); request 131 daemons/pacemakerd/pcmkd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 142 daemons/pacemakerd/pcmkd_messages.c handle_unknown_request(pcmk__request_t *request) request 144 daemons/pacemakerd/pcmkd_messages.c pcmk__ipc_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags, request 147 daemons/pacemakerd/pcmkd_messages.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, request 149 daemons/pacemakerd/pcmkd_messages.c pcmk__client_name(request->ipc_client)); request 228 daemons/pacemakerd/pcmkd_messages.c pcmk__request_t request = { request 238 daemons/pacemakerd/pcmkd_messages.c request.op = crm_element_value_copy(request.xml, F_CRM_TASK); request 239 daemons/pacemakerd/pcmkd_messages.c CRM_CHECK(request.op != NULL, return 0); request 241 daemons/pacemakerd/pcmkd_messages.c reply = pcmk__process_request(&request, pcmkd_handlers); request 248 daemons/pacemakerd/pcmkd_messages.c reason = request.result.exit_reason; request 251 daemons/pacemakerd/pcmkd_messages.c request.op, pcmk__request_origin_type(&request), request 252 daemons/pacemakerd/pcmkd_messages.c pcmk__request_origin(&request), request 253 daemons/pacemakerd/pcmkd_messages.c pcmk_exec_status_str(request.result.execution_status), request 258 daemons/pacemakerd/pcmkd_messages.c if (!pcmk__result_ok(&request.result)) { request 265 daemons/pacemakerd/pcmkd_messages.c pcmk__reset_request(&request); request 43 daemons/schedulerd/schedulerd_messages.c handle_pecalc_request(pcmk__request_t *request) request 59 daemons/schedulerd/schedulerd_messages.c xmlNode *msg = request->xml; request 77 daemons/schedulerd/schedulerd_messages.c pcmk__ipc_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags, request 133 daemons/schedulerd/schedulerd_messages.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, request 135 daemons/schedulerd/schedulerd_messages.c pcmk__client_name(request->ipc_client)); request 171 daemons/schedulerd/schedulerd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 181 daemons/schedulerd/schedulerd_messages.c handle_unknown_request(pcmk__request_t *request) request 183 daemons/schedulerd/schedulerd_messages.c pcmk__ipc_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags, request 186 daemons/schedulerd/schedulerd_messages.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, request 188 daemons/schedulerd/schedulerd_messages.c pcmk__client_name(request->ipc_client)); request 193 daemons/schedulerd/schedulerd_messages.c handle_hello_request(pcmk__request_t *request) request 195 daemons/schedulerd/schedulerd_messages.c pcmk__ipc_send_ack(request->ipc_client, request->ipc_id, request->ipc_flags, request 198 daemons/schedulerd/schedulerd_messages.c crm_trace("Received IPC hello from %s", pcmk__client_name(request->ipc_client)); request 200 daemons/schedulerd/schedulerd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); request 264 daemons/schedulerd/schedulerd_messages.c pcmk__request_t request = { request 274 daemons/schedulerd/schedulerd_messages.c request.op = crm_element_value_copy(request.xml, F_CRM_TASK); request 275 daemons/schedulerd/schedulerd_messages.c CRM_CHECK(request.op != NULL, return 0); request 277 daemons/schedulerd/schedulerd_messages.c reply = pcmk__process_request(&request, schedulerd_handlers); request 284 daemons/schedulerd/schedulerd_messages.c reason = request.result.exit_reason; request 287 daemons/schedulerd/schedulerd_messages.c request.op, pcmk__request_origin_type(&request), request 288 daemons/schedulerd/schedulerd_messages.c pcmk__request_origin(&request), request 289 daemons/schedulerd/schedulerd_messages.c pcmk_exec_status_str(request.result.execution_status), request 294 daemons/schedulerd/schedulerd_messages.c if (!pcmk__result_ok(&request.result)) { request 301 daemons/schedulerd/schedulerd_messages.c pcmk__reset_request(&request); request 218 include/crm/cib/internal.h int cib__extend_transaction(cib_t *cib, xmlNode *request); request 18 include/crm/common/acl_internal.h const char *pcmk__update_acl_user(xmlNode *request, const char *field, request 37 include/crm/common/ipc.h #define create_reply(request, xml_response_data) \ request 38 include/crm/common/ipc.h create_reply_adv(request, xml_response_data, __func__) request 40 include/crm/common/ipc.h xmlNode *create_reply_adv(const xmlNode *request, xmlNode *xml_response_data, request 248 include/crm/common/ipc_internal.h uint32_t request, uint32_t flags, const char *tag, request 253 include/crm/common/ipc_internal.h int pcmk__ipc_prepare_iov(uint32_t request, const xmlNode *message, request 256 include/crm/common/ipc_internal.h int pcmk__ipc_send_xml(pcmk__client_t *c, uint32_t request, request 63 include/crm/common/messages_internal.h #define pcmk__set_request_flags(request, flags_to_set) do { \ request 64 include/crm/common/messages_internal.h (request)->flags = pcmk__set_flags_as(__func__, __LINE__, \ request 65 include/crm/common/messages_internal.h LOG_TRACE, "Request", "message", (request)->flags, \ request 72 include/crm/common/messages_internal.h xmlNode *(*handler)(pcmk__request_t *request); request 77 include/crm/common/messages_internal.h xmlNode *pcmk__process_request(pcmk__request_t *request, GHashTable *handlers); request 78 include/crm/common/messages_internal.h void pcmk__reset_request(pcmk__request_t *request); request 90 include/crm/common/messages_internal.h pcmk__request_origin_type(const pcmk__request_t *request) request 92 include/crm/common/messages_internal.h if ((request != NULL) && (request->ipc_client != NULL)) { request 94 include/crm/common/messages_internal.h } else if ((request != NULL) && (request->peer != NULL)) { request 111 include/crm/common/messages_internal.h pcmk__request_origin(const pcmk__request_t *request) request 113 include/crm/common/messages_internal.h if ((request != NULL) && (request->ipc_client != NULL)) { request 114 include/crm/common/messages_internal.h return pcmk__client_name(request->ipc_client); request 115 include/crm/common/messages_internal.h } else if ((request != NULL) && (request->peer != NULL)) { request 116 include/crm/common/messages_internal.h return request->peer; request 194 include/crm/common/output_internal.h gchar *request; request 214 lib/cib/cib_file.c cib_file_process_request(cib_t *cib, xmlNode *request, xmlNode **output) request 222 lib/cib/cib_file.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 223 lib/cib/cib_file.c const char *section = crm_element_value(request, F_CIB_SECTION); request 224 lib/cib/cib_file.c xmlNode *data = get_message_xml(request, F_CIB_CALLDATA); request 237 lib/cib/cib_file.c crm_element_value_int(request, F_CIB_CALLID, &call_id); request 238 lib/cib/cib_file.c crm_element_value_int(request, F_CIB_CALLOPTS, &call_options); request 249 lib/cib/cib_file.c request, data, true, &changed, &private->cib_xml, request 292 lib/cib/cib_file.c xmlNode *request = NULL; request 326 lib/cib/cib_file.c NULL, &request); request 330 lib/cib/cib_file.c crm_xml_add(request, XML_ACL_TAG_USER, user_name); request 331 lib/cib/cib_file.c crm_xml_add(request, F_CIB_CLIENTID, private->id); request 334 lib/cib/cib_file.c rc = cib__extend_transaction(cib, request); request 338 lib/cib/cib_file.c rc = cib_file_process_request(cib, request, &output); request 355 lib/cib/cib_file.c free_xml(request); request 1066 lib/cib/cib_file.c for (xmlNode *request = first_named_child(transaction, T_CIB_COMMAND); request 1067 lib/cib/cib_file.c request != NULL; request = crm_next_same_xml(request)) { request 1070 lib/cib/cib_file.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 1072 lib/cib/cib_file.c int rc = cib_file_process_request(cib, request, &output); request 1079 lib/cib/cib_file.c crm_log_xml_info(request, "Failed request"); request 1086 lib/cib/cib_file.c crm_log_xml_trace(request, "Successful request"); request 722 lib/cib/cib_utils.c validate_transaction_request(const xmlNode *request) request 724 lib/cib/cib_utils.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 725 lib/cib/cib_utils.c const char *host = crm_element_value(request, F_CIB_HOST); request 758 lib/cib/cib_utils.c cib__extend_transaction(cib_t *cib, xmlNode *request) request 762 lib/cib/cib_utils.c CRM_ASSERT((cib != NULL) && (request != NULL)); request 764 lib/cib/cib_utils.c rc = validate_transaction_request(request); request 771 lib/cib/cib_utils.c add_node_copy(cib->transaction, request); request 774 lib/cib/cib_utils.c const char *op = crm_element_value(request, F_CIB_OPERATION); request 780 lib/cib/cib_utils.c crm_log_xml_info(request, "failed"); request 790 lib/common/acl.c pcmk__update_acl_user(xmlNode *request, const char *field, request 806 lib/common/acl.c requested_user = crm_element_value(request, XML_ACL_TAG_USER); request 813 lib/common/acl.c requested_user = crm_element_value(request, field); request 848 lib/common/acl.c if (user != crm_element_value(request, XML_ACL_TAG_USER)) { request 849 lib/common/acl.c crm_xml_add(request, XML_ACL_TAG_USER, user); request 852 lib/common/acl.c if (field != NULL && user != crm_element_value(request, field)) { request 853 lib/common/acl.c crm_xml_add(request, field, user); request 182 lib/common/crmcommon_private.h bool (*reply_expected)(pcmk_ipc_api_t *api, const xmlNode *request); request 227 lib/common/crmcommon_private.h int pcmk__send_ipc_request(pcmk_ipc_api_t *api, const xmlNode *request); request 47 lib/common/ipc_attrd.c reply_expected(pcmk_ipc_api_t *api, const xmlNode *request) request 49 lib/common/ipc_attrd.c const char *command = crm_element_value(request, PCMK__XA_TASK); request 172 lib/common/ipc_attrd.c connect_and_send_attrd_request(pcmk_ipc_api_t *api, const xmlNode *request) request 183 lib/common/ipc_attrd.c rc = pcmk__send_ipc_request(api, request); request 194 lib/common/ipc_attrd.c send_attrd_request(pcmk_ipc_api_t *api, const xmlNode *request) request 196 lib/common/ipc_attrd.c return pcmk__send_ipc_request(api, request); request 206 lib/common/ipc_attrd.c xmlNode *request = create_attrd_op(user_name); request 215 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_TASK, PCMK__ATTRD_CMD_CLEAR_FAILURE); request 216 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); request 217 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_ATTR_RESOURCE, resource); request 218 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_ATTR_OPERATION, operation); request 219 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_ATTR_INTERVAL, interval_spec); request 220 lib/common/ipc_attrd.c crm_xml_add_int(request, PCMK__XA_ATTR_IS_REMOTE, request 229 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 233 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 236 lib/common/ipc_attrd.c rc = send_attrd_request(api, request); request 239 lib/common/ipc_attrd.c free_xml(request); request 283 lib/common/ipc_attrd.c xmlNode *request = NULL; request 291 lib/common/ipc_attrd.c request = create_attrd_op(NULL); request 293 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_TASK, PCMK__ATTRD_CMD_PEER_REMOVE); request 294 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); request 302 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 306 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 309 lib/common/ipc_attrd.c rc = send_attrd_request(api, request); request 312 lib/common/ipc_attrd.c free_xml(request); request 325 lib/common/ipc_attrd.c xmlNode *request = NULL; request 342 lib/common/ipc_attrd.c request = create_attrd_op(NULL); request 344 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_ATTR_NAME, name); request 345 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_TASK, PCMK__ATTRD_CMD_QUERY); request 346 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); request 348 lib/common/ipc_attrd.c rc = send_attrd_request(api, request); request 349 lib/common/ipc_attrd.c free_xml(request); request 366 lib/common/ipc_attrd.c xmlNode *request = NULL; request 374 lib/common/ipc_attrd.c request = create_attrd_op(NULL); request 376 lib/common/ipc_attrd.c crm_xml_add(request, PCMK__XA_TASK, PCMK__ATTRD_CMD_REFRESH); request 377 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); request 385 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 389 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 392 lib/common/ipc_attrd.c rc = send_attrd_request(api, request); request 395 lib/common/ipc_attrd.c free_xml(request); request 455 lib/common/ipc_attrd.c xmlNode *request = NULL; request 469 lib/common/ipc_attrd.c request = create_attrd_op(user_name); request 470 lib/common/ipc_attrd.c populate_update_op(request, node, name, value, dampen, set, options); request 478 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 482 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 485 lib/common/ipc_attrd.c rc = send_attrd_request(api, request); request 488 lib/common/ipc_attrd.c free_xml(request); request 502 lib/common/ipc_attrd.c xmlNode *request = NULL; request 538 lib/common/ipc_attrd.c if (request == NULL) { request 539 lib/common/ipc_attrd.c request = create_attrd_op(user_name); request 540 lib/common/ipc_attrd.c add_op_attr(request, options); request 548 lib/common/ipc_attrd.c child = create_xml_node(request, XML_ATTR_OP); request 578 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); request 579 lib/common/ipc_attrd.c free_xml(request); request 668 lib/common/ipc_client.c pcmk__send_ipc_request(pcmk_ipc_api_t *api, const xmlNode *request) request 674 lib/common/ipc_client.c if ((api == NULL) || (api->ipc == NULL) || (request == NULL)) { request 677 lib/common/ipc_client.c crm_log_xml_trace(request, "ipc-sent"); request 683 lib/common/ipc_client.c && (api->cmds->reply_expected(api, request))) { request 688 lib/common/ipc_client.c rc = crm_ipc_send(api->ipc, request, flags, 0, &reply); request 753 lib/common/ipc_client.c xmlNode *request = NULL; request 758 lib/common/ipc_client.c request = create_xml_node(NULL, __func__); request 759 lib/common/ipc_client.c crm_xml_add(request, F_TYPE, T_ATTRD); request 760 lib/common/ipc_client.c crm_xml_add(request, F_ORIG, crm_system_name); request 761 lib/common/ipc_client.c crm_xml_add(request, PCMK__XA_TASK, PCMK__ATTRD_CMD_PEER_REMOVE); request 762 lib/common/ipc_client.c pcmk__xe_add_node(request, node_name, nodeid); request 768 lib/common/ipc_client.c request = create_request(CRM_OP_RM_NODE_CACHE, NULL, NULL, request 771 lib/common/ipc_client.c crm_xml_set_id(request, "%lu", (unsigned long) nodeid); request 773 lib/common/ipc_client.c crm_xml_add(request, XML_ATTR_UNAME, node_name); request 781 lib/common/ipc_client.c return request; request 799 lib/common/ipc_client.c xmlNode *request = NULL; request 808 lib/common/ipc_client.c request = create_purge_node_request(api, node_name, nodeid); request 809 lib/common/ipc_client.c if (request == NULL) { request 812 lib/common/ipc_client.c rc = pcmk__send_ipc_request(api, request); request 813 lib/common/ipc_client.c free_xml(request); request 178 lib/common/ipc_controld.c reply_expected(pcmk_ipc_api_t *api, const xmlNode *request) request 181 lib/common/ipc_controld.c return pcmk__str_any_of(crm_element_value(request, F_CRM_TASK), request 332 lib/common/ipc_controld.c send_controller_request(pcmk_ipc_api_t *api, const xmlNode *request, request 335 lib/common/ipc_controld.c if (crm_element_value(request, XML_ATTR_REFERENCE) == NULL) { request 343 lib/common/ipc_controld.c return pcmk__send_ipc_request(api, request); request 373 lib/common/ipc_controld.c xmlNode *request; request 387 lib/common/ipc_controld.c request = create_controller_request(api, CRM_OP_REPROBE, router_node, request 389 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); request 391 lib/common/ipc_controld.c free_xml(request); request 407 lib/common/ipc_controld.c xmlNode *request; request 410 lib/common/ipc_controld.c request = create_controller_request(api, CRM_OP_NODE_INFO, NULL, NULL); request 411 lib/common/ipc_controld.c if (request == NULL) { request 415 lib/common/ipc_controld.c crm_xml_set_id(request, "%lu", (unsigned long) nodeid); request 418 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); request 419 lib/common/ipc_controld.c free_xml(request); request 435 lib/common/ipc_controld.c xmlNode *request; request 438 lib/common/ipc_controld.c request = create_controller_request(api, CRM_OP_PING, node_name, NULL); request 439 lib/common/ipc_controld.c if (request == NULL) { request 442 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); request 443 lib/common/ipc_controld.c free_xml(request); request 458 lib/common/ipc_controld.c xmlNode *request; request 461 lib/common/ipc_controld.c request = create_controller_request(api, PCMK__CONTROLD_CMD_NODES, NULL, request 463 lib/common/ipc_controld.c if (request != NULL) { request 464 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); request 465 lib/common/ipc_controld.c free_xml(request); request 480 lib/common/ipc_controld.c xmlNode *request, *msg_data, *xml_rsc, *params; request 525 lib/common/ipc_controld.c request = create_controller_request(api, op, router_node, msg_data); request 526 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); request 528 lib/common/ipc_controld.c free_xml(request); request 181 lib/common/ipc_pacemakerd.c reply_expected(pcmk_ipc_api_t *api, const xmlNode *request) request 183 lib/common/ipc_pacemakerd.c const char *command = crm_element_value(request, F_CRM_TASK); request 65 lib/common/ipc_schedulerd.c reply_expected(pcmk_ipc_api_t *api, const xmlNode *request) request 67 lib/common/ipc_schedulerd.c const char *command = crm_element_value(request, F_CRM_TASK); request 582 lib/common/ipc_server.c pcmk__ipc_prepare_iov(uint32_t request, const xmlNode *message, request 656 lib/common/ipc_server.c header->qb.id = (int32_t)request; /* Replying to a specific request */ request 746 lib/common/ipc_server.c pcmk__ipc_send_xml(pcmk__client_t *c, uint32_t request, const xmlNode *message, request 755 lib/common/ipc_server.c rc = pcmk__ipc_prepare_iov(request, message, crm_ipc_default_buffer_size(), request 815 lib/common/ipc_server.c uint32_t request, uint32_t flags, const char *tag, request 826 lib/common/ipc_server.c rc = pcmk__ipc_send_xml(c, request, ack, flags); request 48 lib/common/messages.c xmlNode *request = NULL; request 64 lib/common/messages.c request = create_xml_node(NULL, __func__); request 65 lib/common/messages.c crm_xml_add(request, F_CRM_ORIGIN, origin); request 66 lib/common/messages.c crm_xml_add(request, F_TYPE, T_CRM); request 67 lib/common/messages.c crm_xml_add(request, F_CRM_VERSION, CRM_FEATURE_SET); request 68 lib/common/messages.c crm_xml_add(request, F_CRM_MSG_TYPE, XML_ATTR_REQUEST); request 69 lib/common/messages.c crm_xml_add(request, F_CRM_REFERENCE, reference); request 70 lib/common/messages.c crm_xml_add(request, F_CRM_TASK, task); request 71 lib/common/messages.c crm_xml_add(request, F_CRM_SYS_TO, sys_to); request 72 lib/common/messages.c crm_xml_add(request, F_CRM_SYS_FROM, true_from); request 76 lib/common/messages.c crm_xml_add(request, F_CRM_HOST_TO, host_to); request 80 lib/common/messages.c add_message_xml(request, F_CRM_DATA, msg_data); request 85 lib/common/messages.c return request; request 251 lib/common/messages.c pcmk__process_request(pcmk__request_t *request, GHashTable *handlers) request 253 lib/common/messages.c xmlNode *(*handler)(pcmk__request_t *request) = NULL; request 255 lib/common/messages.c CRM_CHECK((request != NULL) && (request->op != NULL) && (handlers != NULL), request 258 lib/common/messages.c if (pcmk_is_set(request->flags, pcmk__request_sync) request 259 lib/common/messages.c && (request->ipc_client != NULL)) { request 260 lib/common/messages.c CRM_CHECK(request->ipc_client->request_id == request->ipc_id, request 264 lib/common/messages.c handler = g_hash_table_lookup(handlers, request->op); request 269 lib/common/messages.c request->op, pcmk__request_origin_type(request), request 270 lib/common/messages.c pcmk__request_origin(request)); request 275 lib/common/messages.c return (*handler)(request); request 285 lib/common/messages.c pcmk__reset_request(pcmk__request_t *request) request 287 lib/common/messages.c free(request->op); request 288 lib/common/messages.c request->op = NULL; request 290 lib/common/messages.c pcmk__reset_result(&(request->result)); request 39 lib/common/output.c g_free(out->request); request 159 lib/common/output_html.c } else if (out->request != NULL) { request 160 lib/common/output_html.c pcmk_create_xml_text_node(head_node, "title", out->request); request 403 lib/common/output_html.c retval->request = pcmk__quote_cmdline(argv); request 327 lib/common/output_log.c retval->request = pcmk__quote_cmdline(argv); request 124 lib/common/output_none.c retval->request = pcmk__quote_cmdline(argv); request 309 lib/common/output_text.c retval->request = pcmk__quote_cmdline(argv); request 129 lib/common/output_xml.c if (out->request != NULL) { request 130 lib/common/output_xml.c crm_xml_add(priv->root, "request", out->request); request 411 lib/common/output_xml.c retval->request = pcmk__quote_cmdline(argv); request 229 lib/lrmd/proxy_common.c xmlNode *request = get_message_xml(msg, F_LRMD_IPC_MSG); request 232 lib/lrmd/proxy_common.c CRM_CHECK(request != NULL, return); request 250 lib/lrmd/proxy_common.c crm_xml_add(request, XML_ACL_TAG_ROLE, "pacemaker-remote"); request 253 lib/lrmd/proxy_common.c pcmk__update_acl_user(request, F_LRMD_IPC_USER, node_name); request 256 lib/lrmd/proxy_common.c const char *type = crm_element_value(request, F_TYPE); request 260 lib/lrmd/proxy_common.c && crm_element_value(request, request 262 lib/lrmd/proxy_common.c && pcmk__str_any_of(crm_element_value(request, PCMK__XA_TASK), request 266 lib/lrmd/proxy_common.c pcmk__xe_add_node(request, proxy->node_name, 0); request 269 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 5000, NULL); request 298 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 10000, &op_reply); request 53 maint/gnulib/lib/fd-hook.c int fd, int request, void *arg) request 57 maint/gnulib/lib/fd-hook.c return primary (fd, request, arg); request 60 maint/gnulib/lib/fd-hook.c primary, fd, request, arg); request 65 maint/gnulib/lib/fd-hook.c int fd, int request, void *arg) request 67 maint/gnulib/lib/fd-hook.c return execute_ioctl_hooks (anchor.private_next, primary, fd, request, arg); request 35 maint/gnulib/lib/fd-hook.h typedef int (*gl_ioctl_fn) (int fd, int request, void *arg); request 57 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); request 88 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); request 94 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); request 99 maint/gnulib/lib/fd-hook.h int fd, int request, void *arg); request 31 maint/gnulib/lib/ioctl.c rpl_ioctl (int fd, int request, ... /* {void *,char *} arg */) request 36 maint/gnulib/lib/ioctl.c va_start (args, request); request 42 maint/gnulib/lib/ioctl.c return ioctl (fd, (unsigned int) request, buf); request 62 maint/gnulib/lib/ioctl.c primary_ioctl (int fd, int request, void *arg) request 76 maint/gnulib/lib/ioctl.c ioctl (int fd, int request, ... /* {void *,char *} arg */) request 81 maint/gnulib/lib/ioctl.c va_start (args, request); request 86 maint/gnulib/lib/ioctl.c return execute_all_ioctl_hooks (primary_ioctl, fd, request, arg); request 88 maint/gnulib/lib/ioctl.c return primary_ioctl (fd, request, arg); request 84 maint/gnulib/lib/sockets.c int fd, int request, void *arg) request 96 maint/gnulib/lib/sockets.c if (ioctlsocket (sock, request, arg) < 0) request 106 maint/gnulib/lib/sockets.c return execute_ioctl_hooks (remaining_list, primary, fd, request, arg); request 54 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); request 56 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); request 60 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); request 63 maint/gnulib/lib/sys_ioctl.in.h (int fd, int request, ... /* {void *,char *} arg */)); request 341 tools/crm_mon_curses.c retval->request = pcmk__quote_cmdline(argv);