36 "-D",
"sr_db",
"-S",
"sr_stob",
37 "-A",
"linuxstob:sr_addb_stob",
42 "-H",
"0@lo:12345:34:1",
48 "-D",
"sr_db",
"-S",
"sr_stob",
49 "-A",
"linuxstob:sr_addb_stob",
54 "-H",
"0@lo:12345:34:1",
121 uint32_t bv_seg_nr, uint32_t bv_seg_size,
124 struct m0_reqh *
reqh, uint64_t cp_ag_idx,
bool is_acc_cp,
134 if (
buf->nb_buffer.ov_buf ==
NULL)
154 buf->nb_pool->nbp_seg_nr = bv_seg_nr;
155 buf->nb_pool->nbp_seg_size = bv_seg_size;
static m0_bcount_t seg_size
void cs_fini(struct m0_motr *sctx)
M0_INTERNAL int m0_poolmach_state_transit(struct m0_poolmach *pm, const struct m0_poolmach_event *event)
int cs_init_with_ad_stob(struct m0_motr *sctx)
char * sns_cm_ut_svc_ad[]
M0_INTERNAL struct m0_sns_cm * cm2sns(struct m0_cm *cm)
int m0_cs_setup_env(struct m0_motr *cctx, int argc, char **argv)
M0_INTERNAL void m0_uint128_init(struct m0_uint128 *u128, const char *magic)
const char log_file_name[]
void m0_cs_fini(struct m0_motr *cctx)
M0_INTERNAL void m0_ios_cdom_get(struct m0_reqh *reqh, struct m0_cob_domain **out)
M0_INTERNAL int m0_linear_enum_build(struct m0_layout_domain *dom, const struct m0_layout_linear_attr *attr, struct m0_layout_linear_enum **out)
static struct m0_sns_cm * scm
M0_INTERNAL void m0_cm_cp_fom_init(struct m0_cm *cm, struct m0_cm_cp *cp, struct m0_fop *fop, struct m0_fop *r_fop)
#define container_of(ptr, type, member)
static int cs_init_setup_env(struct m0_motr *sctx, int stob_type)
int m0_bufvec_alloc_aligned(struct m0_bufvec *bufvec, uint32_t num_segs, m0_bcount_t seg_size, unsigned shift)
M0_INTERNAL void m0_bufvec_free(struct m0_bufvec *bufvec)
const struct m0_cm_cp_ops m0_sns_cm_repair_cp_ops
struct m0_layout_enum lle_base
#define M0_NET_XPRT_PREFIX_DEFAULT
struct m0_striped_layout pl_base
void bv_compare(struct m0_bufvec *b1, struct m0_bufvec *b2, uint32_t seg_nr, uint32_t seg_size)
const struct m0_cm_cp_ops * c_ops
M0_INTERNAL void m0_cm_cp_buf_add(struct m0_cm_cp *cp, struct m0_net_buffer *nb)
M0_EXTERN struct m0_cm_type sns_repair_cmt
const struct m0_cm_cp_ops m0_sns_cm_acc_cp_ops
char * sns_cm_ut_svc_linux[]
struct m0_layout_domain rh_ldom
struct m0_cm_aggr_group * c_ag
const struct m0_fom_ops * fo_ops
struct m0_cob_domain * sc_cob_dom
void bv_alloc_populate(struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size)
void layout_destroy(struct m0_pdclust_layout *pdlay)
struct m0_uint128 pa_seed
int m0_cs_init(struct m0_motr *cctx, struct m0_net_xprt **xprts, size_t xprts_nr, FILE *out, bool mkfs)
M0_INTERNAL struct m0_reqh_service * m0_reqh_service_find(const struct m0_reqh_service_type *st, const struct m0_reqh *reqh)
struct m0_sns_cm * reqh2snscm(struct m0_reqh *reqh)
static const struct m0_fom_ops cp_fom_ops
#define M0_UT_CONF_PROCESS
int cs_init(struct m0_motr *sctx)
struct m0_net_xprt ** m0_net_all_xprt_get(void)
struct m0_reqh_service cm_service
void bv_populate(struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size)
static struct m0_layout_linear_attr llattr
M0_INTERNAL int m0_pdclust_build(struct m0_layout_domain *dom, uint64_t lid, const struct m0_pdclust_attr *attr, struct m0_layout_enum *le, struct m0_pdclust_layout **out)
void bv_free(struct m0_bufvec *b)
struct m0_reqh_service_type ct_stype
struct m0t1fs_filedata * fd
int m0_cs_start(struct m0_motr *cctx)
M0_INTERNAL void m0_layout_put(struct m0_layout *l)
struct m0_cm_aggr_group sag_base
enum m0_pool_nd_state pe_state
void layout_gen(struct m0_pdclust_layout **pdlay, struct m0_reqh *reqh)
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)
static struct m0_pdclust_attr pdattr
static struct m0_reqh_service * service[REQH_IN_UT_MAX]
void pool_mach_transit(struct m0_reqh *reqh, struct m0_poolmach *pm, uint64_t fd, enum m0_pool_nd_state state)
static struct m0_layout_linear_enum * llenum