23 #include <sys/types.h> 88 (*m)->fo_local =
true;
118 rc = read(
fd, &testroot,
sizeof(testroot));
221 if (result <
sizeof(
size))
225 result = read(
fd, rec,
size);
230 }
while (result == -EAGAIN);
231 if (result == -EOPNOTSUPP)
M0_INTERNAL void m0_mdstore_fini(struct m0_mdstore *md)
M0_INTERNAL int m0_reqh_service_start(struct m0_reqh_service *service)
struct m0_cob_domain * md_dom
static struct m0_semaphore inflight
M0_INTERNAL int m0_cob_domain_mkfs(struct m0_cob_domain *dom, const struct m0_fid *rootfid, struct m0_be_tx *tx)
M0_INTERNAL void m0_reqh_service_stop(struct m0_reqh_service *service)
static void fom_fini(struct m0_fom *fom)
static struct m0_be_seg * be_seg
static struct m0_addb2_mach * m
struct m0_fop_type m0_fop_fsync_rep_fopt
M0_INTERNAL int m0_mdstore_init(struct m0_mdstore *md, struct m0_be_seg *db, bool init_root)
#define M0_REQH_INIT(reqh,...)
M0_INTERNAL int m0_reqh_fop_handle(struct m0_reqh *reqh, struct m0_fop *fop)
M0_INTERNAL void m0_reqh_service_prepare_to_stop(struct m0_reqh_service *service)
static void test_mkfs(void)
static const struct m0_fom_ops fsync_fom_ops
int(* fto_create)(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
M0_INTERNAL struct m0_be_seg * m0_be_domain_seg0_get(struct m0_be_domain *dom)
M0_INTERNAL void m0_ut_be_tx_end(struct m0_be_tx *tx)
static struct m0_cob_domain_id id
void * m0_fop_data(const struct m0_fop *fop)
struct m0_reqh_service_type m0_mds_type
static struct m0_addb2_mach * mach
M0_INTERNAL void m0_reqh_fini(struct m0_reqh *reqh)
struct m0_fop_type m0_fop_fsync_mds_fopt
struct m0_fop_getxattr_rep * rep
M0_INTERNAL void m0_sm_group_fini(struct m0_sm_group *grp)
struct m0_fom_type ft_fom_type
static void test_init(void)
struct m0_sm_group rm_sm_grp
M0_INTERNAL void m0_reqh_shutdown_wait(struct m0_reqh *reqh)
M0_INTERNAL int m0_fsync_req_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
M0_INTERNAL void m0_cob_tx_credit(struct m0_cob_domain *dom, enum m0_cob_op optype, struct m0_be_tx_credit *accum)
static struct m0_reqh_service * mdservice
struct m0_reqh * bec_reqh
M0_INTERNAL void m0_sm_group_unlock(struct m0_sm_group *grp)
static void(* orig_fom_fini)(struct m0_fom *fom)
struct m0_fop_type * f_type
void(* m0_md_req_fom_fini_func)(struct m0_fom *fom)
struct m0_ut_suite mdservice_ut
M0_INTERNAL void m0_fid_set(struct m0_fid *fid, uint64_t container, uint64_t key)
struct m0_conf_root * root
struct m0_fom_type_ops m0_md_fom_ops
static void ut_fsync_create_fom(void)
M0_INTERNAL void m0_ut_be_tx_begin(struct m0_be_tx *tx, struct m0_be_ut_backend *ut_be, struct m0_be_tx_credit *cred)
static int(* orig_fom_create)(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
M0_INTERNAL void m0_sm_group_init(struct m0_sm_group *grp)
M0_INTERNAL void m0_reqh_service_fini(struct m0_reqh_service *service)
void m0_be_ut_backend_init(struct m0_be_ut_backend *ut_be)
#define M0_MDSTORE_OPS_DUMP_PATH
void * m0_alloc(size_t size)
static struct m0_sm_group * grp
static void test_fini(void)
M0_INTERNAL int m0_reqh_service_allocate(struct m0_reqh_service **out, const struct m0_reqh_service_type *stype, struct m0_reqh_context *rctx)
struct m0_sm_group * m0_be_ut_backend_sm_group_lookup(struct m0_be_ut_backend *ut_be)
M0_INTERNAL void m0_reqh_post_storage_fini_svcs_stop(struct m0_reqh *reqh)
M0_INTERNAL void m0_reqh_service_init(struct m0_reqh_service *service, struct m0_reqh *reqh, const struct m0_fid *fid)
struct m0_rpc_machine machine
struct m0_be_domain but_dom
static size_t fsync_fom_locality_get(const struct m0_fom *fom)
M0_INTERNAL int m0_reqh_state_get(struct m0_reqh *reqh)
struct m0_be_domain_cfg but_dom_cfg
static int fom_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
M0_INTERNAL void m0_reqh_start(struct m0_reqh *reqh)
static struct m0_mdstore md
M0_INTERNAL struct m0_reqh_service * m0_reqh_service_find(const struct m0_reqh_service_type *st, const struct m0_reqh *reqh)
M0_INTERNAL int m0_mdstore_create(struct m0_mdstore *md, struct m0_sm_group *grp, struct m0_cob_domain_id *id, struct m0_be_domain *bedom, struct m0_be_seg *db)
struct m0_be_tx_remid ff_be_remid
M0_INTERNAL int m0_fom_rc(const struct m0_fom *fom)
void m0_fop_put_lock(struct m0_fop *fop)
M0_INTERNAL void m0_reqh_pre_storage_fini_svcs_stop(struct m0_reqh *reqh)
static struct m0_fop * fop
void m0_be_ut_backend_fini(struct m0_be_ut_backend *ut_be)
static struct m0_be_ut_backend ut_be
M0_INTERNAL void m0_reqh_idle_wait_for(struct m0_reqh *reqh, struct m0_reqh_service *service)
M0_INTERNAL void m0_sm_group_lock(struct m0_sm_group *grp)
static void test_mdops(void)
struct m0t1fs_filedata * fd
M0_INTERNAL int m0_mdstore_destroy(struct m0_mdstore *md, struct m0_sm_group *grp, struct m0_be_domain *bedom)
M0_INTERNAL void m0_semaphore_down(struct m0_semaphore *semaphore)
int m0_md_lustre_fop_alloc(struct m0_fop **fop, void *data, struct m0_rpc_machine *mach)
M0_INTERNAL void m0_semaphore_up(struct m0_semaphore *semaphore)
const struct m0_reqh_service_type * ft_rstype
struct m0_be_engine_cfg bc_engine
static struct m0_reqh reqh
struct m0_fid g_process_fid
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)