30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CLIENT 76 return M0_ERR(-EPROTONOSUPPORT);
84 "Client Command Line tool: m0kv\n" 86 "-l local_addr -h ha_addr -p profile -f proc_fid " 87 "[-s] [subsystem] [subsystem commands]\n" 89 "Use -? for more verbose help on common arguments.\n" 90 "Usage example for common arguments: \n" 91 "./m0kv -l 10.0.2.15@tcp:12345:33:100 " 92 "-h 10.0.2.15@tcp:12345:34:1 " 93 "-p '<0x7000000000000001:0>' -f '<0x7200000000000000:0>'" 94 " [subsystem] [subsystem commands]\n" 96 "-s Enable string format and it is optional.\n" 97 "-e Enable M0_ENF_META flag and it is optional.\n" 98 "-v 7600000000000001:30 it is mandatory with -e for " 99 "PUT, GET, DEL and NEXT operations.\n" 100 "Available subsystems and subsystem-specific commands are " 109 char **arg = *(argv);
126 LAMBDA(
void, (
const char *
string) {
130 LAMBDA(
void, (
const char *str) {
134 LAMBDA(
void, (
const char *str) {
138 LAMBDA(
void, (
const char *str) {
146 LAMBDA(
void, (
const char *str) {
170 *argc -= common_args;
171 *(argv) = arg + common_args;
175 int main(
int argc,
char **argv)
214 #undef M0_TRACE_SUBSYSTEM
#define M0_GETOPTS(progname, argc, argv,...)
#define M0_FLAGARG(ch, desc, ptr)
struct m0_pool_version * pv
void m0_console_printf(const char *fmt,...)
M0_INTERNAL void m0_instance_setup(struct m0 *instance)
static int opts_get(struct params *par, int *argc, char ***argv)
#define M0_VOIDARG(ch, desc, func)
static struct c_subsystem subsystems[]
#define M0_STRINGARG(ch, desc, func)
return M0_ERR(-EOPNOTSUPP)
int main(int argc, char **argv)
M0_INTERNAL int m0_fid_sscanf(const char *s, struct m0_fid *fid)
static int subsystem_id(char *name)
int(* s_execute)(int argc, char **argv)
static struct m0 instance
int index_init(struct params *params)
struct m0_fid dix_pool_ver
int(* s_init)(struct params *par)
M0_INTERNAL int m0_module_init(struct m0_module *module, int level)
int index_execute(int argc, char **argv)