Go to the source code of this file.
|
void | bv_populate (struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size) |
|
void | bv_alloc_populate (struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size) |
|
void | bv_compare (struct m0_bufvec *b1, struct m0_bufvec *b2, uint32_t seg_nr, uint32_t seg_size) |
|
void | bv_free (struct m0_bufvec *b) |
|
void | cp_prepare (struct m0_cm_cp *cp, struct m0_net_buffer *buf, uint32_t bv_seg_nr, uint32_t bv_seg_size, struct m0_sns_cm_ag *sns_ag, char data, struct m0_fom_ops *cp_fom_ops, struct m0_reqh *reqh, uint64_t cp_ag_idx, bool is_acc_cp, struct m0_cm *cm) |
|
struct m0_sns_cm * | reqh2snscm (struct m0_reqh *reqh) |
|
static int | cs_init_setup_env (struct m0_motr *sctx, int stob_type) |
|
int | cs_init (struct m0_motr *sctx) |
|
int | cs_init_with_ad_stob (struct m0_motr *sctx) |
|
void | cs_fini (struct m0_motr *sctx) |
|
void | layout_gen (struct m0_pdclust_layout **pdlay, struct m0_reqh *reqh) |
|
void | layout_destroy (struct m0_pdclust_layout *pdlay) |
|
void | pool_mach_transit (struct m0_reqh *reqh, struct m0_poolmach *pm, uint64_t fd, enum m0_pool_nd_state state) |
|
◆ anonymous enum
Enumerator |
---|
PDCLUST_N | |
PDCLUST_K | |
PDCLUST_S | |
PDCLUST_P | |
PDCLUST_UNIT_SIZE | |
Definition at line 60 of file cp_common.c.
◆ anonymous enum
Enumerator |
---|
LINUX_STOB | |
AD_STOB | |
Definition at line 67 of file cp_common.c.
◆ bv_alloc_populate()
void bv_alloc_populate |
( |
struct m0_bufvec * |
b, |
|
|
char |
data, |
|
|
uint32_t |
seg_nr, |
|
|
uint32_t |
seg_size |
|
) |
| |
◆ bv_compare()
void bv_compare |
( |
struct m0_bufvec * |
b1, |
|
|
struct m0_bufvec * |
b2, |
|
|
uint32_t |
seg_nr, |
|
|
uint32_t |
seg_size |
|
) |
| |
◆ bv_free()
◆ bv_populate()
void bv_populate |
( |
struct m0_bufvec * |
b, |
|
|
char |
data, |
|
|
uint32_t |
seg_nr, |
|
|
uint32_t |
seg_size |
|
) |
| |
◆ cp_prepare()
void cp_prepare |
( |
struct m0_cm_cp * |
cp, |
|
|
struct m0_net_buffer * |
buf, |
|
|
uint32_t |
bv_seg_nr, |
|
|
uint32_t |
bv_seg_size, |
|
|
struct m0_sns_cm_ag * |
sns_ag, |
|
|
char |
data, |
|
|
struct m0_fom_ops * |
cp_fom_ops, |
|
|
struct m0_reqh * |
reqh, |
|
|
uint64_t |
cp_ag_idx, |
|
|
bool |
is_acc_cp, |
|
|
struct m0_cm * |
cm |
|
) |
| |
◆ cs_fini()
void cs_fini |
( |
struct m0_motr * |
sctx | ) |
|
◆ cs_init()
int cs_init |
( |
struct m0_motr * |
sctx | ) |
|
◆ cs_init_setup_env()
static int cs_init_setup_env |
( |
struct m0_motr * |
sctx, |
|
|
int |
stob_type |
|
) |
| |
|
static |
◆ cs_init_with_ad_stob()
int cs_init_with_ad_stob |
( |
struct m0_motr * |
sctx | ) |
|
◆ layout_destroy()
◆ layout_gen()
◆ pool_mach_transit()
◆ reqh2snscm()
◆ lfile
◆ log_file_name
const char log_file_name[] = "sr_ut.errlog" |
◆ sctx
◆ sns_cm_ut_svc_ad
Initial value:= {
"m0d", "-T", "AD",
"-D", "sr_db", "-S", "sr_stob",
"-A", "linuxstob:sr_addb_stob",
"-w", "10",
"-H", "0@lo:12345:34:1",
}
#define M0_NET_XPRT_PREFIX_DEFAULT
#define M0_UT_CONF_PROCESS
Definition at line 34 of file cp_common.c.
◆ sns_cm_ut_svc_linux
char* sns_cm_ut_svc_linux[] |
Initial value:= {
"m0d", "-T", "LINUX",
"-D", "sr_db", "-S", "sr_stob",
"-A", "linuxstob:sr_addb_stob",
"-w", "10",
"-H", "0@lo:12345:34:1",
}
#define M0_NET_XPRT_PREFIX_DEFAULT
#define M0_UT_CONF_PROCESS
Definition at line 46 of file cp_common.c.