Motr  M0
conf.c File Reference
#include "lib/trace.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/finject.h"
#include "lib/string.h"
#include "motr/setup.h"
#include "motr/setup_internal.h"
#include "rpc/rpclib.h"
#include "conf/obj.h"
#include "conf/obj_ops.h"
#include "conf/confc.h"
#include "conf/schema.h"
#include "conf/dir.h"
#include "conf/diter.h"
#include "conf/helpers.h"
#include "reqh/reqh_service.h"
#include "stob/linux.h"
#include "ioservice/storage_dev.h"
#include "ioservice/fid_convert.h"
Include dependency graph for conf.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_M0D
 

Functions

static void option_add (struct cs_args *args, char *s)
 
static char * strxdup (const char *addr)
 
static void service_options_add (struct cs_args *args, const struct m0_conf_service *svc)
 
static M0_UNUSED void node_options_add (struct cs_args *args, const struct m0_conf_node *node)
 
static bool service_and_node (const struct m0_conf_obj *obj)
 
M0_INTERNAL int cs_conf_to_args (struct cs_args *dest, struct m0_conf_root *root)
 
static bool is_local_service (const struct m0_conf_obj *obj)
 
static bool is_ios (const struct m0_conf_obj *obj)
 
static bool is_local_ios (const struct m0_conf_obj *obj)
 
static bool is_device (const struct m0_conf_obj *obj)
 
static int cs_conf_storage_attach_by_srv (struct cs_stobs *cs_stob, struct m0_storage_devs *devs, struct m0_fid *svc_fid, struct m0_confc *confc, bool force)
 
static bool cs_conf_storage_pver_is_actual (const struct m0_conf_obj *obj)
 
static int cs_conf_storage_is_n1_k0_s0 (struct m0_confc *confc)
 
M0_INTERNAL int cs_conf_storage_init (struct cs_stobs *stob, struct m0_storage_devs *devs, bool force)
 
M0_INTERNAL int cs_conf_services_init (struct m0_motr *cctx)
 
M0_INTERNAL int cs_conf_device_reopen (struct m0_poolmach *pm, struct cs_stobs *stob, uint32_t dev_id)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_M0D

Definition at line 23 of file conf.c.

Function Documentation

◆ cs_conf_storage_attach_by_srv()

static int cs_conf_storage_attach_by_srv ( struct cs_stobs cs_stob,
struct m0_storage_devs devs,
struct m0_fid svc_fid,
struct m0_confc confc,
bool  force 
)
static

Definition at line 252 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cs_conf_storage_is_n1_k0_s0()

static int cs_conf_storage_is_n1_k0_s0 ( struct m0_confc confc)
static

Definition at line 362 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cs_conf_storage_pver_is_actual()

static bool cs_conf_storage_pver_is_actual ( const struct m0_conf_obj obj)
static
Todo:
XXX filter only actual pool versions till formulaic pool version creation in place.

Definition at line 352 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_device()

static bool is_device ( const struct m0_conf_obj obj)
static

Definition at line 247 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_ios()

static bool is_ios ( const struct m0_conf_obj obj)
static

Definition at line 236 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_local_ios()

static bool is_local_ios ( const struct m0_conf_obj obj)
static

Definition at line 242 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_local_service()

static bool is_local_service ( const struct m0_conf_obj obj)
static

Definition at line 195 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ node_options_add()

static M0_UNUSED void node_options_add ( struct cs_args args,
const struct m0_conf_node node 
)
static
Todo:
Node parameters cn_memsize and cn_flags options are not used currently. Options '-m' and '-q' options are used for maximum RPC message size and minimum length of TM receive queue. If required, change the option names accordingly.

Definition at line 131 of file conf.c.

Here is the caller graph for this function:

◆ option_add()

static void option_add ( struct cs_args args,
char *  s 
)
static

Definition at line 50 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ service_and_node()

static bool service_and_node ( const struct m0_conf_obj obj)
static

Definition at line 152 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ service_options_add()

static void service_options_add ( struct cs_args args,
const struct m0_conf_service svc 
)
static

Definition at line 84 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ strxdup()

static char* strxdup ( const char *  addr)
static

Definition at line 71 of file conf.c.

Here is the call graph for this function:
Here is the caller graph for this function: