Motr  M0
setup.h File Reference
#include <stdio.h>
#include "lib/tlist.h"
#include "lib/types.h"
#include "reqh/reqh_service.h"
#include "stob/stob.h"
#include "net/lnet/lnet.h"
#include "net/buffer_pool.h"
#include "mdstore/mdstore.h"
#include "fol/fol.h"
#include "reqh/reqh.h"
#include "yaml.h"
#include "be/ut/helper.h"
#include "dtm0/domain.h"
#include "pool/pool.h"
#include "ha/ha.h"
#include "motr/ha.h"
#include "module/module.h"
Include dependency graph for setup.h:

Go to the source code of this file.

Data Structures

struct  cs_args
 
struct  cs_endpoint_and_xprt
 
struct  cs_stob_file
 
struct  cs_stobs
 
struct  m0_reqh_context
 
struct  m0_motr
 
struct  cs_ad_stob
 

Macros

#define __MOTR_MOTR_MOTR_SETUP_H__
 

Enumerations

enum  { M0_SETUP_DEFAULT_POOL_WIDTH = 10 }
 
enum  { M0_AD_STOB_DOM_KEY_DEFAULT = 0x1, M0_ADDB2_STOB_DOM_KEY = 0xaddbf11e, M0_BE_SEG_SIZE_DEFAULT = 128 * 1024 * 1024ULL }
 
enum  stob_type { M0_LINUX_STOB, M0_AD_STOB, M0_STOB_TYPE_NR }
 
enum  cs_reqh_ctx_states { RC_UNINITIALISED, RC_REQH_INITIALISED, RC_INITIALISED }
 
enum  { CS_MAX_EP_ADDR_LEN = 86 }
 

Functions

 M0_BASSERT (CS_MAX_EP_ADDR_LEN >=sizeof "lnet:"+M0_NET_LNET_XEP_ADDR_LEN)
 
int m0_cs_init (struct m0_motr *cctx, struct m0_net_xprt **xprts, size_t xprts_nr, FILE *out, bool mkfs)
 
void m0_cs_fini (struct m0_motr *cctx)
 
int m0_cs_setup_env (struct m0_motr *cctx, int argc, char **argv)
 
int m0_cs_start (struct m0_motr *cctx)
 
M0_INTERNAL struct m0_rpc_machinem0_motr_to_rmach (struct m0_motr *motr)
 
M0_INTERNAL struct m0_confcm0_motr2confc (struct m0_motr *motr)
 
struct m0_reqhm0_cs_reqh_get (struct m0_motr *cctx)
 
M0_INTERNAL struct m0_motrm0_cs_ctx_get (struct m0_reqh *reqh)
 
M0_INTERNAL struct m0_reqh_contextm0_cs_reqh_context (struct m0_reqh *reqh)
 
M0_INTERNAL struct m0_storage_devsm0_cs_storage_devs_get (void)
 
M0_INTERNAL struct m0_net_domainm0_cs_net_domain_locate (struct m0_motr *cctx, const char *xprt_name)
 
M0_INTERNAL int m0_ep_and_xprt_extract (struct cs_endpoint_and_xprt *epx, const char *ep)
 
M0_INTERNAL void m0_ep_and_xprt_fini (struct cs_endpoint_and_xprt *epx)
 
 M0_TL_DESCR_DECLARE (cs_eps, extern)
 
 M0_TL_DECLARE (cs_eps, M0_INTERNAL, struct cs_endpoint_and_xprt)
 
 M0_BOB_DECLARE (M0_INTERNAL, cs_endpoint_and_xprt)
 
M0_INTERNAL int m0_motr_stob_reopen (struct m0_reqh *reqh, struct m0_poolmach *pm, uint32_t dev_id)
 

Variables

M0_EXTERN const char * m0_cs_stypes [M0_STOB_TYPE_NR]
 

Macro Definition Documentation

◆ __MOTR_MOTR_MOTR_SETUP_H__

#define __MOTR_MOTR_MOTR_SETUP_H__

Definition at line 25 of file setup.h.