#include "lib/trace.h"
#include "be/log_store.h"
#include "be/op.h"
#include "be/log_sched.h"
#include "lib/misc.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/string.h"
#include "ut/ut.h"
#include "ut/stob.h"
#include "stob/domain.h"
#include "stob/stob.h"
Go to the source code of this file.
◆ BE_UT_LOG_STORE_SDOM_INIT_CFG
#define BE_UT_LOG_STORE_SDOM_INIT_CFG "directio=true" |
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
◆ anonymous enum
Enumerator |
---|
BE_UT_LOG_STORE_STOB_DOMAIN_KEY | |
BE_UT_LOG_STORE_STOB_KEY_BEGIN | |
BE_UT_LOG_STORE_SIZE | |
BE_UT_LOG_STORE_NR | |
BE_UT_LOG_STORE_RBUF_NR | |
BE_UT_LOG_STORE_RBUF_SIZE | |
Definition at line 259 of file log_store.c.
◆ anonymous enum
Enumerator |
---|
BE_UT_LOG_STORE_IO_WINDOW_STEP | |
BE_UT_LOG_STORE_IO_WINDOW_STEP_NR | |
Definition at line 441 of file log_store.c.
◆ anonymous enum
Enumerator |
---|
BE_UT_LOG_STORE_IO_DISCARD_STEP | |
BE_UT_LOG_STORE_IO_DISCARD_STEP_NR | |
Definition at line 474 of file log_store.c.
◆ anonymous enum
Enumerator |
---|
BE_UT_LOG_STORE_IO_TRANSLATE_STEP | |
BE_UT_LOG_STORE_IO_TRANSLATE_STEP_NR | |
BE_UT_LOG_STORE_IO_NR | |
Definition at line 504 of file log_store.c.
◆ be_ut_log_store_io_discard()
static void be_ut_log_store_io_discard |
( |
struct m0_be_log_store * |
ls, |
|
|
bool |
first_run |
|
) |
| |
|
static |
◆ be_ut_log_store_io_intersect_check()
static void be_ut_log_store_io_intersect_check |
( |
struct m0_be_log_io ** |
lio, |
|
|
unsigned |
nr |
|
) |
| |
|
static |
◆ be_ut_log_store_io_translate()
static void be_ut_log_store_io_translate |
( |
struct m0_be_log_store * |
ls, |
|
|
bool |
first_run |
|
) |
| |
|
static |
◆ be_ut_log_store_io_window()
static void be_ut_log_store_io_window |
( |
struct m0_be_log_store * |
ls, |
|
|
bool |
first_run |
|
) |
| |
|
static |
◆ be_ut_log_store_length_generate()
static void be_ut_log_store_length_generate |
( |
m0_bcount_t * |
io_length, |
|
|
unsigned |
nr, |
|
|
uint64_t * |
seed |
|
) |
| |
|
static |
◆ be_ut_log_store_rbuf()
static void be_ut_log_store_rbuf |
( |
struct m0_be_log_store * |
ls, |
|
|
bool |
first_run |
|
) |
| |
|
static |
◆ be_ut_log_store_stob_domain_fini()
static void be_ut_log_store_stob_domain_fini |
( |
struct m0_stob_domain * |
sdom | ) |
|
|
static |
◆ be_ut_log_store_stob_domain_init()
static void be_ut_log_store_stob_domain_init |
( |
struct m0_stob_domain ** |
sdom | ) |
|
|
static |
◆ be_ut_log_store_test()
static void be_ut_log_store_test |
( |
void(*)(struct m0_be_log_store *ls, bool first_run) |
func | ) |
|
|
static |
◆ m0_be_ut_log_store_create_random()
void m0_be_ut_log_store_create_random |
( |
void |
| ) |
|
◆ m0_be_ut_log_store_create_simple()
void m0_be_ut_log_store_create_simple |
( |
void |
| ) |
|
- Todo:
- use ls_cfg_create and ls_cfg_open to test that create parameters aren't used in open()
Definition at line 311 of file log_store.c.
◆ m0_be_ut_log_store_io_discard()
void m0_be_ut_log_store_io_discard |
( |
void |
| ) |
|
◆ m0_be_ut_log_store_io_translate()
void m0_be_ut_log_store_io_translate |
( |
void |
| ) |
|
◆ m0_be_ut_log_store_io_window()
void m0_be_ut_log_store_io_window |
( |
void |
| ) |
|
◆ m0_be_ut_log_store_rbuf()
void m0_be_ut_log_store_rbuf |
( |
void |
| ) |
|
◆ be_ut_log_store_cfg
Initial value:= {
.lsc_stob_domain_location = "linuxstob:./log_store-tmp",
.lsc_stob_domain_key = 0x1000,
.lsc_stob_domain_create_cfg =
NULL,
.lsc_stob_create_cfg =
NULL,
}
#define BE_UT_LOG_STORE_SDOM_INIT_CFG
Definition at line 275 of file log_store.c.
◆ be_ut_log_store_sdom_create_cfg
const char* be_ut_log_store_sdom_create_cfg = "" |
|
static |
◆ be_ut_log_store_sdom_init_cfg
const char* be_ut_log_store_sdom_init_cfg |
|
static |
Initial value:=
#define BE_UT_LOG_STORE_SDOM_INIT_CFG
Definition at line 271 of file log_store.c.
◆ be_ut_log_store_sdom_location
const char* be_ut_log_store_sdom_location = "linuxstob:./log_store" |
|
static |