#include <sys/stat.h>
#include <sys/types.h>
#include "lib/processor.h"
#include "lib/locality.h"
#include "lib/finject.h"
#include "ut/ut.h"
#include "bulkio_common.h"
#include "net/lnet/lnet.h"
#include "rpc/rpclib.h"
#include "ioservice/io_fops.c"
#include "ioservice/io_foms.c"
#include "motr/setup.h"
#include "motr/setup_internal.h"
#include "pool/pool.h"
#include "fop/fom_generic.c"
Go to the source code of this file.
|
void | bulkioapi_test (void) |
|
static int | io_fop_server_write_fom_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh) |
|
static int | ut_io_fom_cob_rw_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh) |
|
static int | io_fop_server_read_fom_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh) |
|
static int | io_fop_stob_create_fom_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh) |
|
static int | check_write_fom_tick (struct m0_fom *fom) |
|
static int | check_read_fom_tick (struct m0_fom *fom) |
|
static void | bulkio_stob_fom_fini (struct m0_fom *fom) |
|
struct m0_net_buffer_pool * | ut_get_buffer_pool (struct m0_fom *fom) |
|
static int | bulkio_server_write_fom_tick (struct m0_fom *fom) |
|
static int | bulkio_server_read_fom_tick (struct m0_fom *fom) |
|
static int | ut_io_fom_cob_rw_state (struct m0_fom *fom) |
|
static void | empty_buffers_pool (uint32_t colour) |
|
static void | release_one_buffer (uint32_t colour) |
|
static void | fill_buffers_pool (uint32_t colour) |
|
static void | builkio_ut_stob_get (struct m0_io_fom_cob_rw *fom_obj) |
|
static void | fom_phase_set (struct m0_fom *fom, int phase) |
|
static int | bulkio_stob_create_fom_tick (struct m0_fom *fom) |
|
static void | bulkio_stob_create (void) |
|
static void | io_fops_submit (uint32_t index, enum M0_RPC_OPCODES op) |
|
static void | io_single_fop_submit (enum M0_RPC_OPCODES op) |
|
static void | bulkio_server_single_read_write (void) |
|
static void | bulkio_server_write_fol_rec_verify (void) |
|
static void | bulkio_server_write_fol_rec_undo_verify (void) |
|
static void | bulkio_server_read_write_state_test (void) |
|
static void | bulkio_server_rw_state_transition_test (void) |
|
static void | bulkio_server_fsync_multiple_read_write (void) |
|
static void | bulkio_server_multiple_read_write (void) |
|
static void | add_buffer_bulk (struct m0_rpc_bulk *rbulk, enum M0_RPC_OPCODES op, int index) |
|
static void | fop_create_populate (int index, enum M0_RPC_OPCODES op, int buf_nr) |
|
static void | bulkio_server_read_write_multiple_nb (void) |
|
static void | bulkio_init (void) |
|
static void | bulkio_fini (void) |
|
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_IOSERVICE |
◆ WRITE_FOP_DATA
◆ fom_state_transition_tests
Enumerator |
---|
TEST00 | |
TEST01 | |
TEST02 | |
TEST03 | |
TEST07 | |
TEST10 | |
TEST11 | |
TEST12 | |
Definition at line 248 of file bulkio_ut.c.
◆ add_buffer_bulk()
◆ builkio_ut_stob_get()
◆ bulkio_fini()
static void bulkio_fini |
( |
void |
| ) |
|
|
static |
◆ bulkio_init()
static void bulkio_init |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_fsync_multiple_read_write()
static void bulkio_server_fsync_multiple_read_write |
( |
void |
| ) |
|
|
static |
Sends several read/write fops to the ioservice and keeps the ID of the last transaction generated by them. The received ID is then used to send an fsync fop request that commits transactions that are lingering in the ioservice.
Definition at line 1535 of file bulkio_ut.c.
◆ bulkio_server_multiple_read_write()
static void bulkio_server_multiple_read_write |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_read_fom_tick()
static int bulkio_server_read_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ bulkio_server_read_write_multiple_nb()
static void bulkio_server_read_write_multiple_nb |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_read_write_state_test()
static void bulkio_server_read_write_state_test |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_rw_state_transition_test()
static void bulkio_server_rw_state_transition_test |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_single_read_write()
static void bulkio_server_single_read_write |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_write_fol_rec_undo_verify()
static void bulkio_server_write_fol_rec_undo_verify |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_write_fol_rec_verify()
static void bulkio_server_write_fol_rec_verify |
( |
void |
| ) |
|
|
static |
◆ bulkio_server_write_fom_tick()
static int bulkio_server_write_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ bulkio_stob_create()
static void bulkio_stob_create |
( |
void |
| ) |
|
|
static |
◆ bulkio_stob_create_fom_tick()
static int bulkio_stob_create_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ bulkio_stob_fom_fini()
static void bulkio_stob_fom_fini |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ bulkioapi_test()
void bulkioapi_test |
( |
void |
| ) |
|
◆ check_read_fom_tick()
static int check_read_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ check_write_fom_tick()
static int check_write_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ empty_buffers_pool()
static void empty_buffers_pool |
( |
uint32_t |
colour | ) |
|
|
static |
◆ fill_buffers_pool()
static void fill_buffers_pool |
( |
uint32_t |
colour | ) |
|
|
static |
◆ fom_phase_set()
static void fom_phase_set |
( |
struct m0_fom * |
fom, |
|
|
int |
phase |
|
) |
| |
|
static |
◆ fop_create_populate()
static void fop_create_populate |
( |
int |
index, |
|
|
enum M0_RPC_OPCODES |
op, |
|
|
int |
buf_nr |
|
) |
| |
|
static |
◆ io_fop_server_read_fom_create()
static int io_fop_server_read_fom_create |
( |
struct m0_fop * |
fop, |
|
|
struct m0_fom ** |
m, |
|
|
struct m0_reqh * |
reqh |
|
) |
| |
|
static |
◆ io_fop_server_write_fom_create()
static int io_fop_server_write_fom_create |
( |
struct m0_fop * |
fop, |
|
|
struct m0_fom ** |
m, |
|
|
struct m0_reqh * |
reqh |
|
) |
| |
|
static |
◆ io_fop_stob_create_fom_create()
static int io_fop_stob_create_fom_create |
( |
struct m0_fop * |
fop, |
|
|
struct m0_fom ** |
m, |
|
|
struct m0_reqh * |
reqh |
|
) |
| |
|
static |
◆ io_fops_submit()
◆ io_single_fop_submit()
◆ release_one_buffer()
static void release_one_buffer |
( |
uint32_t |
colour | ) |
|
|
static |
◆ ut_get_buffer_pool()
◆ ut_io_fom_cob_rw_create()
static int ut_io_fom_cob_rw_create |
( |
struct m0_fop * |
fop, |
|
|
struct m0_fom ** |
m, |
|
|
struct m0_reqh * |
reqh |
|
) |
| |
|
static |
◆ ut_io_fom_cob_rw_state()
static int ut_io_fom_cob_rw_state |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ bp
◆ buf_pool
◆ bulkio_server_read_fom_ops
const struct m0_fom_ops bulkio_server_read_fom_ops |
|
static |
Initial value:= {
}
static int bulkio_server_read_fom_tick(struct m0_fom *fom)
static void m0_io_fom_cob_rw_fini(struct m0_fom *fom)
static size_t m0_io_fom_cob_rw_locality_get(const struct m0_fom *fom)
Definition at line 1146 of file bulkio_ut.c.
◆ bulkio_server_read_fomt_ops
Initial value:= {
}
static int io_fop_server_read_fom_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
Definition at line 83 of file bulkio_ut.c.
◆ bulkio_server_read_fop_ut_ops
Initial value:= {
}
static void io_fop_desc_get(struct m0_fop *fop, struct m0_net_buf_desc_data **desc)
static void io_fop_replied(struct m0_fop *fop, struct m0_fop *bkpfop)
static int io_fop_coalesce(struct m0_fop *res_fop, uint64_t size)
Definition at line 73 of file bulkio_ut.c.
◆ bulkio_server_ut
◆ bulkio_server_write_fom_ops
const struct m0_fom_ops bulkio_server_write_fom_ops |
|
static |
Initial value:= {
}
static int bulkio_server_write_fom_tick(struct m0_fom *fom)
static void m0_io_fom_cob_rw_fini(struct m0_fom *fom)
static size_t m0_io_fom_cob_rw_locality_get(const struct m0_fom *fom)
Definition at line 1134 of file bulkio_ut.c.
◆ bulkio_server_write_fomt_ops
Initial value:= {
}
static int io_fop_server_write_fom_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
Definition at line 79 of file bulkio_ut.c.
◆ bulkio_server_write_fop_ut_ops
Initial value:= {
}
static void io_fop_desc_get(struct m0_fop *fop, struct m0_net_buf_desc_data **desc)
static void io_fop_replied(struct m0_fop *fop, struct m0_fop *bkpfop)
static int io_fop_coalesce(struct m0_fop *res_fop, uint64_t size)
Definition at line 67 of file bulkio_ut.c.
◆ bulkio_stob_create_fom_ops
const struct m0_fom_ops bulkio_stob_create_fom_ops |
|
static |
Initial value:= {
}
static void bulkio_stob_fom_fini(struct m0_fom *fom)
static int bulkio_stob_create_fom_tick(struct m0_fom *fom)
static size_t m0_io_fom_cob_rw_locality_get(const struct m0_fom *fom)
Definition at line 1128 of file bulkio_ut.c.
◆ bulkio_stob_create_fomt_ops
Initial value:= {
}
static int io_fop_stob_create_fom_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
Definition at line 87 of file bulkio_ut.c.
◆ bulkio_stob_create_ops
Initial value:= {
}
static void io_fop_desc_get(struct m0_fop *fop, struct m0_net_buf_desc_data **desc)
static void io_fop_replied(struct m0_fop *fop, struct m0_fop *bkpfop)
static int io_fop_coalesce(struct m0_fop *res_fop, uint64_t size)
Definition at line 61 of file bulkio_ut.c.
◆ bulkio_stob_created
bool bulkio_stob_created = false |
|
static |
◆ fol_check_enabled
bool fol_check_enabled = false |
|
static |
◆ nb_list
◆ nb_nr
◆ next_read_test
◆ next_write_test
◆ payload_buf
◆ ut_io_fom_cob_rw_ops
Initial value:= {
}
static int ut_io_fom_cob_rw_state(struct m0_fom *fom)
static void m0_io_fom_cob_rw_fini(struct m0_fom *fom)
static size_t m0_io_fom_cob_rw_locality_get(const struct m0_fom *fom)
Definition at line 1140 of file bulkio_ut.c.
◆ ut_io_fom_cob_rw_type_ops
Initial value:= {
}
static int ut_io_fom_cob_rw_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
Definition at line 91 of file bulkio_ut.c.