#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/time.h>
#include <getopt.h>
#include <libgen.h>
#include "lib/string.h"
#include "conf/obj.h"
#include "fid/fid.h"
#include "lib/memory.h"
#include "lib/trace.h"
#include "motr/client.h"
#include "motr/idx.h"
#include "motr/st/utils/helper.h"
#include "motr/client_internal.h"
#include "lib/getopts.h"
Go to the source code of this file.
|
#define | GET_ARG(arg, cmd, saveptr) |
|
#define | GET_COMMON_ARG(arg, fname, saveptr, id, block_size, block_count, blocks_per_io) |
|
◆ GET_ARG
#define GET_ARG |
( |
|
arg, |
|
|
|
cmd, |
|
|
|
saveptr |
|
) |
| |
Value:arg = strtok_r(cmd, "\n ", saveptr); \
help(); \
continue; \
}
Definition at line 66 of file client.c.
◆ GET_COMMON_ARG
#define GET_COMMON_ARG |
( |
|
arg, |
|
|
|
fname, |
|
|
|
saveptr, |
|
|
|
id, |
|
|
|
block_size, |
|
|
|
block_count, |
|
|
|
blocks_per_io |
|
) |
| |
Value: m0_obj_id_sscanf(arg, &id); \
GET_ARG(arg,
NULL, &saveptr); \
fname = strdup(arg); \
GET_ARG(arg,
NULL, &saveptr); \
block_size = atoi(arg); \
GET_ARG(arg,
NULL, &saveptr); \
block_count = atoi(arg); \
GET_ARG(arg,
NULL, &saveptr); \
blocks_per_io = atoi(arg);
#define GET_ARG(arg, cmd, saveptr)
Definition at line 73 of file client.c.
◆ anonymous enum
◆ c0client_usage()
static void c0client_usage |
( |
FILE * |
file, |
|
|
char * |
prog_name |
|
) |
| |
|
static |
◆ help()
static void help |
( |
void |
| ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ conf
◆ container
◆ dix_conf
◆ m0_addb_ctx
struct m0_addb_ctx m0_addb_ctx |
◆ m0_instance