Motr  M0
trigger_fop_common.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 
29 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_DIXCM
30 #include "lib/trace.h"
31 #include "fop/fop.h"
32 #include "fop/fop_item_type.h"
33 #include "cm/repreb/cm.h"
34 
43 
52 
54  uint32_t op,
55  struct m0_fop **fop)
56 {
57  static struct m0_fop_type *dix_fop_type[] = {
68  };
69  M0_ENTRY();
71 
73  return *fop == NULL ? M0_ERR(-ENOMEM) : M0_RC(0);
74 }
75 
76 
77 #undef M0_TRACE_SUBSYSTEM
78 
81 /*
82  * Local variables:
83  * c-indentation-style: "K&R"
84  * c-basic-offset: 8
85  * tab-width: 8
86  * fill-column: 80
87  * scroll-step: 1
88  * End:
89  */
90 /*
91  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
92  */
struct m0_fop_type m0_dix_rebalance_quiesce_fopt
#define M0_PRE(cond)
static struct m0_fop_type * dix_fop_type(uint32_t op)
Definition: trigger_fom.c:78
struct m0_fop_type m0_dix_rebalance_abort_rep_fopt
#define NULL
Definition: misc.h:38
struct m0_fop_type m0_dix_rebalance_abort_fopt
struct m0_fop_type m0_dix_repair_quiesce_rep_fopt
static struct m0_addb2_mach * mach
Definition: storage.c:42
return M0_RC(rc)
op
Definition: libdemo.c:64
#define M0_ENTRY(...)
Definition: trace.h:170
return M0_ERR(-EOPNOTSUPP)
struct m0_fop_type m0_dix_rebalance_trigger_rep_fopt
struct m0_fop_type m0_dix_repair_abort_fopt
struct m0_fop_type m0_dix_repair_status_rep_fopt
struct m0_fop_type m0_dix_rebalance_quiesce_rep_fopt
struct m0_fop_type m0_dix_rebalance_status_fopt
struct m0_fop_type m0_dix_repair_trigger_fopt
struct m0_fop_type m0_dix_repair_status_fopt
struct m0_fop_type m0_dix_rebalance_trigger_fopt
struct m0_fop_type m0_dix_rebalance_status_rep_fopt
struct m0_fop_type m0_dix_repair_quiesce_fopt
static struct m0_fop * fop
Definition: item.c:57
#define IS_IN_ARRAY(idx, array)
Definition: misc.h:311
struct m0_fop_type m0_dix_repair_abort_rep_fopt
M0_INTERNAL int m0_dix_cm_trigger_fop_alloc(struct m0_rpc_machine *mach, uint32_t op, struct m0_fop **fop)
Definition: fop.h:79
struct m0_fop_type m0_dix_repair_trigger_rep_fopt
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)
Definition: fop.c:96