Motr  M0
m0_dix_pg_unit Struct Reference

#include <req_internal.h>

Collaboration diagram for m0_dix_pg_unit:
Collaboration graph

Data Fields

uint32_t dpu_tgt
 
uint32_t dpu_sdev_idx
 
enum m0_pool_nd_state dpu_pd_state
 
bool dpu_unavail
 
bool dpu_is_spare
 
bool dpu_del_phase2
 

Detailed Description

Additional context linked with parity group units of record operation. Note, that it contains a copy of some fields of pooldev from pool machine. The copy is done to have a consistent view of pool machine during request processing. A pool machine is locked only once during target devices calculation and then copied information is used.

Definition at line 122 of file req_internal.h.

Field Documentation

◆ dpu_del_phase2

bool dpu_del_phase2

Definition at line 138 of file req_internal.h.

◆ dpu_is_spare

bool dpu_is_spare

Definition at line 137 of file req_internal.h.

◆ dpu_pd_state

enum m0_pool_nd_state dpu_pd_state

Storage device state.

Definition at line 130 of file req_internal.h.

◆ dpu_sdev_idx

uint32_t dpu_sdev_idx

Global storage device index.

Definition at line 127 of file req_internal.h.

◆ dpu_tgt

uint32_t dpu_tgt

Target storage device in a pool version.

Definition at line 124 of file req_internal.h.

◆ dpu_unavail

bool dpu_unavail

Indicates whether this parity group unit is unavailable, e.g. the target for the unit is offline or has failed and not repaired yet.

Definition at line 136 of file req_internal.h.


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