Motr  M0
m0_poolmach_state Struct Reference

#include <pool_machine.h>

Collaboration diagram for m0_poolmach_state:
Collaboration graph

Data Fields

uint32_t pst_nr_nodes
 
struct m0_poolnodepst_nodes_array
 
uint32_t pst_nr_devices
 
struct m0_pooldevpst_devices_array
 
uint32_t pst_max_node_failures
 
uint32_t pst_nr_spares
 
uint32_t pst_max_device_failures
 
uint32_t pst_nr_failures
 
struct m0_pool_spare_usagepst_spare_usage_array
 
bool pst_su_initialised
 
struct m0_tl pst_events_list
 
struct m0_tl pst_event_queue
 
struct m0_be_clink pst_conf_exp
 
struct m0_be_clink pst_conf_ready
 

Detailed Description

Pool machine state.

Copies of this struct are maintained by every node that thinks it is a part of the pool. This state is updated by a quorum protocol.

Pool machine state history is recorded in the ::pst_events_list as a ordered collection of events.

Definition at line 100 of file pool_machine.h.

Field Documentation

◆ pst_conf_exp

struct m0_be_clink pst_conf_exp

Definition at line 153 of file pool_machine.h.

◆ pst_conf_ready

struct m0_be_clink pst_conf_ready

Definition at line 154 of file pool_machine.h.

◆ pst_devices_array

struct m0_pooldev* pst_devices_array

Identities and states of every device in the pool.

Definition at line 111 of file pool_machine.h.

◆ pst_event_queue

struct m0_tl pst_event_queue

All events pending to be applied on this pool machine, ordered chronologically.

Definition at line 151 of file pool_machine.h.

◆ pst_events_list

struct m0_tl pst_events_list

All Events ever happened to this pool machine, ordered by time.

Definition at line 145 of file pool_machine.h.

◆ pst_max_device_failures

uint32_t pst_max_device_failures

Maximal number of device failures the pool is configured to sustain.

Definition at line 126 of file pool_machine.h.

◆ pst_max_node_failures

uint32_t pst_max_node_failures

Maximal number of node failures the pool is configured to sustain.

Definition at line 117 of file pool_machine.h.

◆ pst_nodes_array

struct m0_poolnode* pst_nodes_array

Identities and states of every node in the pool.

Definition at line 105 of file pool_machine.h.

◆ pst_nr_devices

uint32_t pst_nr_devices

Number of devices currently in the pool.

Definition at line 108 of file pool_machine.h.

◆ pst_nr_failures

uint32_t pst_nr_failures

Number of failures in a pool version.

Definition at line 131 of file pool_machine.h.

◆ pst_nr_nodes

uint32_t pst_nr_nodes

Number of nodes currently in the pool.

Definition at line 102 of file pool_machine.h.

◆ pst_nr_spares

uint32_t pst_nr_spares

Number of spare slot in the pool.

Definition at line 120 of file pool_machine.h.

◆ pst_spare_usage_array

struct m0_pool_spare_usage* pst_spare_usage_array

Spare slot usage array. The size of this array is pst_max_device_failures.

Definition at line 137 of file pool_machine.h.

◆ pst_su_initialised

bool pst_su_initialised

Indicates if the spare usage array is initialised

Definition at line 140 of file pool_machine.h.


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