Motr  M0
m0_pooldev Struct Reference

#include <pool.h>

Collaboration diagram for m0_pooldev:
Collaboration graph

Public Member Functions

uint32_t pd_state M0_XCA_FENUM (m0_pool_nd_state)
 

Data Fields

struct m0_format_header pd_header
 
char pd_pad [4]
 
struct m0_fid pd_id
 
struct m0_fid pd_sdev_fid
 
uint32_t pd_index
 
uint32_t pd_sdev_idx
 
struct m0_poolnodepd_node
 
struct m0_poolmachpd_pm
 
struct m0_be_clink pd_clink
 
struct m0_tlink pd_fail_linkage
 
uint64_t pd_magic
 
struct m0_format_footer pd_footer
 

Detailed Description

Storage device in a pool.

Definition at line 421 of file pool.h.

Member Function Documentation

◆ M0_XCA_FENUM()

uint32_t pd_state M0_XCA_FENUM ( m0_pool_nd_state  )

device state (as part of pool machine state). This field is only meaningful when m0_pooldev::pd_node.pn_state is PNS_ONLINE

Field Documentation

◆ pd_clink

struct m0_be_clink pd_clink

Link to receive HA state change notification. This will wait on disk obj's wait channel i.e. m0_conf_obj::co_ha_chan.

Definition at line 447 of file pool.h.

◆ pd_fail_linkage

struct m0_tlink pd_fail_linkage

Link into list of failed devices in the pool.

See also
m0_pool::po_failed_devices.

Definition at line 453 of file pool.h.

◆ pd_footer

struct m0_format_footer pd_footer

Definition at line 456 of file pool.h.

◆ pd_header

struct m0_format_header pd_header

Definition at line 422 of file pool.h.

◆ pd_id

struct m0_fid pd_id

pool device identity

Definition at line 428 of file pool.h.

◆ pd_index

uint32_t pd_index

pooldev index in the poolmachine-state device array

Definition at line 432 of file pool.h.

◆ pd_magic

uint64_t pd_magic

Definition at line 454 of file pool.h.

◆ pd_node

struct m0_poolnode* pd_node

a node this storage device is attached to

Definition at line 440 of file pool.h.

◆ pd_pad

char pd_pad[4]

Definition at line 426 of file pool.h.

◆ pd_pm

struct m0_poolmach* pd_pm

pool machine this pooldev belongs to

Definition at line 442 of file pool.h.

◆ pd_sdev_fid

struct m0_fid pd_sdev_fid

storage device fid

Definition at line 430 of file pool.h.

◆ pd_sdev_idx

uint32_t pd_sdev_idx

storage device index between 1 to total number of devices in the filesystem, get from m0_conf_sdev:sd_dev_idx.

Definition at line 437 of file pool.h.


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