Motr  M0
repair_cli.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-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_SNS_CM_ST_REPAIR_CLI_H__
26 #define __MOTR_SNS_CM_ST_REPAIR_CLI_H__
27 
28 #include "rpc/rpc.h"
29 
30 enum {
33  MAX_SERVERS = 1024
34 };
35 
36 struct rpc_ctx {
37  struct m0_rpc_conn ctx_conn;
39  int ctx_rc;
40 };
41 
42 M0_INTERNAL int repair_client_init(void);
43 M0_INTERNAL void repair_client_fini(void);
44 M0_INTERNAL int repair_rpc_ctx_init(struct rpc_ctx *ctx, const char *sep);
45 M0_INTERNAL void repair_rpc_ctx_fini(struct rpc_ctx *ctx);
46 M0_INTERNAL int repair_rpc_post(struct m0_fop *fop,
47  struct m0_rpc_session *session,
48  const struct m0_rpc_item_ops *ri_ops,
49  m0_time_t deadline);
50 
51 #endif
52 /*
53  * Local variables:
54  * c-indentation-style: "K&R"
55  * c-basic-offset: 8
56  * tab-width: 8
57  * fill-column: 80
58  * scroll-step: 1
59  * End:
60  */
M0_INTERNAL int repair_client_init(void)
Definition: repair_cli.c:42
M0_INTERNAL void repair_rpc_ctx_fini(struct rpc_ctx *ctx)
Definition: repair_cli.c:71
uint64_t m0_time_t
Definition: time.h:37
static struct m0_rpc_session session
Definition: formation2.c:38
static struct m0_rm_incoming_ops ri_ops
Definition: wlock_helper.c:71
struct m0_rpc_session ctx_session
Definition: pool_trigger.c:59
struct m0_rpc_conn ctx_conn
Definition: pool_trigger.c:58
M0_INTERNAL int repair_rpc_post(struct m0_fop *fop, struct m0_rpc_session *session, const struct m0_rpc_item_ops *ri_ops, m0_time_t deadline)
Definition: repair_cli.c:79
static struct m0_fop * fop
Definition: item.c:57
M0_INTERNAL void repair_client_fini(void)
Definition: repair_cli.c:55
Definition: nucleus.c:42
M0_INTERNAL int repair_rpc_ctx_init(struct rpc_ctx *ctx, const char *sep)
Definition: repair_cli.c:62
int ctx_rc
Definition: repair_cli.h:39
Definition: fop.h:79