Motr  M0
m0_sns_cm_helpers Struct Reference

#include <cm.h>

Collaboration diagram for m0_sns_cm_helpers:
Collaboration graph

Data Fields

int(* sch_ag_in_cp_units )(const struct m0_sns_cm *scm, const struct m0_cm_ag_id *id, struct m0_sns_cm_file_ctx *fctx, uint32_t *in_cp_nr, uint32_t *in_units_nr, struct m0_cm_proxy_in_count *pcount)
 
uint64_t(* sch_ag_unit_start )(const struct m0_pdclust_layout *pl)
 
uint64_t(* sch_ag_unit_end )(const struct m0_pdclust_layout *pl)
 
bool(* sch_ag_is_relevant )(struct m0_sns_cm *scm, struct m0_sns_cm_file_ctx *fctx, uint64_t group)
 
int(* sch_ag_setup )(struct m0_sns_cm_ag *sag, struct m0_pdclust_layout *pl)
 
int(* sch_cob_locate )(struct m0_sns_cm *scm, struct m0_cob_domain *cdom, struct m0_poolmach *pm, const struct m0_fid *cob_fid)
 
bool(* sch_is_cob_failed )(struct m0_poolmach *pm, uint32_t cob_index)
 

Detailed Description

SNS copy machine helpers for different operations, viz. sns-repair, sns-rebalance, etc.

Definition at line 148 of file cm.h.

Field Documentation

◆ sch_ag_in_cp_units

int(* sch_ag_in_cp_units) (const struct m0_sns_cm *scm, const struct m0_cm_ag_id *id, struct m0_sns_cm_file_ctx *fctx, uint32_t *in_cp_nr, uint32_t *in_units_nr, struct m0_cm_proxy_in_count *pcount)

Returns maximum possible number of aggregation group units to be received by this replica.

Definition at line 153 of file cm.h.

◆ sch_ag_is_relevant

bool(* sch_ag_is_relevant) (struct m0_sns_cm *scm, struct m0_sns_cm_file_ctx *fctx, uint64_t group)

Returns true iff the given aggregation group has any incoming copy packets from other replicas, else false.

Definition at line 176 of file cm.h.

◆ sch_ag_setup

int(* sch_ag_setup) (struct m0_sns_cm_ag *sag, struct m0_pdclust_layout *pl)

Definition at line 180 of file cm.h.

◆ sch_ag_unit_end

uint64_t(* sch_ag_unit_end) (const struct m0_pdclust_layout *pl)

Returns index of final unit of the given aggregation group to iterate upon.

Definition at line 170 of file cm.h.

◆ sch_ag_unit_start

uint64_t(* sch_ag_unit_start) (const struct m0_pdclust_layout *pl)

Returns index of starting unit of the given aggregation group to iterate upon.

Definition at line 164 of file cm.h.

◆ sch_cob_locate

int(* sch_cob_locate) (struct m0_sns_cm *scm, struct m0_cob_domain *cdom, struct m0_poolmach *pm, const struct m0_fid *cob_fid)

Definition at line 183 of file cm.h.

◆ sch_is_cob_failed

bool(* sch_is_cob_failed) (struct m0_poolmach *pm, uint32_t cob_index)

Definition at line 188 of file cm.h.


The documentation for this struct was generated from the following file: