32 #undef M0_TRACE_SUBSYSTEM 33 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_POOL 171 "do_nothing_for_poolmach-ut", 0,
176 m0_fi_disable(
"m0_pooldev_clink_del",
"do_nothing_for_poolmach-ut");
204 event.pe_state = target_state;
212 event.pe_state = target_state;
235 event.pe_state = state;
247 event.pe_state = target_state;
266 event.pe_state = state;
274 event.pe_state = target_state;
292 event.pe_state = state;
300 event.pe_state = target_state;
317 event.pe_state = state;
324 event.pe_state = target_state;
335 "do_nothing_for_poolmach-ut", 0,
340 m0_fi_disable(
"m0_pooldev_clink_del",
"do_nothing_for_poolmach-ut");
366 event.pe_state = target_state;
376 event.pe_state = target_state;
386 event.pe_state = target_state;
396 event.pe_state = target_state;
406 event.pe_state = target_state;
417 event.pe_state = target_state;
429 event.pe_state = target_state;
440 event.pe_state = target_state;
452 event.pe_state = target_state;
463 event.pe_state = target_state;
475 event.pe_state = target_state;
484 event.pe_state = target_state;
491 event.pe_state = target_state;
495 event.pe_state = target_state;
505 event.pe_state = target_state;
514 event.pe_state = target_state;
521 event.pe_state = target_state;
525 event.pe_state = target_state;
550 #undef M0_TRACE_SUBSYSTEM
M0_INTERNAL void m0_pool_fini(struct m0_pool *pool)
M0_INTERNAL int m0_poolmach_state_transit(struct m0_poolmach *pm, const struct m0_poolmach_event *event)
struct m0_poolmach pv_mach
static void pool_pver_fini(void)
M0_INTERNAL int m0_poolmach_device_state(struct m0_poolmach *pm, uint32_t device_index, enum m0_pool_nd_state *state_out)
M0_INTERNAL int m0_pool_init(struct m0_pool *pool, const struct m0_fid *id, enum m0_pver_policy_code pver_policy)
static struct m0_fid M0_POOL_ID
#define M0_FID_TINIT(type, container, key)
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
static int pool_pver_init(uint32_t N, uint32_t K, uint32_t S)
M0_INTERNAL void m0_poolmach_failvec_apply(struct m0_poolmach *pm, const struct m0_ha_nvec *nvec)
M0_INTERNAL int m0_pool_version_init(struct m0_pool_version *pv, const struct m0_fid *id, struct m0_pool *pool, uint32_t pool_width, uint32_t nr_nodes, uint32_t nr_data, uint32_t nr_failures, uint32_t nr_spare)
static void pm_test_spare_slot(void)
static struct m0_pool_version pver
static struct m0_pool pool
M0_INTERNAL void m0_pool_version_fini(struct m0_pool_version *pv)
static void m0_fi_enable_off_n_on_m(const char *func, const char *tag, uint32_t n, uint32_t m)
static void pm_test_transit(void)
static void pm_test_init_fini(void)
M0_INTERNAL int m0_poolmach_sns_repair_spare_query(struct m0_poolmach *pm, uint32_t device_index, uint32_t *spare_slot_out)
static void m0_fi_enable_once(const char *func, const char *tag)
struct m0_ut_suite poolmach_ut
static void pm_test_multi_fail(void)
enum m0_pool_nd_state pe_state
static struct m0_fid M0_PVER_ID
M0_INTERNAL int m0_poolmach_sns_rebalance_spare_query(struct m0_poolmach *pm, uint32_t device_index, uint32_t *spare_slot_out)