Motr
M0
|
#include <pool_machine.h>
Data Fields | |
uint32_t | pst_nr_nodes |
struct m0_poolnode * | pst_nodes_array |
uint32_t | pst_nr_devices |
struct m0_pooldev * | pst_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_usage * | pst_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 |
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.
struct m0_be_clink pst_conf_exp |
Definition at line 153 of file pool_machine.h.
struct m0_be_clink pst_conf_ready |
Definition at line 154 of file pool_machine.h.
struct m0_pooldev* pst_devices_array |
Identities and states of every device in the pool.
Definition at line 111 of file pool_machine.h.
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.
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.
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.
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.
struct m0_poolnode* pst_nodes_array |
Identities and states of every node in the pool.
Definition at line 105 of file pool_machine.h.
uint32_t pst_nr_devices |
Number of devices currently in the pool.
Definition at line 108 of file pool_machine.h.
uint32_t pst_nr_failures |
Number of failures in a pool version.
Definition at line 131 of file pool_machine.h.
uint32_t pst_nr_nodes |
Number of nodes currently in the pool.
Definition at line 102 of file pool_machine.h.
uint32_t pst_nr_spares |
Number of spare slot in the pool.
Definition at line 120 of file pool_machine.h.
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.
bool pst_su_initialised |
Indicates if the spare usage array is initialised
Definition at line 140 of file pool_machine.h.