Motr  M0
fop_allow_ut.c File Reference
#include "reqh/ut/service_xc.h"
#include "rpc/rpc_opcodes.h"
#include "sss/ss_fops.h"
#include "ut/ut.h"
#include "rpc/ut/clnt_srv_ctx.c"
#include "reqh/ut/reqhut_fom.c"
Include dependency graph for fop_allow_ut.c:

Go to the source code of this file.

Functions

static int fom_tick (struct m0_fom *fom)
 
static int fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
 
static int m0_reqhut_fop_init (void)
 
static void m0_reqhut_fop_fini (void)
 
static int send_fop ()
 
static struct m0_foput_ssfop_alloc (const char *name, uint32_t cmd)
 
static void ut_sss_req (const char *name, uint32_t cmd, int expected_rc, int expected_state)
 
static void fop_allow_test (void)
 

Variables

static char * ut_server_argv []
 
struct m0_reqh_service_typeut_stypes []
 
static const struct m0_fid ut_fid
 
static const struct m0_fom_ops ut_fom_ops
 
static const struct m0_fom_type_ops ut_fom_type_ops
 
static struct m0_fop_type m0_reqhut_allow_fopt
 
struct m0_ut_suite reqh_fop_allow_ut
 

Function Documentation

◆ fom_create()

static int fom_create ( struct m0_fop fop,
struct m0_fom **  out,
struct m0_reqh reqh 
)
static

Definition at line 55 of file fop_allow_ut.c.

Here is the call graph for this function:

◆ fom_tick()

static int fom_tick ( struct m0_fom fom)
static

Definition at line 107 of file fop_allow_ut.c.

Here is the call graph for this function:

◆ fop_allow_test()

static void fop_allow_test ( void  )
static

Definition at line 176 of file fop_allow_ut.c.

Here is the call graph for this function:

◆ m0_reqhut_fop_fini()

static void m0_reqhut_fop_fini ( void  )
static

Definition at line 101 of file fop_allow_ut.c.

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

◆ m0_reqhut_fop_init()

static int m0_reqhut_fop_init ( void  )
static

Definition at line 86 of file fop_allow_ut.c.

Here is the caller graph for this function:

◆ send_fop()

static int send_fop ( )
static

Definition at line 116 of file fop_allow_ut.c.

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

◆ ut_ssfop_alloc()

static struct m0_fop* ut_ssfop_alloc ( const char *  name,
uint32_t  cmd 
)
static

Definition at line 130 of file fop_allow_ut.c.

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

◆ ut_sss_req()

static void ut_sss_req ( const char *  name,
uint32_t  cmd,
int  expected_rc,
int  expected_state 
)
static

Definition at line 151 of file fop_allow_ut.c.

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

Variable Documentation

◆ m0_reqhut_allow_fopt

struct m0_fop_type m0_reqhut_allow_fopt
static

Definition at line 84 of file fop_allow_ut.c.

◆ reqh_fop_allow_ut

struct m0_ut_suite reqh_fop_allow_ut
Initial value:
= {
.ts_name = "reqh-fop-allow-ut",
.ts_tests = {
{ "reqh-fop-allow", fop_allow_test },
{ NULL, NULL }
}
}
#define NULL
Definition: misc.h:38
static void fop_allow_test(void)
Definition: fop_allow_ut.c:176

Definition at line 212 of file fop_allow_ut.c.

◆ ut_fid

const struct m0_fid ut_fid
static
Initial value:
= {
.f_container = 0x7300000000000001,
.f_key = 26
}

Definition at line 44 of file fop_allow_ut.c.

◆ ut_fom_ops

const struct m0_fom_ops ut_fom_ops
static
Initial value:
= {
.fo_fini = reqhut_fom_fini,
.fo_tick = fom_tick,
.fo_home_locality = reqhut_find_fom_home_locality
}
static void reqhut_fom_fini(struct m0_fom *fom)
Definition: reqhut_fom.c:73
static int fom_tick(struct m0_fom *fom)
Definition: fop_allow_ut.c:107
static size_t reqhut_find_fom_home_locality(const struct m0_fom *fom)
Definition: reqhut_fom.c:60

Definition at line 49 of file fop_allow_ut.c.

◆ ut_fom_type_ops

const struct m0_fom_type_ops ut_fom_type_ops
static
Initial value:
= {
.fto_create = &fom_create
}
static int fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
Definition: fop_allow_ut.c:55

Definition at line 80 of file fop_allow_ut.c.

◆ ut_server_argv

char* ut_server_argv[]
static
Initial value:
= {
"rpclib_ut", "-T", "AD", "-D", SERVER_DB_NAME,
"-w", "10", "-e", SERVER_ENDPOINT, "-H", SERVER_ENDPOINT_ADDR,
"-c", M0_UT_PATH("conf.xc")
}
#define SERVER_STOB_NAME
Definition: filterc_ut.c:53
#define SERVER_DB_NAME
Definition: filterc_ut.c:52
#define SERVER_ENDPOINT
Definition: common.h:31
#define SERVER_ADDB_STOB_NAME
Definition: filterc_ut.c:54
#define M0_UT_CONF_PROCESS
Definition: misc.h:45
#define SERVER_ENDPOINT_ADDR
Definition: common.h:30
#define M0_UT_PATH(name)
Definition: misc.h:41

Definition at line 32 of file fop_allow_ut.c.

◆ ut_stypes

struct m0_reqh_service_type* ut_stypes[]
Initial value:
= {
}
struct m0_reqh_service_type ds1_service_type
Definition: cs_service.c:60

Definition at line 40 of file fop_allow_ut.c.