Motr  M0
db.c File Reference
#include "conf/db.h"
#include "conf/obj.h"
#include "conf/onwire.h"
#include "conf/preload.h"
#include "conf/ut/confc.h"
#include "conf/ut/common.h"
#include "lib/finject.h"
#include "lib/fs.h"
#include "be/ut/helper.h"
#include "ut/misc.h"
#include "ut/ut.h"
Include dependency graph for db.c:

Go to the source code of this file.

Macros

#define XCAST(xobj, type)   ((struct type *)(&(xobj)->xo_u))
 

Functions

static void profile_check (const struct m0_confx_obj *xobj)
 
static void node_check (const struct m0_confx_obj *xobj)
 
static void diskv_check (const struct m0_confx_obj *xobj)
 
static void conf_ut_db_init ()
 
static void conf_ut_db_fini ()
 
static int conf_ut_be_tx_create (struct m0_be_tx *tx, struct m0_be_ut_backend *ut_be, struct m0_be_tx_credit *accum)
 
static void conf_ut_be_tx_fini (struct m0_be_tx *tx)
 
static void test_confdb (void)
 

Variables

static struct m0_be_ut_backend ut_be
 
static struct m0_be_ut_seg ut_seg
 
static struct m0_be_segseg
 
struct m0_ut_suite confstr_ut
 

Macro Definition Documentation

◆ XCAST

#define XCAST (   xobj,
  type 
)    ((struct type *)(&(xobj)->xo_u))

Definition at line 39 of file db.c.

Function Documentation

◆ conf_ut_be_tx_create()

static int conf_ut_be_tx_create ( struct m0_be_tx tx,
struct m0_be_ut_backend ut_be,
struct m0_be_tx_credit accum 
)
static

Definition at line 99 of file db.c.

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

◆ conf_ut_be_tx_fini()

static void conf_ut_be_tx_fini ( struct m0_be_tx tx)
static

Definition at line 108 of file db.c.

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

◆ conf_ut_db_fini()

static void conf_ut_db_fini ( )
static

Definition at line 89 of file db.c.

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

◆ conf_ut_db_init()

static void conf_ut_db_init ( )
static

Definition at line 82 of file db.c.

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

◆ diskv_check()

static void diskv_check ( const struct m0_confx_obj xobj)
static

Definition at line 70 of file db.c.

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

◆ node_check()

static void node_check ( const struct m0_confx_obj xobj)
static

Definition at line 49 of file db.c.

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

◆ profile_check()

static void profile_check ( const struct m0_confx_obj xobj)
static

Definition at line 41 of file db.c.

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

◆ test_confdb()

static void test_confdb ( void  )
static

Definition at line 114 of file db.c.

Here is the call graph for this function:

Variable Documentation

◆ confstr_ut

struct m0_ut_suite confstr_ut
Initial value:
= {
.ts_name = "confstr-ut",
.ts_tests = {
{ "db", test_confdb },
{ NULL, NULL }
}
}
#define NULL
Definition: misc.h:38
static void test_confdb(void)
Definition: db.c:114

Definition at line 230 of file db.c.

◆ seg

struct m0_be_seg* seg
static

Definition at line 37 of file db.c.

◆ ut_be

struct m0_be_ut_backend ut_be
static

Definition at line 35 of file db.c.

◆ ut_seg

struct m0_be_ut_seg ut_seg
static

Definition at line 36 of file db.c.