#include <linux/version.h>
#include "m0t1fs/linux_kernel/file.c"
#include "ut/ut.h"
#include "lib/chan.h"
#include "lib/vec.h"
#include "fid/fid.h"
#include "lib/misc.h"
#include "lib/time.h"
#include "lib/finject.h"
#include "layout/layout.h"
#include "layout/linear_enum.h"
#include "fd/fd.h"
#include <linux/dcache.h>
#include "m0t1fs/linux_kernel/file_internal.h"
#include "m0t1fs/linux_kernel/m0t1fs.h"
#include "conf/helpers.h"
#include "reqh/reqh.h"
#include "lib/trace.h"
Go to the source code of this file.
|
enum | {
IOVEC_NR = 4,
IOVEC_BUF_LEN = 1024,
FILE_START_INDEX = 21340,
LAY_N = 3,
LAY_K = 1,
LAY_P = LAY_N + 2 * LAY_K,
UNIT_SIZE = 3 * PAGE_SIZE,
INDEXPG = 2000,
INDEXPG_STEP = 5000,
DATA_SIZE = UNIT_SIZE * LAY_N,
FID_KEY = 3,
ATTR_A_CONST = 1,
ATTR_B_CONST = 1,
DGMODE_IOVEC_NR = 8
} |
|
◆ LOCAL_EP
#define LOCAL_EP "0@lo:12345:45:1" |
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_M0T1FS |
◆ anonymous enum
Enumerator |
---|
IOVEC_NR | |
IOVEC_BUF_LEN | |
FILE_START_INDEX | |
LAY_N | |
LAY_K | |
LAY_P | |
UNIT_SIZE | |
INDEXPG | |
INDEXPG_STEP | |
DATA_SIZE | |
FID_KEY | |
ATTR_A_CONST | |
ATTR_B_CONST | |
DGMODE_IOVEC_NR | |
Definition at line 58 of file file.c.
◆ ast_thread()
static void ast_thread |
( |
struct m0t1fs_sb * |
csb | ) |
|
|
static |
◆ ast_thread_stop()
static void ast_thread_stop |
( |
struct m0t1fs_sb * |
csb | ) |
|
|
static |
◆ dgmode_readio_test()
static void dgmode_readio_test |
( |
void |
| ) |
|
|
static |
◆ ds_test()
static void ds_test |
( |
void |
| ) |
|
|
static |
◆ dummy_readrest()
◆ file_io_ut_fini()
static int file_io_ut_fini |
( |
void |
| ) |
|
|
static |
◆ file_io_ut_init()
static int file_io_ut_init |
( |
void |
| ) |
|
|
static |
◆ fsync_test()
◆ helpers_test()
static void helpers_test |
( |
void |
| ) |
|
|
static |
◆ M0_TL_DECLARE()
◆ M0_TL_DESCR_DECLARE()
M0_TL_DESCR_DECLARE |
( |
rpcbulk |
, |
|
|
M0_EXTERN |
|
|
) |
| |
◆ m0t1fs_ha_fini()
void m0t1fs_ha_fini |
( |
struct m0t1fs_sb * |
csb | ) |
|
Clears global HA session info and terminates rpc session to HA service.
Definition at line 507 of file super.c.
◆ m0t1fs_ha_init()
int m0t1fs_ha_init |
( |
struct m0t1fs_sb * |
csb, |
|
|
const char * |
ha_addr |
|
) |
| |
Establishes rpc session to HA service. The session is set up to be used globally.
Definition at line 478 of file super.c.
◆ m0t1fs_net_fini()
void m0t1fs_net_fini |
( |
struct m0t1fs_sb * |
csb | ) |
|
◆ m0t1fs_net_init()
int m0t1fs_net_init |
( |
struct m0t1fs_sb * |
csb, |
|
|
const char * |
ep |
|
) |
| |
◆ m0t1fs_rm_service_start()
int m0t1fs_rm_service_start |
( |
struct m0t1fs_sb * |
csb | ) |
|
◆ m0t1fs_rpc_fini()
void m0t1fs_rpc_fini |
( |
struct m0t1fs_sb * |
csb | ) |
|
◆ m0t1fs_rpc_init()
int m0t1fs_rpc_init |
( |
struct m0t1fs_sb * |
csb, |
|
|
const char * |
ep |
|
) |
| |
◆ nw_xfer_ops_test()
static void nw_xfer_ops_test |
( |
void |
| ) |
|
|
static |
◆ pargrp_iomap_test()
static void pargrp_iomap_test |
( |
void |
| ) |
|
|
static |
◆ target_ioreq_test()
static void target_ioreq_test |
( |
void |
| ) |
|
|
static |
◆ ci
◆ confc
struct m0_confc* confc = &csb.csb_reqh.rh_rconfc.rc_confc |
|
static |
◆ conn
◆ creditor
◆ csb
◆ dgvec_tmp
◆ file_io_ut
Initial value:= {
.ts_name = "file-io-ut",
.ts_tests = {
{
"basic_data_structures_test",
ds_test},
},
}
static int file_io_ut_init(void)
static void dgmode_readio_test(void)
static void ds_test(void)
static void nw_xfer_ops_test(void)
static void helpers_test(void)
static void target_ioreq_test(void)
static int file_io_ut_fini(void)
static void pargrp_iomap_test(void)
Definition at line 1259 of file file.c.
◆ lfile
◆ llattr
◆ llenum
◆ local_conf
◆ map
◆ pdattr
◆ pdlay
◆ req
◆ runast
◆ sb