24 #ifndef __MOTR_ST_UTILS_HELPER_H__ 25 #define __MOTR_ST_UTILS_HELPER_H__ 120 uint32_t block_count, uint64_t update_offset,
int blks_per_io,
121 bool take_locks,
bool update_mode);
125 uint32_t block_count, uint64_t
offset,
int blks_per_io,
126 bool take_locks, uint32_t
flags,
struct m0_fid *read_pver);
130 uint32_t trunc_count, uint32_t trunc_len,
int blks_per_io,
137 uint32_t block_size, uint32_t block_count);
141 uint32_t block_size, uint32_t block_count);
150 void (*utility_usage) (FILE*,
char*));
int m0_write(struct m0_container *container, char *src, struct m0_uint128 id, uint32_t block_size, uint32_t block_count, uint64_t update_offset, int blks_per_io, bool take_locks, bool update_mode)
int const char const void size_t int flags
int m0_obj_id_sscanf(char *idstr, struct m0_uint128 *obj_id)
static struct io_request req
struct m0_container container
void(* olo_lock_fini)(struct m0_obj *obj)
void(* olo_lock_put)(struct m0_rm_lock_req *req)
struct m0_container * cia_container
int m0_read_cc(struct m0_container *container, struct m0_uint128 id, char **dest, int *index, uint32_t block_size, uint32_t block_count)
int touch(struct m0_container *container, struct m0_uint128 id, bool take_locks)
struct m0_utility_param * cma_utility
int(* olo_write_lock_get)(struct m0_obj *obj, struct m0_rm_lock_req *req, struct m0_clink *clink)
int(* olo_read_lock_get_sync)(struct m0_obj *obj, struct m0_rm_lock_req *req)
int m0_write_cc(struct m0_container *container, char **src, struct m0_uint128 id, int *index, uint32_t block_size, uint32_t block_count)
int(* olo_read_lock_get)(struct m0_obj *obj, struct m0_rm_lock_req *req, struct m0_clink *clink)
struct m0_mutex cma_mutex
struct m0_uint128 * cma_ids
int m0_truncate(struct m0_container *container, struct m0_uint128 id, uint32_t block_size, uint32_t trunc_count, uint32_t trunc_len, int blks_per_io, bool take_locks)
static struct m0_idx_dix_config dix_conf
int m0_utility_args_init(int argc, char **argv, struct m0_utility_param *params, struct m0_idx_dix_config *dix_conf, struct m0_config *conf, void(*utility_usage)(FILE *, char *))
static m0_bindex_t offset
static struct m0_clink clink[RDWR_REQUEST_MAX]
int(* olo_lock_init)(struct m0_obj *obj)
int m0_read(struct m0_container *container, struct m0_uint128 id, char *dest, uint32_t block_size, uint32_t block_count, uint64_t offset, int blks_per_io, bool take_locks, uint32_t flags, struct m0_fid *read_pver)
int client_init(struct m0_config *config, struct m0_container *container, struct m0_client **m0_instance)
int(* olo_write_lock_get_sync)(struct m0_obj *obj, struct m0_rm_lock_req *req)
void client_fini(struct m0_client *m0_instance)
struct m0_pdclust_src_addr src
int m0_unlink(struct m0_container *container, struct m0_uint128 id, bool take_locks)