Motr  M0
cp_common.h File Reference
#include "ut/ut.h"
#include "sns/cm/cp.h"
#include "sns/cm/ag.h"
Include dependency graph for cp_common.h:

Go to the source code of this file.

Macros

#define __MOTR_SNS_CM_UT_CP_COMMON_H__
 

Functions

void bv_populate (struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size)
 
void bv_alloc_populate (struct m0_bufvec *b, char data, uint32_t seg_nr, uint32_t seg_size)
 
void bv_compare (struct m0_bufvec *b1, struct m0_bufvec *b2, uint32_t seg_nr, uint32_t seg_size)
 
void bv_free (struct m0_bufvec *b)
 
void cp_prepare (struct m0_cm_cp *cp, struct m0_net_buffer *buf, uint32_t bv_seg_nr, uint32_t bv_seg_size, struct m0_sns_cm_ag *sns_ag, char data, struct m0_fom_ops *cp_fom_ops, struct m0_reqh *reqh, uint64_t cp_ag_idx, bool is_acc_cp, struct m0_cm *scm)
 
struct m0_sns_cmreqh2snscm (struct m0_reqh *reqh)
 
void layout_gen (struct m0_pdclust_layout **pdlay, struct m0_reqh *reqh)
 
void layout_destroy (struct m0_pdclust_layout *pdlay)
 
int cs_init (struct m0_motr *sctx)
 
int cs_init_with_ad_stob (struct m0_motr *sctx)
 
void cs_fini (struct m0_motr *sctx)
 
void pool_mach_transit (struct m0_reqh *reqh, struct m0_poolmach *pm, uint64_t fd, enum m0_pool_nd_state state)
 

Variables

struct m0_motr sctx
 

Macro Definition Documentation

◆ __MOTR_SNS_CM_UT_CP_COMMON_H__

#define __MOTR_SNS_CM_UT_CP_COMMON_H__

Definition at line 26 of file cp_common.h.

Function Documentation

◆ bv_alloc_populate()

void bv_alloc_populate ( struct m0_bufvec b,
char  data,
uint32_t  seg_nr,
uint32_t  seg_size 
)

Definition at line 84 of file cp_common.c.

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

◆ bv_compare()

void bv_compare ( struct m0_bufvec b1,
struct m0_bufvec b2,
uint32_t  seg_nr,
uint32_t  seg_size 
)

Definition at line 95 of file cp_common.c.

Here is the caller graph for this function:

◆ bv_free()

void bv_free ( struct m0_bufvec b)

Definition at line 115 of file cp_common.c.

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

◆ bv_populate()

void bv_populate ( struct m0_bufvec b,
char  data,
uint32_t  seg_nr,
uint32_t  seg_size 
)

Definition at line 71 of file cp_common.c.

Here is the caller graph for this function:

◆ cp_prepare()

void cp_prepare ( struct m0_cm_cp cp,
struct m0_net_buffer buf,
uint32_t  bv_seg_nr,
uint32_t  bv_seg_size,
struct m0_sns_cm_ag sns_ag,
char  data,
struct m0_fom_ops cp_fom_ops,
struct m0_reqh reqh,
uint64_t  cp_ag_idx,
bool  is_acc_cp,
struct m0_cm scm 
)

Definition at line 120 of file cp_common.c.

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

◆ cs_fini()

void cs_fini ( struct m0_motr sctx)

Definition at line 221 of file cp_common.c.

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

◆ cs_init()

int cs_init ( struct m0_motr sctx)

Definition at line 206 of file cp_common.c.

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

◆ cs_init_with_ad_stob()

int cs_init_with_ad_stob ( struct m0_motr sctx)

Definition at line 215 of file cp_common.c.

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

◆ layout_destroy()

void layout_destroy ( struct m0_pdclust_layout pdlay)

Definition at line 257 of file cp_common.c.

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

◆ layout_gen()

void layout_gen ( struct m0_pdclust_layout **  pdlay,
struct m0_reqh reqh 
)

Definition at line 227 of file cp_common.c.

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

◆ pool_mach_transit()

void pool_mach_transit ( struct m0_reqh reqh,
struct m0_poolmach pm,
uint64_t  fd,
enum m0_pool_nd_state  state 
)

Definition at line 262 of file cp_common.c.

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

◆ reqh2snscm()

struct m0_sns_cm* reqh2snscm ( struct m0_reqh reqh)

Definition at line 160 of file cp_common.c.

Here is the call graph for this function:

Variable Documentation

◆ sctx

struct m0_motr sctx

Definition at line 80 of file main.c.