Motr
M0
|
Data Structures | |
struct | m0_rlimit |
struct | m0_poolserver |
Enumerations | |
enum | sns_repair_state { SRS_UNINITIALIZED = 1, SRS_REPAIR_NOTDONE, SRS_REPAIR_DONE, SRS_NR } |
Functions | |
M0_INTERNAL int | m0_poolserver_init (struct m0_poolserver *srv) |
M0_INTERNAL void | m0_poolserver_fini (struct m0_poolserver *srv) |
M0_INTERNAL int | m0_poolserver_reset (struct m0_poolserver *srv) |
M0_INTERNAL int | m0_poolserver_on (struct m0_poolserver *srv) |
M0_INTERNAL int | m0_poolserver_off (struct m0_poolserver *srv) |
M0_INTERNAL int | m0_poolserver_io_req (struct m0_poolserver *srv, struct m0_io_req *req) |
M0_INTERNAL int | m0_poolserver_device_join (struct m0_poolserver *srv, struct m0_pooldev *dev) |
M0_INTERNAL int | m0_poolserver_device_leave (struct m0_poolserver *srv, struct m0_pooldev *dev) |
M0_INTERNAL int | m0_pool_device_reopen (struct m0_poolmach *pm, struct m0_reqh *rs_reqh) |
M0_INTERNAL int | m0_pool_device_state_update (struct m0_reqh *reqh, struct m0_be_tx *tx, struct m0_fid *dev_fid, enum m0_pool_nd_state new_state) |
M0_INTERNAL void | m0_poolnode_clink_add (struct m0_clink *link, struct m0_chan *chan) |
M0_INTERNAL void | m0_poolnode_clink_del (struct m0_clink *cl) |
M0_INTERNAL void | m0_pooldev_clink_add (struct m0_clink *link, struct m0_chan *chan) |
M0_INTERNAL void | m0_pooldev_clink_del (struct m0_clink *cl) |
M0_INTERNAL uint32_t | m0_ha2pm_state_map (enum m0_ha_obj_state hastate) |
M0_INTERNAL const char * | m0_pool_dev_state_to_str (enum m0_pool_nd_state state) |
M0_INTERNAL struct m0_pool * | m0_pool_find (struct m0_pools_common *pc, const struct m0_fid *pool) |
M0_INTERNAL void | m0_pools_lock (struct m0_pools_common *pc) |
M0_INTERNAL void | m0_pools_unlock (struct m0_pools_common *pc) |
M0_INTERNAL bool | m0_pools_is_locked (struct m0_pools_common *pc) |
enum sns_repair_state |
State of SNS repair with respect to given global fid. Used during degraded mode write IO. During normal IO, the UNINITIALIZED enum value is used. The next 2 states are used during degraded mode write IO.
Enumerator | |
---|---|
SRS_UNINITIALIZED | Used by IO requests done during healthy state of storage pool. Initialized to -1 in order to sync it with output of API m0_sns_cm_fid_repair_done(). |
SRS_REPAIR_NOTDONE | Assumes a distributed lock has been acquired on the associated global fid and SNS repair is yet to start on given global fid. |
SRS_REPAIR_DONE | Assumes a distributed lock has been acquired on associated global fid and SNS repair has completed for given fid. |
SRS_NR |
M0_INTERNAL uint32_t m0_ha2pm_state_map | ( | enum m0_ha_obj_state | hastate | ) |
M0_INTERNAL const char* m0_pool_dev_state_to_str | ( | enum m0_pool_nd_state | state | ) |
M0_INTERNAL int m0_pool_device_reopen | ( | struct m0_poolmach * | pm, |
struct m0_reqh * | reqh | ||
) |
Find out device ids of the REPAIRED devices in the given pool machine and call m0_motr_stob_reopen() on each of them.
Definition at line 2011 of file pool.c.
M0_INTERNAL int m0_pool_device_state_update | ( | struct m0_reqh * | reqh, |
struct m0_be_tx * | tx, | ||
struct m0_fid * | dev_fid, | ||
enum m0_pool_nd_state | new_state | ||
) |
Iterate over all pool versions and update corresponding poolmachines containing provided disk. Also updates ios disk state in ios poolmachine.
Iterate over all pool versions and update corresponding poolmachines containing provided disk.
Definition at line 2068 of file pool.c.
M0_INTERNAL struct m0_pool* m0_pool_find | ( | struct m0_pools_common * | pc, |
const struct m0_fid * | pool | ||
) |
M0_INTERNAL void m0_pooldev_clink_del | ( | struct m0_clink * | cl | ) |
M0_INTERNAL void m0_poolnode_clink_del | ( | struct m0_clink * | cl | ) |
M0_INTERNAL bool m0_pools_is_locked | ( | struct m0_pools_common * | pc | ) |
M0_INTERNAL void m0_pools_lock | ( | struct m0_pools_common * | pc | ) |
M0_INTERNAL void m0_pools_unlock | ( | struct m0_pools_common * | pc | ) |
M0_INTERNAL int m0_poolserver_device_join | ( | struct m0_poolserver * | srv, |
struct m0_pooldev * | dev | ||
) |
M0_INTERNAL int m0_poolserver_device_leave | ( | struct m0_poolserver * | srv, |
struct m0_pooldev * | dev | ||
) |
M0_INTERNAL void m0_poolserver_fini | ( | struct m0_poolserver * | srv | ) |
M0_INTERNAL int m0_poolserver_init | ( | struct m0_poolserver * | srv | ) |
M0_INTERNAL int m0_poolserver_io_req | ( | struct m0_poolserver * | srv, |
struct m0_io_req * | req | ||
) |
M0_INTERNAL int m0_poolserver_off | ( | struct m0_poolserver * | srv | ) |
M0_INTERNAL int m0_poolserver_on | ( | struct m0_poolserver * | srv | ) |
M0_INTERNAL int m0_poolserver_reset | ( | struct m0_poolserver * | srv | ) |