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
33
enum
m0_be_location
{
34
M0_BE_LOC_NONE
,
35
M0_BE_LOC_LOG
,
36
M0_BE_LOC_SEGMENT_1
,
37
M0_BE_LOC_SEGMENT_2
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__ */
types.h
m0_be_io_err::ber_location
uint8_t ber_location
Definition:
ha.h:47
M0_BE_LOC_LOG
Definition:
ha.h:35
M0_BE_LOC_NONE
Definition:
ha.h:34
location
const char * location
Definition:
storage.c:50
m0_be_io_err_send
M0_INTERNAL void m0_be_io_err_send(uint32_t errcode, uint8_t location, uint8_t io_opcode)
Definition:
ha.c:38
m0_be_io_err::ber_errcode
uint32_t ber_errcode
Definition:
ha.h:46
M0_XCA_DOMAIN
enum m0_conf_ha_service_event M0_XCA_DOMAIN
m0_be_io_err
Definition:
ha.h:45
m0_be_io_err::ber_io_opcode
uint8_t ber_io_opcode
Definition:
ha.h:48
M0_BE_LOC_SEGMENT_1
Definition:
ha.h:36
M0_BE_LOC_SEGMENT_2
Definition:
ha.h:37
m0_be_location
m0_be_location
Definition:
ha.h:33
be
static struct m0_be_ut_backend be
Definition:
service_ut.c:59
be
ha.h
Generated on Thu Apr 14 2022 14:02:51 for Motr by
1.8.14