23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_SNSCM void cs_fini(struct m0_motr *sctx)
static int dummy_fom_tick(struct m0_fom *fom)
struct m0_be_domain * bs_domain
static void dummy_cp_complete(struct m0_cm_cp *cp)
M0_INTERNAL void m0_fid_gob_make(struct m0_fid *gob_fid, uint32_t container, uint64_t key)
struct m0_net_buffer_pool * nb_pool
struct m0_reqh * m0_cs_reqh_get(struct m0_motr *cctx)
int cs_init_with_ad_stob(struct m0_motr *sctx)
static struct m0_semaphore sem
static struct m0_sns_cm_ag w_sag
static int dummy_cp_write(struct m0_cm_cp *cp)
struct m0_stob_id sc_stob_id
struct m0_bufvec nb_buffer
static struct m0_fom_ops dummy_cp_fom_ops
M0_INTERNAL struct m0_sns_cm * cm2sns(struct m0_cm *cm)
struct m0_pool_version * pm_pver
M0_INTERNAL struct m0_pool_version * m0_pool_version_find(struct m0_pools_common *pc, const struct m0_fid *id)
struct m0_pool_version * pv
struct m0_poolmach pv_mach
static int cp_prepare(struct m0_cm_cp *cp, struct m0_indexvec *dst_ivec, struct m0_bufvec *dst_bvec, m0_bindex_t start_idx, uint32_t bshift)
static void read_post(struct m0_pdclust_layout *pdlay)
static int dummy_cp_write_io_wait(struct m0_cm_cp *cp)
struct m0_layout * sf_layout
#define container_of(ptr, type, member)
struct m0_poolmach * sf_pm
static struct m0_sns_cm * scm
M0_INTERNAL int m0_sns_cm_cp_write_pre(struct m0_cm_cp *cp)
void write_post(struct m0_pdclust_layout *pdlay)
static struct m0_net_buffer r_buf
static struct m0_fid gob_fid
enum m0_cm_cp_io_op c_io_op
static int dummy_cp_fini(struct m0_cm_cp *cp)
#define M0_FID_TINIT(type, container, key)
const struct m0_cm_cp_ops read_cp_dummy_ops
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
static void m0_fi_enable(const char *func, const char *tag)
M0_INTERNAL int m0_sns_cm_cp_write(struct m0_cm_cp *cp)
static struct m0_fid cob_fid
static uint64_t dummy_fom_locality(const struct m0_fom *fom)
void bv_compare(struct m0_bufvec *b1, struct m0_bufvec *b2, uint32_t seg_nr, uint32_t seg_size)
M0_INTERNAL int m0_sns_cm_cp_io_wait(struct m0_cm_cp *cp)
static int dummy_cp_phase(struct m0_cm_cp *cp)
M0_INTERNAL int m0_sns_cm_cp_phase_next(struct m0_cm_cp *cp)
M0_INTERNAL void m0_fid_convert_cob2stob(const struct m0_fid *cob_fid, struct m0_stob_id *stob_id)
const struct m0_cm_cp_ops write_cp_dummy_ops
M0_INTERNAL void m0_cm_cp_fini(struct m0_cm_cp *cp)
M0_INTERNAL void cob_delete(struct m0_cob_domain *cdom, struct m0_be_domain *bedom, uint64_t cont, const struct m0_fid *gfid)
const struct m0_cm_cp_ops * c_ops
static struct m0_net_buffer_pool nbp
M0_INTERNAL bool m0_sns_cm_cp_invariant(const struct m0_cm_cp *cp)
int(* co_action[])(struct m0_cm_cp *cp)
M0_INTERNAL int m0_semaphore_init(struct m0_semaphore *semaphore, unsigned value)
static struct m0_rpc_server_ctx sctx
static int dummy_cp_read(struct m0_cm_cp *cp)
struct m0_cob_domain * sc_cob_dom
void layout_destroy(struct m0_pdclust_layout *pdlay)
M0_INTERNAL void m0_reqh_idle_wait(struct m0_reqh *reqh)
M0_INTERNAL struct m0_layout * m0_pdl_to_layout(struct m0_pdclust_layout *pl)
static struct m0_net_buffer w_buf
struct m0_ut_suite snscm_storage_ut
struct m0_sns_cm_file_ctx * sag_fctx
M0_INTERNAL int m0_sns_cm_cp_read(struct m0_cm_cp *cp)
M0_INTERNAL const struct m0_fid M0_MDSERVICE_START_FID
static struct m0_sns_cm_ag r_sag
struct m0_reqh_service cm_service
static struct m0_reqh * reqh
M0_INTERNAL int m0_sns_cm_cp_fail(struct m0_cm_cp *cp)
int(* co_phase_next)(struct m0_cm_cp *cp)
void bv_free(struct m0_bufvec *b)
struct m0_be_seg * rh_beseg
M0_INTERNAL void m0_fom_queue(struct m0_fom *fom)
static void dummy_fom_fini(struct m0_fom *fom)
void(* fo_fini)(struct m0_fom *fom)
struct m0_cob_attr sf_attr
static struct m0_sns_cm_file_ctx fctx
static const struct m0_fid M0_SNS_CM_REPAIR_UT_PVER
M0_INTERNAL void m0_semaphore_down(struct m0_semaphore *semaphore)
M0_INTERNAL void m0_fid_convert_gob2cob(const struct m0_fid *gob_fid, struct m0_fid *cob_fid, uint32_t device_id)
static struct m0_sns_cm_cp r_sns_cp
struct m0_cm_aggr_group sag_base
M0_INTERNAL void m0_semaphore_up(struct m0_semaphore *semaphore)
struct m0_pools_common cc_pools_common
static int dummy_cp_read_io_wait(struct m0_cm_cp *cp)
void layout_gen(struct m0_pdclust_layout **pdlay, struct m0_reqh *reqh)
static struct m0_sns_cm_cp w_sns_cp
M0_INTERNAL struct m0_motr * m0_cs_ctx_get(struct m0_reqh *reqh)
static int dummy_cp_init(struct m0_cm_cp *cp)
static void test_cp_write_read(void)