Motr
M0
|
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/time.h>
#include "conf/obj.h"
#include "fid/fid.h"
#include "motr/client.h"
#include "motr/idx.h"
Go to the source code of this file.
Data Structures | |
struct | m0_cc_io_args |
struct | m0_utility_param |
struct | m0_copy_mt_args |
struct | m0_obj_lock_ops |
Macros | |
#define | __MOTR_ST_UTILS_HELPER_H__ |
Enumerations | |
enum | { M0_MAX_BLOCK_COUNT = 100 } |
enum | { BLK_SIZE_4k = 4096, BLK_SIZE_32m = 32 * 1024 * 1024 } |
enum | { WIDTH = 32 } |
Functions | |
int | client_init (struct m0_config *config, struct m0_container *container, struct m0_client **m0_instance) |
void | client_fini (struct m0_client *m0_instance) |
int | touch (struct m0_container *container, struct m0_uint128 id, bool take_locks) |
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 | 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 | 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) |
int | m0_unlink (struct m0_container *container, struct m0_uint128 id, bool take_locks) |
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 | m0_read_cc (struct m0_container *container, struct m0_uint128 id, char **dest, int *index, uint32_t block_size, uint32_t block_count) |
int | m0_obj_id_sscanf (char *idstr, struct m0_uint128 *obj_id) |
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 *)) |
anonymous enum |
anonymous enum |
void client_fini | ( | struct m0_client * | m0_instance | ) |
int client_init | ( | struct m0_config * | config, |
struct m0_container * | container, | ||
struct m0_client ** | m0_instance | ||
) |
int m0_obj_id_sscanf | ( | char * | idstr, |
struct m0_uint128 * | obj_id | ||
) |
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 m0_read_cc | ( | struct m0_container * | container, |
struct m0_uint128 | id, | ||
char ** | dest, | ||
int * | index, | ||
uint32_t | block_size, | ||
uint32_t | block_count | ||
) |
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 | ||
) |
int m0_unlink | ( | struct m0_container * | container, |
struct m0_uint128 | id, | ||
bool | take_locks | ||
) |
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(*)(FILE *, char *) | utility_usage | ||
) |
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 m0_write_cc | ( | struct m0_container * | container, |
char ** | src, | ||
struct m0_uint128 | id, | ||
int * | index, | ||
uint32_t | block_size, | ||
uint32_t | block_count | ||
) |
int touch | ( | struct m0_container * | container, |
struct m0_uint128 | id, | ||
bool | take_locks | ||
) |