25 #ifndef __MOTR_SNS_CM_UT_CP_COMMON_H__ 26 #define __MOTR_SNS_CM_UT_CP_COMMON_H__ 47 uint32_t bv_seg_nr, uint32_t bv_seg_size,
50 uint64_t cp_ag_idx,
bool is_acc_cp,
struct m0_cm *
scm);
static m0_bcount_t seg_size
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 *scm)
int cs_init(struct m0_motr *sctx)
void cs_fini(struct m0_motr *sctx)
static struct m0_sns_cm * scm
int cs_init_with_ad_stob(struct m0_motr *sctx)
void layout_gen(struct m0_pdclust_layout **pdlay, struct m0_reqh *reqh)
void bv_populate(struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size)
void bv_free(struct m0_bufvec *b)
void layout_destroy(struct m0_pdclust_layout *pdlay)
void bv_alloc_populate(struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size)
static const struct m0_fom_ops cp_fom_ops
struct m0t1fs_filedata * fd
void pool_mach_transit(struct m0_reqh *reqh, struct m0_poolmach *pm, uint64_t fd, enum m0_pool_nd_state state)
struct m0_sns_cm * reqh2snscm(struct m0_reqh *reqh)
void bv_compare(struct m0_bufvec *b1, struct m0_bufvec *b2, uint32_t seg_nr, uint32_t seg_size)