28 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CLIENT 87 for (
i = 0;
i < obj_cnt; ++
i) {
88 cur_obj = start_obj +
i;
91 for (
i = 0;
i < obj_cnt; ++
i) {
92 cur_obj = start_obj +
i;
106 enum {OBJECT_NR = 20};
130 for (
i = 0;
i < OBJECT_NR; ++
i)
140 for (
i = 0;
i < blk_cnt;
i++)
150 for (
i = 0;
i < blk_cnt;
i++) {
153 last_index += blk_size;
155 attr.ov_vec.v_count[
i] = 0;
157 for (
i = 0;
i < OBJECT_NR; ++
i) {
173 obj_cnt = OBJECT_NR / 2;
176 for (
i = 0;
i < obj_cnt; ++
i) {
189 obj_cnt = OBJECT_NR / 4;
190 start_obj = OBJECT_NR / 2;
191 for (
i = 0;
i < obj_cnt; ++
i) {
192 cur_obj = start_obj +
i;
207 start_obj = OBJECT_NR - OBJECT_NR / 4;
208 for (
i = 0;
i < obj_cnt; ++
i) {
209 cur_obj = start_obj +
i;
220 for (
i = 0;
i < OBJECT_NR; ++
i) {
270 {
"cancel_while_write",
276 #undef M0_TRACE_SUBSYSTEM
int st_entity_create(struct m0_fid *pool, struct m0_entity *entity, struct m0_op **op)
static void op_cancel(struct m0_op **ops, int obj_cnt, int start_obj)
void st_op_free(struct m0_op *op)
static int st_cancel_suite_fini(void)
M0_INTERNAL int m0_indexvec_alloc(struct m0_indexvec *ivec, uint32_t len)
static uint64_t layout_id
const m0_time_t M0_TIME_NEVER
uint64_t m0_client_layout_id(const struct m0_client *instance)
M0_INTERNAL void m0_indexvec_free(struct m0_indexvec *ivec)
const struct m0_uint128 M0_UBER_REALM
#define ST_ASSERT_FATAL(a)
static void create_obj(struct m0_uint128 *oid)
M0_INTERNAL int m0_bufvec_alloc(struct m0_bufvec *bufvec, uint32_t num_segs, m0_bcount_t seg_size)
M0_INTERNAL void m0_bufvec_free(struct m0_bufvec *bufvec)
static void attr(struct m0_addb2__context *ctx, const uint64_t *v, char *buf)
void st_container_init(struct m0_container *con, struct m0_realm *parent, const struct m0_uint128 *id, struct m0_client *instance)
struct m0_entity re_entity
static int st_cancel_suite_init(void)
int oid_get(struct m0_uint128 *oid)
struct m0_addb_ctx m0_addb_ctx
struct st_suite st_suite_cancel
struct m0_container st_cancel_container
void console_printf(const char *fmt,...)
static void mem_free(const struct m0_be_btree *btree, struct m0_be_tx *tx, void *ptr)
void m0_op_cancel(struct m0_op **op, uint32_t nr)
struct m0_addb2__id_intrp ids[]
void st_obj_init(struct m0_obj *obj, struct m0_realm *parent, const struct m0_uint128 *id, uint64_t layout_id)
void st_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)
#define MEM_ALLOC_ARR(arr, nr)
static void m0_write_cancel(void)
m0_time_t m0_time_from_now(uint64_t secs, long ns)
struct m0_client * st_get_instance()
void st_op_launch(struct m0_op **op, uint32_t nr)
void st_entity_fini(struct m0_entity *entity)
void st_entity_open(struct m0_entity *entity)
int32_t st_op_wait(struct m0_op *op, uint64_t bits, m0_time_t to)
void st_op_fini(struct m0_op *op)
static const uint32_t UNIT_SIZE