Motr  M0
helpers.c File Reference
#include "lib/trace.h"
#include "lib/misc.h"
#include "sns/parity_repair.h"
#include "sns/cm/cm_utils.h"
#include "sns/cm/file.h"
#include "sns/cm/ag.h"
#include "cm/proxy.h"
#include "pool/pool_machine.h"
Include dependency graph for helpers.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM
 

Functions

M0_INTERNAL int m0_sns_cm_repair_ag_setup (struct m0_sns_cm_ag *sag, struct m0_pdclust_layout *pl)
 
static int repair_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)
 
static uint64_t repair_ag_unit_start (const struct m0_pdclust_layout *pl)
 
static uint64_t repair_ag_unit_end (const struct m0_pdclust_layout *pl)
 
static bool repair_ag_is_relevant (struct m0_sns_cm *scm, struct m0_sns_cm_file_ctx *fctx, uint64_t group)
 
static int repair_cob_locate (struct m0_sns_cm *scm, struct m0_cob_domain *cdom, struct m0_poolmach *pm, const struct m0_fid *cob_fid)
 
static bool repair_is_cob_failed (struct m0_poolmach *pm, uint32_t cob_index)
 

Variables

const struct m0_sns_cm_helpers repair_helpers
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM

Definition at line 23 of file helpers.c.

Function Documentation

◆ repair_ag_in_cp_units()

static int repair_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 
)
static

Definition at line 37 of file helpers.c.

Here is the call graph for this function:

◆ repair_ag_is_relevant()

static bool repair_ag_is_relevant ( struct m0_sns_cm scm,
struct m0_sns_cm_file_ctx fctx,
uint64_t  group 
)
static

Definition at line 153 of file helpers.c.

Here is the call graph for this function:

◆ repair_ag_unit_end()

static uint64_t repair_ag_unit_end ( const struct m0_pdclust_layout pl)
static

Definition at line 148 of file helpers.c.

Here is the call graph for this function:

◆ repair_ag_unit_start()

static uint64_t repair_ag_unit_start ( const struct m0_pdclust_layout pl)
static

Definition at line 143 of file helpers.c.

◆ repair_cob_locate()

static int repair_cob_locate ( struct m0_sns_cm scm,
struct m0_cob_domain cdom,
struct m0_poolmach pm,
const struct m0_fid cob_fid 
)
static

Definition at line 209 of file helpers.c.

Here is the call graph for this function:

◆ repair_is_cob_failed()

static bool repair_is_cob_failed ( struct m0_poolmach pm,
uint32_t  cob_index 
)
static

Definition at line 223 of file helpers.c.

Here is the call graph for this function: