Go to the source code of this file.
|
static void | ut_test_addr_is_network_aligned (void) |
|
static void | ut_test_page_size (void) |
|
static void | ut_helper_page_nr (m0_bcount_t size, m0_bcount_t bshift, uint64_t exp_pg) |
|
static void | ut_test_page_nr (void) |
|
static void | ut_test_layout_n (void) |
|
static void | ut_test_layout_k (void) |
|
static void | ut_helper_page_id (m0_bindex_t offset, m0_bcount_t bshift, uint64_t exp_pg) |
|
static void | ut_test_page_id (void) |
|
static void | ut_test_layout_unit_size (void) |
|
static void | ut_helper_rows_nr (uint64_t size, m0_bcount_t bshift, uint64_t exp_row_nr) |
|
static void | ut_test_rows_nr (void) |
|
static void | ut_test_data_size (void) |
|
static void | ut_test_pdlayout_instance (void) |
|
static void | ut_test_layout_instance (void) |
|
static void | ut_test_target_fid (void) |
|
static void | ut_test_target_offset (void) |
|
static void | ut_test_group_id (void) |
|
static void | ut_test_seg_endpos (void) |
|
static void | ut_test_indexvec_page_nr (void) |
|
static void | ut_test_iomap_page_nr (void) |
|
static void | ut_test_parity_units_page_nr (void) |
|
static void | ut_test_round_down (void) |
|
static void | ut_test_round_up (void) |
|
static void | ut_test_pdlayout_get (void) |
|
static void | ut_test_page_pos_get (void) |
|
static void | ut_test_io_desc_size (void) |
|
static void | ut_test_io_seg_size (void) |
|
static void | ut_enable_resource_manager (struct m0_client *instance) |
|
static void | ut_disable_resource_manager (struct m0_client *instance) |
|
static void | ut_test_rm_domain_get (void) |
|
static int | ut_mock_io_launch_prepare (struct m0_op_io *ioo) |
|
static int | ut_mock_io_launch_distribute (struct nw_xfer_request *xfer) |
|
static void | ut_mock_iosm_handle_launch (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
static void | ut_test_obj_io_cb_launch (void) |
|
static void | ut_test_obj_io_ast_fini (void) |
|
static void | ut_test_obj_io_cb_fini (void) |
|
static void | ut_test_m0_op_io_invariant (void) |
|
static void | ut_helper_sort_init (struct m0_indexvec *ivec, uint32_t *arr, uint32_t len) |
|
static bool | ut_helper_sort_is_sorted (struct m0_indexvec *ivec) |
|
static void | ut_helper_sort (struct m0_indexvec *ivec, uint32_t *arr, uint32_t len) |
|
static void | ut_test_segments_sort (void) |
|
static void | ut_test_obj_io_cb_free (void) |
|
static void | ut_test_m0_obj_op (void) |
|
M0_INTERNAL int | m0_io_ut_init (void) |
|
M0_INTERNAL int | m0_io_ut_fini (void) |
|
◆ DUMMY_PTR
#define DUMMY_PTR 0xdeafdead |
Definition at line 53 of file io.c.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CLIENT |
Definition at line 27 of file io.c.
◆ UT
Definition at line 22 of file io.c.
◆ UT_DEFAULT_BLOCK_SIZE
#define UT_DEFAULT_BLOCK_SIZE (1ULL << M0_DEFAULT_BUF_SHIFT) |
Definition at line 55 of file io.c.
◆ m0_io_ut_fini()
M0_INTERNAL int m0_io_ut_fini |
( |
void |
| ) |
|
Definition at line 780 of file io.c.
◆ m0_io_ut_init()
M0_INTERNAL int m0_io_ut_init |
( |
void |
| ) |
|
Definition at line 758 of file io.c.
◆ ut_disable_resource_manager()
static void ut_disable_resource_manager |
( |
struct m0_client * |
instance | ) |
|
|
static |
Releases memory allocated by enable().
Definition at line 488 of file io.c.
◆ ut_enable_resource_manager()
static void ut_enable_resource_manager |
( |
struct m0_client * |
instance | ) |
|
|
static |
Enables the access to the resource manager service. This can be considered a workaround, necessary just because client' initialisation lift does not reach levels above the confd setup.
Definition at line 471 of file io.c.
◆ ut_helper_page_id()
Definition at line 174 of file io.c.
◆ ut_helper_page_nr()
Definition at line 110 of file io.c.
◆ ut_helper_rows_nr()
static void ut_helper_rows_nr |
( |
uint64_t |
size, |
|
|
m0_bcount_t |
bshift, |
|
|
uint64_t |
exp_row_nr |
|
) |
| |
|
static |
Definition at line 221 of file io.c.
◆ ut_helper_sort()
static void ut_helper_sort |
( |
struct m0_indexvec * |
ivec, |
|
|
uint32_t * |
arr, |
|
|
uint32_t |
len |
|
) |
| |
|
static |
Helper function for ut_test_indexvec_sort(). Initialises an indexvec and checks it is correctly sorted by segments_sort().
- Parameters
-
ivec | Index vector that will be sorted. |
arr | Sequence of numbers to fill the vector with before sorting. |
len | Length of the array of numbers. |
Definition at line 644 of file io.c.
◆ ut_helper_sort_init()
static void ut_helper_sort_init |
( |
struct m0_indexvec * |
ivec, |
|
|
uint32_t * |
arr, |
|
|
uint32_t |
len |
|
) |
| |
|
static |
Helper function: Initialises an indexvec with a specific sequence of numbers.
- Parameters
-
ivec | Vector being initialised. |
arr | Sequence of numbers to initialise the vector with. |
len | Number of numbers in the provided sequence. |
Definition at line 607 of file io.c.
◆ ut_helper_sort_is_sorted()
static bool ut_helper_sort_is_sorted |
( |
struct m0_indexvec * |
ivec | ) |
|
|
static |
Helper function: Checks if the indices of an indexvec are sorted from lowest to highest.
- Parameters
-
ivec | Vector being checked. |
- Returns
- true if the indices are sorted or false otherwise.
Definition at line 623 of file io.c.
◆ ut_mock_io_launch_distribute()
◆ ut_mock_io_launch_prepare()
static int ut_mock_io_launch_prepare |
( |
struct m0_op_io * |
ioo | ) |
|
|
static |
◆ ut_mock_iosm_handle_launch()
Definition at line 524 of file io.c.
◆ ut_test_addr_is_network_aligned()
static void ut_test_addr_is_network_aligned |
( |
void |
| ) |
|
|
static |
◆ ut_test_data_size()
static void ut_test_data_size |
( |
void |
| ) |
|
|
static |
◆ ut_test_group_id()
static void ut_test_group_id |
( |
void |
| ) |
|
|
static |
◆ ut_test_indexvec_page_nr()
static void ut_test_indexvec_page_nr |
( |
void |
| ) |
|
|
static |
Definition at line 360 of file io.c.
◆ ut_test_io_desc_size()
static void ut_test_io_desc_size |
( |
void |
| ) |
|
|
static |
◆ ut_test_io_seg_size()
static void ut_test_io_seg_size |
( |
void |
| ) |
|
|
static |
◆ ut_test_iomap_page_nr()
static void ut_test_iomap_page_nr |
( |
void |
| ) |
|
|
static |
Definition at line 364 of file io.c.
◆ ut_test_layout_instance()
static void ut_test_layout_instance |
( |
void |
| ) |
|
|
static |
◆ ut_test_layout_k()
static void ut_test_layout_k |
( |
void |
| ) |
|
|
static |
Definition at line 157 of file io.c.
◆ ut_test_layout_n()
static void ut_test_layout_n |
( |
void |
| ) |
|
|
static |
Definition at line 140 of file io.c.
◆ ut_test_layout_unit_size()
static void ut_test_layout_unit_size |
( |
void |
| ) |
|
|
static |
Definition at line 204 of file io.c.
◆ ut_test_m0_obj_op()
static void ut_test_m0_obj_op |
( |
void |
| ) |
|
|
static |
Tests m0_obj_op, covering READ.
Definition at line 697 of file io.c.
◆ ut_test_m0_op_io_invariant()
static void ut_test_m0_op_io_invariant |
( |
void |
| ) |
|
|
static |
◆ ut_test_obj_io_ast_fini()
static void ut_test_obj_io_ast_fini |
( |
void |
| ) |
|
|
static |
Definition at line 572 of file io.c.
◆ ut_test_obj_io_cb_fini()
static void ut_test_obj_io_cb_fini |
( |
void |
| ) |
|
|
static |
Definition at line 576 of file io.c.
◆ ut_test_obj_io_cb_free()
static void ut_test_obj_io_cb_free |
( |
void |
| ) |
|
|
static |
◆ ut_test_obj_io_cb_launch()
static void ut_test_obj_io_cb_launch |
( |
void |
| ) |
|
|
static |
◆ ut_test_page_id()
static void ut_test_page_id |
( |
void |
| ) |
|
|
static |
Definition at line 188 of file io.c.
◆ ut_test_page_nr()
static void ut_test_page_nr |
( |
void |
| ) |
|
|
static |
Definition at line 124 of file io.c.
◆ ut_test_page_pos_get()
static void ut_test_page_pos_get |
( |
void |
| ) |
|
|
static |
◆ ut_test_page_size()
static void ut_test_page_size |
( |
void |
| ) |
|
|
static |
Definition at line 79 of file io.c.
◆ ut_test_parity_units_page_nr()
static void ut_test_parity_units_page_nr |
( |
void |
| ) |
|
|
static |
◆ ut_test_pdlayout_get()
static void ut_test_pdlayout_get |
( |
void |
| ) |
|
|
static |
◆ ut_test_pdlayout_instance()
static void ut_test_pdlayout_instance |
( |
void |
| ) |
|
|
static |
◆ ut_test_rm_domain_get()
static void ut_test_rm_domain_get |
( |
void |
| ) |
|
|
static |
◆ ut_test_round_down()
static void ut_test_round_down |
( |
void |
| ) |
|
|
static |
◆ ut_test_round_up()
static void ut_test_round_up |
( |
void |
| ) |
|
|
static |
◆ ut_test_rows_nr()
static void ut_test_rows_nr |
( |
void |
| ) |
|
|
static |
Definition at line 237 of file io.c.
◆ ut_test_seg_endpos()
static void ut_test_seg_endpos |
( |
void |
| ) |
|
|
static |
◆ ut_test_segments_sort()
static void ut_test_segments_sort |
( |
void |
| ) |
|
|
static |
◆ ut_test_target_fid()
static void ut_test_target_fid |
( |
void |
| ) |
|
|
static |
◆ ut_test_target_offset()
static void ut_test_target_offset |
( |
void |
| ) |
|
|
static |
◆ dummy_instance
Definition at line 49 of file io.c.
◆ dummy_pdclust_layout
Definition at line 50 of file io.c.
◆ ut_service
Definition at line 465 of file io.c.
◆ ut_suite_io
Definition at line 51 of file io.c.