28 #include "fop/ut/iterator_test_xc.h" 44 m0_xc_fop_ut_iterator_test_fini();
49 m0_xc_fop_ut_iterator_test_init();
59 .
name =
"FOP Iterator Test",
61 .
xt = m0_fop_iterator_test_xc);
72 fop->fit_vec.fv_count = 2;
75 for (
i = 0;
i <
fop->fit_vec.fv_count; ++
i) {
76 fop->fit_vec.fv_seg[
i].fs_count =
i;
77 fop->fit_vec.fv_seg[
i].fs_offset =
i*2;
85 fop->fit_rec.fr_seq.fr_seq.fv_count = 3;
87 fop->fit_rec.fr_seq.fr_seq.fv_count);
89 for (
i = 0;
i <
fop->fit_rec.fr_seq.fr_seq.fv_count; ++
i) {
90 fop->fit_rec.fr_seq.fr_seq.fv_seg[
i].fs_count =
i;
91 fop->fit_rec.fr_seq.fr_seq.fv_seg[
i].fs_offset =
i*2;
131 struct m0_xcode_cursor_frame *
top;
141 if (
xt == m0_fid_xc) {
M0_INTERNAL struct m0_xcode_cursor_frame * m0_xcode_cursor_top(struct m0_xcode_cursor *it)
#define M0_ALLOC_ARR(arr, nr)
static struct buffer * cur(struct m0_addb2_mach *mach, m0_bcount_t space)
#define M0_FOP_TYPE_INIT(ft,...)
struct m0_ut_suite fit_ut
void * m0_fop_data(const struct m0_fop *fop)
static struct m0_be_emap_cursor it
void m0_fop_type_fini(struct m0_fop_type *fopt)
static struct m0_xcode_type ** xt[]
M0_INTERNAL void m0_sm_group_fini(struct m0_sm_group *grp)
static void fit_test(void)
struct m0_sm_group rm_sm_grp
M0_INTERNAL void m0_fid_set(struct m0_fid *fid, uint64_t container, uint64_t key)
M0_INTERNAL void m0_sm_group_init(struct m0_sm_group *grp)
static void fop_fini(void)
M0_INTERNAL int m0_xcode_next(struct m0_xcode_cursor *it)
struct m0_rpc_machine machine
static int fop_init(void)
static struct m0_fop_type m0_fop_iterator_test_fopt
void m0_fop_put_lock(struct m0_fop *fop)
static struct m0_fop * fop
static void fop_obj_init(struct m0_fop_iterator_test *fop)
M0_INTERNAL void m0_xcode_ctx_init(struct m0_xcode_ctx *ctx, const struct m0_xcode_obj *obj)
#define M0_FOP_XCODE_OBJ(f)
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)