23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 141 for (
i = 0;
i <
rc; ++
i)
184 "ut/.libs/libtestlib.so.0.0.0");
190 m0_fi_disable(
"sss_process_lib_load_testlib_test",
"loaded");
244 uint64_t io_sdev = 5;
245 uint64_t foreign_sdev = 51;
344 for (
i = 0;
i <
rc; ++
i) {
387 char *confstr =
NULL;
389 uint64_t svc_total = 0;
401 M0_CONF_ROOT_NODES_FID,
402 M0_CONF_NODE_PROCESSES_FID,
403 M0_CONF_PROCESS_SERVICES_FID);
408 if(
svc->cs_type == M0_CST_IOS) {
445 m0_fi_enable(
"m0_storage_dev_new_by_conf",
"no_real_dev");
511 m0_fi_enable(
"ss_ios_stats_ingest",
"take_dsx_in_effect");
546 const struct m0_fid *svc_fid,
571 const struct m0_fid *pool_fid,
572 const struct m0_fid *svc_fid)
592 state = (*status)[0].srs_state;
856 #undef M0_TRACE_SUBSYSTEM const struct m0_conf_obj_type * m0_conf_obj_type(const struct m0_conf_obj *obj)
static void test_spiel_service_cmds(void)
M0_INTERNAL uint64_t m0_ha_msg_nvec_send(const struct m0_ha_nvec *nvec, uint64_t id_of_get, bool ignore_same_state, int direction, struct m0_ha_link *hl)
int m0_spiel_sns_rebalance_quiesce(struct m0_spiel *spl, const struct m0_fid *pool_fid)
struct m0_conf_obj * cc_root
static int spiel_ci_tests_fini()
static void test_spiel_device_cmds(void)
int m0_spiel_sns_rebalance_continue(struct m0_spiel *spl, const struct m0_fid *pool_fid)
struct m0_spiel_bckey ** pc_bckey
struct m0_conf_dir * cs_sdevs
struct m0_ut_suite spiel_ci_ut
int m0_spiel_sns_rebalance_status(struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses)
static bool test_spiel_filter_service(const struct m0_conf_obj *obj)
struct m0_conf_obj cd_obj
static void test_spiel_process_services_list(void)
static uint64_t tag(uint8_t code, uint64_t id)
int m0_spiel_dix_repair_abort(struct m0_spiel *spl, const struct m0_fid *pool_fid)
M0_INTERNAL int m0_file_read(const char *path, char **out)
const struct m0_conf_obj_type M0_CONF_SERVICE_TYPE
unsigned int srs_progress
int m0_spiel_sns_repair_status(struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses)
M0_INTERNAL int m0_ha_client_del(struct m0_confc *confc)
static void spiel_fs_stats_check(const struct m0_fs_stats *stats)
int m0_spiel_service_start(struct m0_spiel *spl, const struct m0_fid *svc_fid)
M0_INTERNAL int m0_confc_init(struct m0_confc *confc, struct m0_sm_group *sm_group, const char *confd_addr, struct m0_rpc_machine *rpc_mach, const char *local_conf)
int m0_spiel_dix_repair_quiesce(struct m0_spiel *spl, const struct m0_fid *pool_fid)
M0_INTERNAL int m0_conf_diter_next_sync(struct m0_conf_diter *it, bool(*filter)(const struct m0_conf_obj *obj))
static void test_spiel_pool_rebalance(enum m0_repreb_type type)
m0_bcount_t fs_total_disk
int m0_spiel_sns_repair_abort(struct m0_spiel *spl, const struct m0_fid *pool_fid)
static struct m0_be_emap_cursor it
M0_INTERNAL void m0_confc_fini(struct m0_confc *confc)
static bool m0_addu64_will_overflow(uint64_t a, uint64_t b)
const struct m0_conf_obj_type M0_CONF_POOL_TYPE
static void test_spiel_sns_repair(void)
int m0_spiel_device_attach_state(struct m0_spiel *spl, const struct m0_fid *dev_fid, uint32_t *ha_state)
int m0_spiel_dix_rebalance_continue(struct m0_spiel *spl, const struct m0_fid *pool_fid)
M0_INTERNAL struct m0 * m0_get(void)
#define M0_SRC_PATH(name)
struct m0_spiel_bcrec ** pc_bcrec
static void test_spiel_service_order(void)
struct m0_stob_domain * sds_back_domain
int m0_spiel_dix_repair_start(struct m0_spiel *spl, const struct m0_fid *pool_fid)
enum m0_storage_dev_type sds_type
static uint64_t test_spiel_fs_stats_sdevs_total(struct m0_confc *confc, struct m0_conf_service *ios)
int m0_spiel_sns_rebalance_start(struct m0_spiel *spl, const struct m0_fid *pool_fid)
struct m0_reqh_service_type m0_confd_stype
int m0_spiel_sns_repair_start(struct m0_spiel *spl, const struct m0_fid *pool_fid)
int m0_spiel_device_format(struct m0_spiel *spl, const struct m0_fid *dev_fid)
int m0_spiel_device_detach(struct m0_spiel *spl, const struct m0_fid *dev_fid)
void test_spiel_bc_stats(void)
static void test_spiel_dix_rebalance(void)
M0_INTERNAL int m0_stob_lookup(const struct m0_stob_id *id, struct m0_stob **out)
M0_INTERNAL void m0_spiel__ut_fini(struct m0_spiel *spiel, bool cmd_iface)
static void spiel_ci_ut_init(void)
struct m0_storage_devs i_storage_devs
int m0_spiel_sns_repair_continue(struct m0_spiel *spl, const struct m0_fid *pool_fid)
int m0_spiel_process_reconfig(struct m0_spiel *spl, const struct m0_fid *proc_fid)
int m0_spiel_service_status(struct m0_spiel *spl, const struct m0_fid *svc_fid, int *status)
struct m0_spiel::m0_spiel_core spl_core
const struct m0_build_info * m0_build_info_get(void)
static void spiel_repair_start(const struct m0_fid *pool_fid, const struct m0_fid *svc_fid, enum m0_repreb_type type)
#define M0_FID_TINIT(type, container, key)
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
M0_INTERNAL int m0_conf_ut_ast_thread_fini(void)
const struct m0_fid_type cot_ftype
static void m0_fi_enable(const char *func, const char *tag)
static struct m0_stob * stob
int m0_spiel_process_stop(struct m0_spiel *spl, const struct m0_fid *proc_fid)
static struct m0_confc * confc
static void wait_for_repair_rebalance(enum m0_repreb_type type, enum m0_cm_op op, struct m0_spiel_repreb_status **status, const struct m0_fid *pool_fid, const struct m0_fid *svc_fid)
static void spiel_ci_ut_fini(void)
int m0_spiel_process_quiesce(struct m0_spiel *spl, const struct m0_fid *proc_fid)
int m0_spiel_dix_rebalance_status(struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses)
int m0_spiel_service_quiesce(struct m0_spiel *spl, const struct m0_fid *svc_fid)
static void test_spiel_pool_repair(enum m0_repreb_type type)
int m0_spiel_service_init(struct m0_spiel *spl, const struct m0_fid *svc_fid)
M0_INTERNAL void m0_stob_id_make(uint64_t container, uint64_t key, const struct m0_fid *dom_id, struct m0_stob_id *stob_id)
int m0_spiel_dix_repair_status(struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses)
struct m0_confc * spc_confc
int m0_spiel_dix_rebalance_quiesce(struct m0_spiel *spl, const struct m0_fid *pool_fid)
static uint64_t test_spiel_fs_ios_total(void)
const struct m0_conf_obj_type M0_CONF_DRIVE_TYPE
enum m0_cm_status srs_state
#define M0_CONF_CAST(ptr, type)
static struct m0_spiel spiel
#define m0_confc_open_sync(result, origin,...)
int m0_spiel_device_attach(struct m0_spiel *spl, const struct m0_fid *dev_fid)
static void test_spiel_sns_rebalance(void)
int m0_spiel_dix_repair_continue(struct m0_spiel *spl, const struct m0_fid *pool_fid)
static void spiel_ci_ut_ha_state_set(const struct m0_fid *fid, uint32_t state)
M0_INTERNAL void m0_spiel__ut_init(struct m0_spiel *spiel, const char *confd_path, bool cmd_iface)
M0_INTERNAL int m0_conf_ut_ast_thread_init(void)
int m0_spiel_service_stop(struct m0_spiel *spl, const struct m0_fid *svc_fid)
struct m0_ha_link * i_ha_link
int m0_spiel_service_health(struct m0_spiel *spl, const struct m0_fid *svc_fid)
M0_INTERNAL bool m0_fid_eq(const struct m0_fid *fid0, const struct m0_fid *fid1)
M0_INTERNAL struct m0_conf_obj * m0_conf_diter_result(const struct m0_conf_diter *it)
struct m0_reqh_service_type m0_rms_type
#define m0_conf_diter_init(iter, confc, origin,...)
void test_spiel_fs_stats(void)
static bool spiel_stob_exists(uint64_t cid)
uint32_t m0_rpc__filter_opcode[4]
static void test_spiel_process_cmds(void)
M0_INTERNAL struct m0_locality * m0_locality0_get(void)
int m0_spiel_dix_rebalance_start(struct m0_spiel *spl, const struct m0_fid *pool_fid)
M0_INTERNAL void m0_ha_link_wait_delivery(struct m0_ha_link *hl, uint64_t tag)
static void test_spiel_dix_repair(void)
int m0_spiel_process_list_services(struct m0_spiel *spl, const struct m0_fid *proc_fid, struct m0_spiel_running_svc **services)
int m0_spiel_sns_repair_quiesce(struct m0_spiel *spl, const struct m0_fid *pool_fid)
int m0_spiel_filesystem_stats_fetch(struct m0_spiel *spl, struct m0_fs_stats *stats)
M0_INTERNAL void m0_conf_diter_fini(struct m0_conf_diter *it)
int m0_spiel_process_health(struct m0_spiel *spl, const struct m0_fid *proc_fid)
static struct m0_net_test_service svc
int m0_spiel_process_lib_load(struct m0_spiel *spl, const struct m0_fid *proc_fid, const char *libname)
M0_INTERNAL int m0_ha_client_add(struct m0_confc *confc)
static void m0_fi_enable_once(const char *func, const char *tag)
M0_INTERNAL void m0_confc_close(struct m0_conf_obj *obj)
static int spiel_ci_tests_init()
const struct m0_conf_obj_type M0_CONF_PROCESS_TYPE
struct m0_fid pc_proc_fid
int m0_spiel_proc_counters_fetch(struct m0_spiel *spl, struct m0_fid *proc_fid, struct m0_proc_counter *count_stats)
M0_INTERNAL void m0_ha_state_accept(const struct m0_ha_nvec *note, bool ignore_same_state)
uint64_t sbr_object_count
M0_INTERNAL int m0_confc_readdir_sync(struct m0_conf_obj *dir, struct m0_conf_obj **pptr)
M0_INTERNAL void m0_stob_put(struct m0_stob *stob)
static const char * process_fid