Motr  M0
Dixcm

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DIXCM
 
#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DIXCM
 

Functions

M0_INTERNAL int m0_dix_cm_module_init (void)
 
M0_INTERNAL void m0_dix_cm_module_fini (void)
 
M0_INTERNAL int m0_dix_cm_svc_allocate (struct m0_reqh_service **service, const struct m0_reqh_service_type *stype, const struct m0_reqh_service_ops *svc_ops, const struct m0_cm_ops *cm_ops, struct m0_dix_cm_type *dcmt)
 
M0_INTERNAL int m0_dix_cm_svc_start (struct m0_reqh_service *service)
 
M0_INTERNAL void m0_dix_cm_svc_stop (struct m0_reqh_service *service)
 
M0_INTERNAL void m0_dix_cm_svc_fini (struct m0_reqh_service *service)
 
M0_INTERNAL int m0_dix_cm_trigger_fop_alloc (struct m0_rpc_machine *mach, uint32_t op, struct m0_fop **fop)
 

Variables

struct m0_fop_type m0_dix_rebalance_trigger_fopt
 
struct m0_fop_type m0_dix_rebalance_trigger_rep_fopt
 
struct m0_fop_type m0_dix_rebalance_quiesce_fopt
 
struct m0_fop_type m0_dix_rebalance_quiesce_rep_fopt
 
struct m0_fop_type m0_dix_rebalance_status_fopt
 
struct m0_fop_type m0_dix_rebalance_status_rep_fopt
 
struct m0_fop_type m0_dix_rebalance_abort_fopt
 
struct m0_fop_type m0_dix_rebalance_abort_rep_fopt
 
struct m0_fop_type m0_dix_repair_trigger_fopt
 
struct m0_fop_type m0_dix_repair_quiesce_fopt
 
struct m0_fop_type m0_dix_repair_status_fopt
 
struct m0_fop_type m0_dix_repair_abort_fopt
 
struct m0_fop_type m0_dix_repair_trigger_rep_fopt
 
struct m0_fop_type m0_dix_repair_quiesce_rep_fopt
 
struct m0_fop_type m0_dix_repair_status_rep_fopt
 
struct m0_fop_type m0_dix_repair_abort_rep_fopt
 
struct m0_fop_type m0_dix_rebalance_trigger_fopt
 
struct m0_fop_type m0_dix_rebalance_trigger_rep_fopt
 
struct m0_fop_type m0_dix_rebalance_quiesce_fopt
 
struct m0_fop_type m0_dix_rebalance_quiesce_rep_fopt
 
struct m0_fop_type m0_dix_rebalance_status_fopt
 
struct m0_fop_type m0_dix_rebalance_status_rep_fopt
 
struct m0_fop_type m0_dix_rebalance_abort_fopt
 
struct m0_fop_type m0_dix_rebalance_abort_rep_fopt
 
struct m0_fop_type m0_dix_repair_trigger_fopt
 
struct m0_fop_type m0_dix_repair_quiesce_fopt
 
struct m0_fop_type m0_dix_repair_status_fopt
 
struct m0_fop_type m0_dix_repair_abort_fopt
 
struct m0_fop_type m0_dix_repair_trigger_rep_fopt
 
struct m0_fop_type m0_dix_repair_quiesce_rep_fopt
 
struct m0_fop_type m0_dix_repair_status_rep_fopt
 
struct m0_fop_type m0_dix_repair_abort_rep_fopt
 

Detailed Description

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM [1/2]

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DIXCM

Definition at line 29 of file trigger_fop_common.c.

◆ M0_TRACE_SUBSYSTEM [2/2]

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DIXCM

Definition at line 30 of file service.c.

Function Documentation

◆ m0_dix_cm_module_fini()

M0_INTERNAL void m0_dix_cm_module_fini ( void  )

Definition at line 43 of file service.c.

Here is the call graph for this function:

◆ m0_dix_cm_module_init()

M0_INTERNAL int m0_dix_cm_module_init ( void  )

Definition at line 37 of file service.c.

Here is the call graph for this function:

◆ m0_dix_cm_svc_allocate()

M0_INTERNAL int m0_dix_cm_svc_allocate ( struct m0_reqh_service **  service,
const struct m0_reqh_service_type stype,
const struct m0_reqh_service_ops svc_ops,
const struct m0_cm_ops cm_ops,
struct m0_dix_cm_type dcmt 
)

Allocates DIX copy machine (service context is embedded into copy machine context), initialises embedded base copy machine, sets up embedded service context and return its pointer.

Parameters
[out]serviceDIX CM service.
[in]stypeDIX CM service type.
[in]svc_opsDIX CM service operation list.
[in]cm_opsCopy machine operation list.
[in]dcmtDIX copy machine type.

0 on succes or negative error code.

Definition at line 50 of file service.c.

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

◆ m0_dix_cm_svc_fini()

M0_INTERNAL void m0_dix_cm_svc_fini ( struct m0_reqh_service service)

Finalises DIX copy machine service.

Parameters
serviceDIX copy machine service to be finalised.

Definition at line 113 of file service.c.

Here is the call graph for this function:

◆ m0_dix_cm_svc_start()

M0_INTERNAL int m0_dix_cm_svc_start ( struct m0_reqh_service service)

Sets up a DIX copy machine served by .

Parameters
serviceDIX CM service.

0 on succes or negative error code.

Definition at line 81 of file service.c.

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

◆ m0_dix_cm_svc_stop()

M0_INTERNAL void m0_dix_cm_svc_stop ( struct m0_reqh_service service)

Finalises DIX copy machine and embedded base copy machine.

Parameters
serviceDIX CM service.

Definition at line 96 of file service.c.

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

◆ m0_dix_cm_trigger_fop_alloc()

M0_INTERNAL int m0_dix_cm_trigger_fop_alloc ( struct m0_rpc_machine mach,
uint32_t  op,
struct m0_fop **  fop 
)

Allocates trigger FOP for given operation .

Parameters
[in]machRPC machine to handle FOP RPC item.
[in]opRepair/re-balance control operation.
[out]fopNewly created FOP.

0 on success or -ENOMEM.

Definition at line 53 of file trigger_fop_common.c.

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

Variable Documentation

◆ m0_dix_rebalance_abort_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_abort_fopt

Definition at line 41 of file trigger_fop_common.c.

◆ m0_dix_rebalance_abort_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_abort_fopt

Definition at line 41 of file trigger_fop_common.c.

◆ m0_dix_rebalance_abort_rep_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_abort_rep_fopt

Definition at line 42 of file trigger_fop_common.c.

◆ m0_dix_rebalance_abort_rep_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_abort_rep_fopt

Definition at line 42 of file trigger_fop_common.c.

◆ m0_dix_rebalance_quiesce_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_quiesce_fopt

Definition at line 37 of file trigger_fop_common.c.

◆ m0_dix_rebalance_quiesce_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_quiesce_fopt

Definition at line 37 of file trigger_fop_common.c.

◆ m0_dix_rebalance_quiesce_rep_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_quiesce_rep_fopt

Definition at line 38 of file trigger_fop_common.c.

◆ m0_dix_rebalance_quiesce_rep_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_quiesce_rep_fopt

Definition at line 38 of file trigger_fop_common.c.

◆ m0_dix_rebalance_status_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_status_fopt

Definition at line 39 of file trigger_fop_common.c.

◆ m0_dix_rebalance_status_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_status_fopt

Definition at line 39 of file trigger_fop_common.c.

◆ m0_dix_rebalance_status_rep_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_status_rep_fopt

Definition at line 40 of file trigger_fop_common.c.

◆ m0_dix_rebalance_status_rep_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_status_rep_fopt

Definition at line 40 of file trigger_fop_common.c.

◆ m0_dix_rebalance_trigger_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_trigger_fopt

Definition at line 35 of file trigger_fop_common.c.

◆ m0_dix_rebalance_trigger_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_trigger_fopt

Definition at line 35 of file trigger_fop_common.c.

◆ m0_dix_rebalance_trigger_rep_fopt [1/2]

struct m0_fop_type m0_dix_rebalance_trigger_rep_fopt

Definition at line 36 of file trigger_fop_common.c.

◆ m0_dix_rebalance_trigger_rep_fopt [2/2]

struct m0_fop_type m0_dix_rebalance_trigger_rep_fopt

Definition at line 36 of file trigger_fop_common.c.

◆ m0_dix_repair_abort_fopt [1/2]

struct m0_fop_type m0_dix_repair_abort_fopt

Definition at line 47 of file trigger_fop_common.c.

◆ m0_dix_repair_abort_fopt [2/2]

struct m0_fop_type m0_dix_repair_abort_fopt

Definition at line 47 of file trigger_fop_common.c.

◆ m0_dix_repair_abort_rep_fopt [1/2]

struct m0_fop_type m0_dix_repair_abort_rep_fopt

Definition at line 51 of file trigger_fop_common.c.

◆ m0_dix_repair_abort_rep_fopt [2/2]

struct m0_fop_type m0_dix_repair_abort_rep_fopt

Definition at line 51 of file trigger_fop_common.c.

◆ m0_dix_repair_quiesce_fopt [1/2]

struct m0_fop_type m0_dix_repair_quiesce_fopt

Definition at line 45 of file trigger_fop_common.c.

◆ m0_dix_repair_quiesce_fopt [2/2]

struct m0_fop_type m0_dix_repair_quiesce_fopt

Definition at line 45 of file trigger_fop_common.c.

◆ m0_dix_repair_quiesce_rep_fopt [1/2]

struct m0_fop_type m0_dix_repair_quiesce_rep_fopt

Definition at line 49 of file trigger_fop_common.c.

◆ m0_dix_repair_quiesce_rep_fopt [2/2]

struct m0_fop_type m0_dix_repair_quiesce_rep_fopt

Definition at line 49 of file trigger_fop_common.c.

◆ m0_dix_repair_status_fopt [1/2]

struct m0_fop_type m0_dix_repair_status_fopt

Definition at line 46 of file trigger_fop_common.c.

◆ m0_dix_repair_status_fopt [2/2]

struct m0_fop_type m0_dix_repair_status_fopt

Definition at line 46 of file trigger_fop_common.c.

◆ m0_dix_repair_status_rep_fopt [1/2]

struct m0_fop_type m0_dix_repair_status_rep_fopt

Definition at line 50 of file trigger_fop_common.c.

◆ m0_dix_repair_status_rep_fopt [2/2]

struct m0_fop_type m0_dix_repair_status_rep_fopt

Definition at line 50 of file trigger_fop_common.c.

◆ m0_dix_repair_trigger_fopt [1/2]

struct m0_fop_type m0_dix_repair_trigger_fopt

Definition at line 44 of file trigger_fop_common.c.

◆ m0_dix_repair_trigger_fopt [2/2]

struct m0_fop_type m0_dix_repair_trigger_fopt

Definition at line 44 of file trigger_fop_common.c.

◆ m0_dix_repair_trigger_rep_fopt [1/2]

struct m0_fop_type m0_dix_repair_trigger_rep_fopt

Definition at line 48 of file trigger_fop_common.c.

◆ m0_dix_repair_trigger_rep_fopt [2/2]

struct m0_fop_type m0_dix_repair_trigger_rep_fopt

Definition at line 48 of file trigger_fop_common.c.