Motr  M0
trigger_fop.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2016-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 
30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_DIXCM
31 #include "cm/repreb/trigger_fop.h"
32 #include "cm/repreb/trigger_fop_xc.h"
33 #include "cm/repreb/trigger_fom.h"
34 #include "dix/cm/cm.h"
35 #include "dix/cm/trigger_fom.h"
36 #include "dix/cm/trigger_fop.h"
37 #include "rpc/item.h"
38 
45 M0_INTERNAL void m0_dix_cm_repair_trigger_fop_fini(void)
46 {
55 }
56 
63 M0_INTERNAL void m0_dix_cm_repair_trigger_fop_init(void)
64 {
67  "dix repair trigger",
68  trigger_fop_xc,
74  "dix repair trigger reply",
75  trigger_rep_fop_xc,
79 
82  "dix repair quiesce trigger",
83  trigger_fop_xc,
89  "dix repair quiesce trigger reply",
90  trigger_rep_fop_xc,
94 
97  "dix repair status",
98  trigger_fop_xc,
104  "dix repair status reply",
105  m0_status_rep_fop_xc,
111  "dix repair abort",
112  trigger_fop_xc,
118  "dix repair abort reply",
119  trigger_rep_fop_xc,
123 }
124 
125 
126 
127 #undef M0_TRACE_SUBSYSTEM
128 
131 /*
132  * Local variables:
133  * c-indentation-style: "K&R"
134  * c-basic-offset: 8
135  * tab-width: 8
136  * fill-column: 80
137  * scroll-step: 1
138  * End:
139  */
140 /*
141  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
142  */
M0_INTERNAL void m0_dix_cm_repair_trigger_fop_init(void)
Definition: trigger_fop.c:63
M0_INTERNAL void m0_dix_cm_repair_trigger_fop_fini(void)
Definition: trigger_fop.c:45
struct m0_fop_type m0_dix_repair_quiesce_rep_fopt
const struct m0_fom_type_ops m0_dix_trigger_fom_type_ops
Definition: trigger_fom.c:55
struct m0_fop_type m0_dix_repair_abort_fopt
struct m0_fop_type m0_dix_repair_status_rep_fopt
M0_INTERNAL void m0_cm_trigger_fop_fini(struct m0_fop_type *ft)
Definition: trigger_fom.c:353
struct m0_fop_type m0_dix_repair_trigger_fopt
struct m0_fop_type m0_dix_repair_status_fopt
M0_EXTERN struct m0_cm_type dix_repair_cmt
Definition: cm.h:173
struct m0_fop_type m0_dix_repair_quiesce_fopt
struct m0_fop_type m0_dix_repair_abort_rep_fopt
M0_INTERNAL void m0_cm_trigger_fop_init(struct m0_fop_type *ft, enum M0_RPC_OPCODES op, const char *name, const struct m0_xcode_type *xt, uint64_t rpc_flags, struct m0_cm_type *cmt, const struct m0_fom_type_ops *ops)
Definition: trigger_fom.c:358
struct m0_fop_type m0_dix_repair_trigger_rep_fopt