#include "ha/note.h"
#include "conf/pvers.h"
#include "conf/obj_ops.h"
#include "conf/helpers.h"
#include "rpc/rpclib.h"
#include "ha/note.c"
#include "lib/trace.h"
#include "lib/fs.h"
#include "lib/finject.h"
#include "ut/misc.h"
#include "ut/ut.h"
Go to the source code of this file.
|
enum | {
CLIENT_COB_DOM_ID = 16,
SESSION_SLOTS = 1,
MAX_RPCS_IN_FLIGHT = 1,
NR_EQUEUE_LENGTH = 5,
NR_FAILURES = 10,
NR_OVERLAP = 5,
NR_NO_OVERLAP = 10,
NR_NODES = 10,
NR_DISKS = 200,
MAX_FAILURES = 20,
NR_SPARE = 20
} |
|
◆ CLIENT_DB_NAME
#define CLIENT_DB_NAME "ha_ut_client.db" |
◆ CLIENT_ENDPOINT_ADDR
#define CLIENT_ENDPOINT_ADDR "0@lo:12345:34:*" |
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_HA |
◆ SERVER_ADDB_STOB_NAME
#define SERVER_ADDB_STOB_NAME "linuxstob:ha_ut_confd_server.addb_stob" |
◆ SERVER_DB_NAME
#define SERVER_DB_NAME "ha_ut_confd_server.db" |
◆ SERVER_ENDPOINT
◆ SERVER_ENDPOINT_ADDR
#define SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" |
◆ SERVER_LOG_NAME
#define SERVER_LOG_NAME "ha_ut_confd_server.log" |
◆ SERVER_STOB_NAME
#define SERVER_STOB_NAME "ha_ut_confd_server.stob" |
◆ anonymous enum
Enumerator |
---|
CLIENT_COB_DOM_ID | |
SESSION_SLOTS | |
MAX_RPCS_IN_FLIGHT | |
NR_EQUEUE_LENGTH | |
NR_FAILURES | |
NR_OVERLAP | |
NR_NO_OVERLAP | |
NR_NODES | |
NR_DISKS | |
MAX_FAILURES | |
NR_SPARE | |
Definition at line 52 of file note.c.
◆ ast_thread()
static void ast_thread |
( |
int _ |
M0_UNUSED | ) |
|
|
static |
◆ ast_thread_fini()
static void ast_thread_fini |
( |
void |
| ) |
|
|
static |
◆ ast_thread_init()
static int ast_thread_init |
( |
void |
| ) |
|
|
static |
◆ check_pver_subtree()
static void check_pver_subtree |
( |
struct m0_confc * |
confc, |
|
|
const struct m0_fid * |
pver_fid |
|
) |
| |
|
static |
Ensures that pver subtree exists and is traversable.
Definition at line 362 of file note.c.
◆ compare_ha_state()
◆ done_get_chan_fini()
static void done_get_chan_fini |
( |
void |
| ) |
|
|
static |
◆ done_get_chan_init()
static void done_get_chan_init |
( |
void |
| ) |
|
|
static |
◆ ha_state_accept_1()
static void ha_state_accept_1 |
( |
const struct m0_fid * |
fid, |
|
|
uint32_t |
state |
|
) |
| |
|
static |
◆ ha_state_ut_fini()
static int ha_state_ut_fini |
( |
void |
| ) |
|
|
static |
◆ ha_state_ut_init()
static int ha_state_ut_init |
( |
void |
| ) |
|
|
static |
◆ ha_ut_conf_fini()
static void ha_ut_conf_fini |
( |
struct m0_reqh * |
reqh | ) |
|
|
static |
◆ ha_ut_conf_init()
static void ha_ut_conf_init |
( |
struct m0_reqh * |
reqh | ) |
|
|
static |
◆ ha_ut_pver_kind_check()
◆ local_confc_init()
static void local_confc_init |
( |
struct m0_confc * |
confc | ) |
|
|
static |
◆ pm_event_construct_and_apply()
static int pm_event_construct_and_apply |
( |
struct m0_poolmach * |
pm, |
|
|
uint32_t |
dev_idx, |
|
|
uint32_t |
state |
|
) |
| |
|
static |
◆ pool_machine_fid_populate()
static void pool_machine_fid_populate |
( |
struct m0_poolmach * |
pool_mach | ) |
|
|
static |
◆ recd_disks()
static uint32_t recd_disks |
( |
const struct m0_conf_pver * |
pver | ) |
|
|
static |
◆ start_rpc_client_and_server()
static void start_rpc_client_and_server |
( |
void |
| ) |
|
|
static |
◆ stop_rpc_client_and_server()
static void stop_rpc_client_and_server |
( |
void |
| ) |
|
|
static |
◆ test_failvec_fetch()
static void test_failvec_fetch |
( |
void |
| ) |
|
|
static |
◆ test_ha_session_states()
static void test_ha_session_states |
( |
void |
| ) |
|
|
static |
◆ test_ha_state_accept()
static void test_ha_state_accept |
( |
void |
| ) |
|
|
static |
◆ test_ha_state_set_and_get()
static void test_ha_state_set_and_get |
( |
void |
| ) |
|
|
static |
◆ test_is_objv()
static bool test_is_objv |
( |
const struct m0_conf_obj * |
obj | ) |
|
|
static |
◆ test_poolversion_get()
static void test_poolversion_get |
( |
void |
| ) |
|
|
static |
◆ cctx
Initial value:= {
}
#define SERVER_ENDPOINT_ADDR
#define CLIENT_ENDPOINT_ADDR
static struct m0_net_domain client_net_dom
struct m0_fid g_process_fid
Definition at line 66 of file note.c.
◆ chan
◆ chan_lock
◆ client_net_dom
◆ clink
◆ g_ast
◆ g_grp
◆ ha_state_ut
Initial value:= {
.ts_name = "ha-state-ut",
.ts_tests = {
}
}
static void test_poolversion_get(void)
static void test_failvec_fetch(void)
static int ha_state_ut_fini(void)
static void test_ha_state_set_and_get(void)
static void test_ha_state_accept(void)
static int ha_state_ut_init(void)
static void test_ha_session_states(void)
Definition at line 637 of file note.c.
◆ reqh_args
Initial value:= {
.rhia_mdstore = (void *)1
}
#define M0_FID_TINIT(type, container, key)
Definition at line 89 of file note.c.
◆ root
◆ run
◆ sctx
Initial value:= {
.rsx_xprts_nr = 1,
}
static char * server_argv[]
Definition at line 82 of file note.c.
◆ server_argv
Initial value:= {
}
#define SERVER_ENDPOINT_ADDR
#define SERVER_ADDB_STOB_NAME
#define M0_UT_CONF_PROCESS
Definition at line 74 of file note.c.
◆ thread