Motr  M0
m0_sns_cm_iter_file_ctx Struct Reference

#include <iter.h>

Collaboration diagram for m0_sns_cm_iter_file_ctx:
Collaboration graph

Data Fields

struct m0_fid ifc_gfid
 
struct m0_sns_cm_file_ctxifc_fctx
 
struct m0_pdclust_instanceifc_pi
 
struct m0_poolmachifc_pm
 
uint32_t ifc_upg
 
uint32_t ifc_dpupg
 
uint64_t ifc_group_last
 
struct m0_pdclust_src_addr ifc_sa
 
struct m0_pdclust_tgt_addr ifc_ta
 
struct m0_fid ifc_cob_fid
 
bool ifc_cob_is_spare_unit
 

Detailed Description

File context in copy machine. This maintains details like, the pdclust layout of the GOB, its corresponding parity group, unit in the parity group which is being processed. Also few more details regarding the current file size, number of units per group, etc.

Definition at line 49 of file iter.h.

Field Documentation

◆ ifc_cob_fid

struct m0_fid ifc_cob_fid

COB fid corresponding to m0_sns_cm_iter_file_ctx::ifc_ta.

Definition at line 83 of file iter.h.

◆ ifc_cob_is_spare_unit

bool ifc_cob_is_spare_unit

Definition at line 85 of file iter.h.

◆ ifc_dpupg

uint32_t ifc_dpupg

Total number of data and parity units in a parity group.

Definition at line 64 of file iter.h.

◆ ifc_fctx

struct m0_sns_cm_file_ctx* ifc_fctx

Definition at line 53 of file iter.h.

◆ ifc_gfid

struct m0_fid ifc_gfid

GOB being re-structured.

Definition at line 51 of file iter.h.

◆ ifc_group_last

uint64_t ifc_group_last

Total number of parity groups in file.

Definition at line 67 of file iter.h.

◆ ifc_pi

struct m0_pdclust_instance* ifc_pi

pdclust instance for a particular GOB.

Definition at line 56 of file iter.h.

◆ ifc_pm

struct m0_poolmach* ifc_pm

Definition at line 58 of file iter.h.

◆ ifc_sa

struct m0_pdclust_src_addr ifc_sa

Unit within a particular parity group corresponding to m0_sns_cm_iter::si_gob_fid, of which the data is to be read or written.

Definition at line 74 of file iter.h.

◆ ifc_ta

struct m0_pdclust_tgt_addr ifc_ta

COB index and frame number in the COB, corresponding to m0_sns_cm_iter_file_ctx::ifc_sa.

Definition at line 80 of file iter.h.

◆ ifc_upg

uint32_t ifc_upg

Total number of units (i.e. N + 2K) in a parity group.

Definition at line 61 of file iter.h.


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