#include <stdlib.h>
#include "lib/arith.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/mutex.h"
#include "lib/string.h"
#include "ut/stob.h"
#include "ut/ut.h"
#include "stob/domain.h"
#include "stob/io.h"
#include "stob/stob.h"
Go to the source code of this file.
◆ ST_ID
#define ST_ID |
( |
|
id | ) |
.st_stob_key = id |
◆ WITH_LOCK
Value:({ \
m0_mutex_lock(lk); \
m0_mutex_unlock(lk); \
})
static struct m0_mutex lock
Definition at line 36 of file stobio.c.
◆ anonymous enum
Enumerator |
---|
RW_BUFF_NR | |
MIN_BUFF_SIZE | |
MIN_BUFF_SIZE_IN_BLOCKS | |
TEST_NR | |
Definition at line 43 of file stobio.c.
◆ anonymous enum
Enumerator |
---|
M0_STOB_UT_DOM_KEY | |
M0_STOB_UT_DOM_DIO_KEY | |
Definition at line 50 of file stobio.c.
◆ m0_stob_ut_stobio_linux()
void m0_stob_ut_stobio_linux |
( |
void |
| ) |
|
◆ m0_stob_ut_stobio_perf()
void m0_stob_ut_stobio_perf |
( |
void |
| ) |
|
◆ overlapped_rw_test()
static void overlapped_rw_test |
( |
struct stobio_test * |
test, |
|
|
int |
starts_from |
|
) |
| |
|
static |
◆ stob_backingfile_get()
static char* stob_backingfile_get |
( |
const struct stobio_test * |
test | ) |
|
|
static |
◆ stob_dev_fini()
static void stob_dev_fini |
( |
const struct stobio_test * |
test | ) |
|
|
static |
◆ stob_dev_init()
static void stob_dev_init |
( |
const struct stobio_test * |
test | ) |
|
|
static |
◆ stobio_fini()
◆ stobio_init()
◆ stobio_io_prepare()
◆ stobio_read()
◆ stobio_read_prepare()
◆ stobio_rw_buffs_fini()
static void stobio_rw_buffs_fini |
( |
struct stobio_test * |
test | ) |
|
|
static |
◆ stobio_rw_buffs_init()
static void stobio_rw_buffs_init |
( |
struct stobio_test * |
test | ) |
|
|
static |
◆ stobio_rwsegs_overlapped_prepare()
static void stobio_rwsegs_overlapped_prepare |
( |
struct stobio_test * |
test, |
|
|
int |
starts_from |
|
) |
| |
|
static |
◆ stobio_rwsegs_prepare()
static void stobio_rwsegs_prepare |
( |
struct stobio_test * |
test, |
|
|
int |
starts_from |
|
) |
| |
|
static |
◆ stobio_storage_fini()
static void stobio_storage_fini |
( |
void |
| ) |
|
|
static |
◆ stobio_storage_init()
static int stobio_storage_init |
( |
void |
| ) |
|
|
static |
◆ stobio_write()
◆ stobio_write_prepare()
◆ test_short_read()
static void test_short_read |
( |
void |
| ) |
|
|
static |
◆ test_single_ivec()
static void test_single_ivec |
( |
| ) |
|
|
static |
◆ test_stobio()
static void test_stobio |
( |
void |
| ) |
|
|
static |
◆ linux_location
const char linux_location[] = "linuxstob:./__s" |
|
static |
◆ linux_location_dio
const char linux_location_dio[] = "linuxstob:./__s_dio" |
|
static |
◆ lock
◆ perf_location
const char perf_location[] = "perfstob:./__s" |
|
static |
◆ perf_location_dio
const char perf_location_dio[] = "perfstob:./__s_dio" |
|
static |
◆ test_blkdev
const char test_blkdev[] = "/dev/loop0" |
|
static |
◆ test_dom
◆ test_dom_dio
◆ test_location
const char* test_location |
|
static |
◆ test_location_dio
const char* test_location_dio |
|
static |
◆ tests
Initial value:= {
[0] = {
ST_ID(0x01), .st_directio =
false },
[1] = {
ST_ID(0x02), .st_directio =
false },
[2] = {
ST_ID(0x03), .st_directio =
false },
[3] = {
ST_ID(0x04), .st_directio =
false },
[4] = {
ST_ID(0x05), .st_directio =
false },
[5] = {
ST_ID(0x06), .st_directio =
true },
[6] = {
ST_ID(0x07), .st_directio =
true },
[7] = {
ST_ID(0x08), .st_directio =
true },
[8] = {
ST_ID(0x09), .st_directio =
true },
[9] = {
ST_ID(0x0a), .st_directio =
true, .st_dev_path=
"/dev/loop0" },
}
Definition at line 101 of file stobio.c.
◆ thread