Motr  M0
m0_dix_layout_iter Struct Reference

#include <layout.h>

Collaboration diagram for m0_dix_layout_iter:
Collaboration graph

Data Fields

struct m0_dix_linst dit_linst
 
uint32_t dit_W
 
uint64_t dit_unit
 
struct m0_buf dit_key
 

Detailed Description

Iterator over targets of index record parity group units.

The order of iteration is: Tn, Tp1 ... Tpk, Ts1, ..., Tsk, where Tn - target for data unit. There is always one data unit; Tp1 ... Tpk - targets for parity units; Ts1 ... Tsk - targets for spare units; 'k' is determined by pool version 'K' attribute. Iterator constructs distributed index layout internally and uses it to calculate successive target on every iteration.

Target in this case is a device index in a pool version.

Definition at line 133 of file layout.h.

Field Documentation

◆ dit_key

struct m0_buf dit_key

Key of the record that should be distributed after application of the identity mask.

Definition at line 147 of file layout.h.

◆ dit_linst

struct m0_dix_linst dit_linst

Layout instance.

Definition at line 135 of file layout.h.

◆ dit_unit

uint64_t dit_unit

Current position.

Definition at line 141 of file layout.h.

◆ dit_W

uint32_t dit_W

Width of a parity group.

Definition at line 138 of file layout.h.


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