Motr  M0
repair_cli.c File Reference
#include "lib/assert.h"
#include "lib/memory.h"
#include "fop/fop.h"
#include "net/lnet/lnet.h"
#include "rpc/rpc.h"
#include "rpc/rpclib.h"
#include "repair_cli.h"
Include dependency graph for repair_cli.c:

Go to the source code of this file.

Functions

M0_INTERNAL int repair_client_init (void)
 
M0_INTERNAL void repair_client_fini (void)
 
M0_INTERNAL int repair_rpc_ctx_init (struct rpc_ctx *ctx, const char *sep)
 
M0_INTERNAL void repair_rpc_ctx_fini (struct rpc_ctx *ctx)
 
M0_INTERNAL int repair_rpc_post (struct m0_fop *fop, struct m0_rpc_session *session, const struct m0_rpc_item_ops *ri_ops, m0_time_t deadline)
 

Variables

static struct m0_fid process_fid = M0_FID_TINIT('r', 0, 1)
 
static struct m0_net_domain cl_ndom
 
static struct m0_rpc_client_ctx cl_ctx
 
const char * cl_ep_addr
 
const char * srv_ep_addr [MAX_SERVERS]
 

Function Documentation

◆ repair_client_fini()

M0_INTERNAL void repair_client_fini ( void  )

Definition at line 55 of file repair_cli.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ repair_client_init()

M0_INTERNAL int repair_client_init ( void  )

Definition at line 42 of file repair_cli.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ repair_rpc_ctx_fini()

M0_INTERNAL void repair_rpc_ctx_fini ( struct rpc_ctx ctx)

Definition at line 71 of file repair_cli.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ repair_rpc_ctx_init()

M0_INTERNAL int repair_rpc_ctx_init ( struct rpc_ctx ctx,
const char *  sep 
)

Definition at line 62 of file repair_cli.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ repair_rpc_post()

M0_INTERNAL int repair_rpc_post ( struct m0_fop fop,
struct m0_rpc_session session,
const struct m0_rpc_item_ops ri_ops,
m0_time_t  deadline 
)

Definition at line 79 of file repair_cli.c.

Here is the call graph for this function:

Variable Documentation

◆ cl_ctx

struct m0_rpc_client_ctx cl_ctx
static
Initial value:
= {
.rcx_net_dom = &cl_ndom,
.rcx_max_rpcs_in_flight = MAX_RPCS_IN_FLIGHT,
.rcx_fid = &process_fid,
}
static struct m0_net_domain cl_ndom
Definition: repair_cli.c:32
static struct m0_fid process_fid
Definition: repair_cli.c:31

Definition at line 33 of file repair_cli.c.

◆ cl_ep_addr

const char* cl_ep_addr

Definition at line 39 of file repair_cli.c.

◆ cl_ndom

struct m0_net_domain cl_ndom
static

Definition at line 32 of file repair_cli.c.

◆ process_fid

struct m0_fid process_fid = M0_FID_TINIT('r', 0, 1)
static

Definition at line 31 of file repair_cli.c.

◆ srv_ep_addr

const char* srv_ep_addr[MAX_SERVERS]

Definition at line 40 of file repair_cli.c.