30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CLIENT 32 #include <uuid/uuid.h> 81 .mc_is_oostore =
true,
82 .mc_is_read_verify =
false,
92 .mc_idx_service_conf = &
config 120 for (
i = 0;
i <
cnt;
i++) {
142 len =
sizeof(str_uuid);
146 val_size = sprintf(
buf,
"[0x%x:",
size);
147 val_size +=
size * 5;
148 for (
i = 0;
i <
cnt; ++
i) {
149 uuid_generate_random(
uuid);
150 uuid_unparse(
uuid, str_uuid);
151 fprintf(
f,
"%d ", val_size);
152 fprintf(
f,
"[0x%x:",
size);
154 for (j = 0; j < len; ++j)
155 fprintf(
f,
"0x%02x,", str_uuid[j]);
156 for (j = 0; j <
size - len - 1; j++)
157 fprintf(
f,
"0x%02x,", 1);
158 fprintf(
f,
"0x%02x]\n", 1);
197 for (
i = 0;
i <
fids->af_count;
i++)
293 for (
i = 0;
i <
ctx->ictx_nr; ++
i) {
309 for (
i = 0;
i <
ctx.ictx_nr &&
rc == 0;
i++)
339 "\n\tINDEX subsystem\n" 340 "\t 'index [commands]'- name of subsystem\n" 345 #undef M0_TRACE_SUBSYSTEM int index_drop(struct m0_realm *parent, struct m0_fid_arr *fids)
struct m0_client * ci_instance
struct m0_uint128 uuid[1000]
struct m0_client * m0_instance()
int index_create(struct m0_container *container, struct m0_uint128 *fid)
static void instance_fini(void)
int index_del(struct m0_realm *parent, struct m0_fid_arr *fids, struct m0_bufvec *keys)
static uint64_t tag(uint8_t code, uint64_t id)
void m0_console_printf(const char *fmt,...)
static int cmd_exec(struct index_cmd *cmd)
void m0_client_fini(struct m0_client *m0c, bool fini_m0)
int index_next(struct m0_realm *parent, struct m0_fid *fid, struct m0_bufvec *keys, int cnt, struct m0_bufvec *vals)
int m0_client_init(struct m0_client **m0c, struct m0_config *conf, bool init_m0)
const struct m0_uint128 M0_UBER_REALM
static struct m0_fid ifid(uint64_t x, uint64_t y)
static void log_keys_vals(struct m0_bufvec *keys, struct m0_bufvec *vals)
M0_INTERNAL void m0_bufvec_free(struct m0_bufvec *bufvec)
static struct nlx_ping_client_params * params
return M0_ERR(-EOPNOTSUPP)
static struct m0_ctx cc_ctx
#define M0_FID_TINIT(type, container, key)
static int genf(char *filename, int cnt)
static void ctx_init(struct index_ctx *ctx)
struct m0_entity re_entity
static void ctx_fini(struct index_ctx *ctx)
static int instance_init(struct params *params)
int index_get(struct m0_container *container, struct m0_uint128 *fid)
static const struct m0_fid fids[]
int index_lookup(struct m0_realm *parent, struct m0_fid_arr *fids, struct m0_bufvec *rets)
void index_parser_print_command_help(void)
struct m0_instance cc_instance
static void log_fids(struct m0_fid_arr *fids, struct m0_bufvec *vals)
struct m0_container cc_parent
static struct m0 instance
int index_list(struct m0_realm *parent, struct m0_fid *fid, int cnt, struct m0_bufvec *keys)
void m0_container_init(struct m0_container *con, struct m0_realm *parent, const struct m0_uint128 *id, struct m0_client *instance)
int index_put(struct m0_container *container, struct m0_uint128 *fid)
static int genv(char *filename, int cnt, int size)
int index_init(struct params *params)
struct params * cc_params
static void log_hex_val(const char *tag, void *buf, int size)
int index_parser_args_process(struct index_ctx *ctx, int argc, char **argv)
struct m0_fid_arr ic_fids
int index_execute(int argc, char **argv)