Motr  M0
setup_internal.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_SETUP_INTERNAL_H__
26 #define __MOTR_SETUP_INTERNAL_H__
27 
28 #include "motr/setup.h"
29 
30 /* import */
31 struct m0_storage_devs;
32 
44  uint64_t cs_bp_magic;
45 };
46 
47 M0_INTERNAL int cs_service_init(const char *name, struct m0_reqh_context *rctx,
48  struct m0_reqh *reqh, struct m0_fid *fid);
49 M0_INTERNAL void cs_service_fini(struct m0_reqh_service *service);
50 
52 M0_INTERNAL int cs_conf_to_args(struct cs_args *dest, struct m0_conf_root *r);
53 
54 M0_INTERNAL int cs_conf_storage_init(struct cs_stobs *stob,
55  struct m0_storage_devs *devs,
56  bool force);
57 
58 M0_INTERNAL int cs_conf_device_reopen(struct m0_poolmach *pm,
59  struct cs_stobs *stob, uint32_t dev_id);
60 
61 M0_INTERNAL int cs_conf_services_init(struct m0_motr *cctx);
62 
64 #endif /* __MOTR_SETUP_INTERNAL_H__ */
65 
66 /*
67  * Local variables:
68  * c-indentation-style: "K&R"
69  * c-basic-offset: 8
70  * tab-width: 8
71  * fill-column: 80
72  * scroll-step: 1
73  * End:
74  */
M0_INTERNAL int cs_conf_storage_init(struct cs_stobs *stob, struct m0_storage_devs *devs, bool force)
Definition: conf.c:398
M0_INTERNAL void cs_service_fini(struct m0_reqh_service *service)
Definition: setup.c:1178
static struct m0_rpc_client_ctx cctx
Definition: rconfc.c:69
M0_INTERNAL int cs_service_init(const char *name, struct m0_reqh_context *rctx, struct m0_reqh *reqh, struct m0_fid *fid)
Definition: setup.c:1117
struct m0_fid fid
Definition: di.c:46
struct m0_reqh_context rctx
const char * name
Definition: trace.c:110
static struct m0_stob * stob
Definition: storage.c:39
M0_INTERNAL int cs_conf_device_reopen(struct m0_poolmach *pm, struct cs_stobs *stob, uint32_t dev_id)
Definition: conf.c:520
struct m0_tlink cs_bp_linkage
Definition: setup.h:156
Definition: reqh.h:94
M0_INTERNAL int cs_conf_to_args(struct cs_args *dest, struct m0_conf_root *r)
Definition: conf.c:159
Definition: setup.h:354
struct m0_reqh reqh
Definition: rm_foms.c:48
Definition: fid.h:38
static int r[NR]
Definition: thread.c:46
uint64_t cs_bp_magic
static struct m0_reqh_service * service[REQH_IN_UT_MAX]
Definition: long_lock_ut.c:46
M0_INTERNAL int cs_conf_services_init(struct m0_motr *cctx)
Definition: conf.c:464