Motr  M0
ha.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2020 Seagate Technology LLC and/or its Affiliates
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * For any questions about this software or licensing,
17  * please email opensource@seagate.com or cortx-questions@seagate.com.
18  *
19  */
20 
21 #pragma once
22 #ifndef __MOTR_BE_HA_H__
23 #define __MOTR_BE_HA_H__
24 
25 #include "lib/types.h" /* uint8_t */
26 
38 };
39 
45 struct m0_be_io_err {
46  uint32_t ber_errcode; /* `int' is not xcodeable */
47  uint8_t ber_location;
48  uint8_t ber_io_opcode;
49 } M0_XCA_RECORD M0_XCA_DOMAIN(be|rpc);
50 
56 M0_INTERNAL void m0_be_io_err_send(uint32_t errcode, uint8_t location,
57  uint8_t io_opcode);
58 
60 #endif /* __MOTR_BE_HA_H__ */
uint8_t ber_location
Definition: ha.h:47
const char * location
Definition: storage.c:50
M0_INTERNAL void m0_be_io_err_send(uint32_t errcode, uint8_t location, uint8_t io_opcode)
Definition: ha.c:38
uint32_t ber_errcode
Definition: ha.h:46
enum m0_conf_ha_service_event M0_XCA_DOMAIN
uint8_t ber_io_opcode
Definition: ha.h:48
m0_be_location
Definition: ha.h:33
static struct m0_be_ut_backend be
Definition: service_ut.c:59