Motr  M0
load_fop.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2015-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #pragma once
24 
25 #ifndef __MOTR_CONF_LOAD_FOP_H__
26 #define __MOTR_CONF_LOAD_FOP_H__
27 
28 
29 #include "lib/types.h"
30 #include "xcode/xcode_attr.h"
31 #include "lib/buf.h"
32 #include "lib/buf_xc.h"
33 #include "conf/fop.h"
34 #include "fid/fid_xc.h" /* m0_fid_xc */
35 #include "fop/fop.h" /* m0_fop */
36 #include "rpc/bulk.h" /* m0_rpc_bulk */
37 #include "net/net_otw_types.h" /* m0_net_buf_desc_data */
38 
43 M0_INTERNAL bool m0_is_conf_load_fop(const struct m0_fop *fop);
44 M0_INTERNAL bool m0_is_conf_load_fop_rep(const struct m0_fop *fop);
45 M0_INTERNAL struct m0_fop_conf_load *m0_conf_fop_to_load_fop(
46  const struct m0_fop *fop);
48  const struct m0_fop *fop);
56 M0_INTERNAL m0_bcount_t m0_conf_segment_size(struct m0_fop *fop);
57 
58 
84  int32_t clfr_rc;
86  uint32_t clfr_version;
87 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
88 
94  uint32_t clf_version;
96  uint64_t clf_tx_id;
102 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
103 
104 #endif /* __MOTR_CONF_LOAD_FOP_H__ */
105 
106 /*
107  * Local variables:
108  * c-indentation-style: "K&R"
109  * c-basic-offset: 8
110  * tab-width: 8
111  * fill-column: 80
112  * scroll-step: 1
113  * End:
114  */
uint64_t m0_bcount_t
Definition: types.h:77
M0_INTERNAL bool m0_is_conf_load_fop(const struct m0_fop *fop)
Definition: load_fop.c:35
M0_INTERNAL struct m0_fop_conf_load_rep * m0_conf_fop_to_load_fop_rep(const struct m0_fop *fop)
Definition: load_fop.c:56
struct m0_net_buf_desc_data clf_desc
Definition: load_fop.h:101
#define M0_XCA_DOMAIN(value)
Definition: xcode_attr.h:72
uint64_t clf_tx_id
Definition: load_fop.h:96
M0_INTERNAL struct m0_fop_conf_load * m0_conf_fop_to_load_fop(const struct m0_fop *fop)
Definition: load_fop.c:47
M0_INTERNAL m0_bcount_t m0_conf_segment_size(struct m0_fop *fop)
Definition: load_fop.c:65
uint32_t clfr_version
Definition: load_fop.h:86
uint32_t clf_version
Definition: load_fop.h:94
static struct m0_fop * fop
Definition: item.c:57
M0_INTERNAL bool m0_is_conf_load_fop_rep(const struct m0_fop *fop)
Definition: load_fop.c:41
Definition: fop.h:79