25 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_LAYOUT 40 #define SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" 41 #define SERVER_ENDPOINT M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR 42 #define CLIENT_ENDPOINT_ADDR "0@lo:12345:34:2" 47 "-D",
"db",
"-S",
"stob",
48 "-A",
"linuxstob:addb-stob",
80 .mc_is_oostore =
true,
81 .mc_is_read_verify =
false,
149 obj.ob_attr.oa_layout_id = M0_DEFAULT_LAYOUT_ID;
212 obj.ob_attr.oa_layout_id = M0_DEFAULT_LAYOUT_ID;
243 plrel = pldeps_tlist_head(&plop->
pl_deps);
273 plrel = pldeps_tlist_head(&plop->
pl_deps);
327 .
ts_name =
"layout-access-plan-ut",
328 .ts_owners =
"Andriy T.",
339 #undef M0_TRACE_SUBSYSTEM
#define M0_UT_CONF_PROFILE
M0_INTERNAL void m0_layout_plop_done(struct m0_layout_plop *plop)
void m0_entity_fini(struct m0_entity *entity)
M0_INTERNAL int m0_indexvec_alloc(struct m0_indexvec *ivec, uint32_t len)
#define CLIENT_ENDPOINT_ADDR
M0_INTERNAL int m0_layout_plan_get(struct m0_layout_plan *plan, uint64_t colour, struct m0_layout_plop **plop)
void m0_op_fini(struct m0_op *op)
struct m0_pool_version * pv
int m0_rpc_server_start(struct m0_rpc_server_ctx *sctx)
#define UT_DEFAULT_BLOCK_SIZE
static struct m0_rpc_server_ctx lap_ut_sctx
void m0_client_fini(struct m0_client *m0c, bool fini_m0)
M0_INTERNAL void m0_indexvec_free(struct m0_indexvec *ivec)
static void test_plan_get_done(void)
struct m0_ut_suite layout_access_plan_ut
#define container_of(ptr, type, member)
#define M0_SRC_PATH(name)
int m0_client_init(struct m0_client **m0c, struct m0_config *conf, bool init_m0)
#define SERVER_ENDPOINT_ADDR
static int lap_ut_server_start(void)
static void lap_ut_server_stop(void)
M0_INTERNAL int m0_bufvec_alloc(struct m0_bufvec *bufvec, uint32_t num_segs, m0_bcount_t seg_size)
int m0_obj_op(struct m0_obj *obj, enum m0_obj_opcode opcode, struct m0_indexvec *ext, struct m0_bufvec *data, struct m0_bufvec *attr, uint64_t mask, uint32_t flags, struct m0_op **op)
static struct m0_idx_dix_config dix_conf
M0_INTERNAL void m0_bufvec_free(struct m0_bufvec *bufvec)
struct m0_pools_common m0c_pools_common
M0_INTERNAL void ut_realm_entity_setup(struct m0_realm *realm, struct m0_entity *ent, struct m0_client *cinst)
static int lap_ut_client_start(void)
struct m0_bufvec iop_data
M0_INTERNAL int m0_pool_version_get(struct m0_pools_common *pc, const struct m0_fid *pool, struct m0_pool_version **pv)
static void attr(struct m0_addb2__context *ctx, const uint64_t *v, char *buf)
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)
static struct m0_client * client_inst
enum m0_layout_plop_type pl_type
static void lap_ut_client_stop(void)
M0_INTERNAL int m0_layout_plop_start(struct m0_layout_plop *plop)
struct m0_net_xprt ** rsx_xprts
static const char SERVER_LOGFILE[]
struct m0_layout_plop * plr_rdep
static int lap_ut_init(void)
struct m0_layout_plop iop_base
struct m0_rpc_session * iop_session
M0_INTERNAL m0_bcount_t m0_vec_count(const struct m0_vec *vec)
struct m0_indexvec iop_ext
static struct m0_client cinst
M0_INTERNAL void m0_layout_plan_fini(struct m0_layout_plan *plan)
static void test_plan_build_fini(void)
static struct m0_realm realm
#define M0_UT_CONF_PROCESS
struct m0_net_xprt ** m0_net_all_xprt_get(void)
M0_INTERNAL struct m0_layout_plan * m0_layout_plan_build(struct m0_op *op)
static void m0_fi_enable_once(const char *func, const char *tag)
static char * lap_ut_server_args[]
#define M0_ASSERT_INFO(cond, fmt,...)
void m0_rpc_server_stop(struct m0_rpc_server_ctx *sctx)
void m0_op_free(struct m0_op *op)
struct m0_layout_plop * plr_dep
static int lap_ut_fini(void)