Motr  M0
io_req.c File Reference
#include "layout/layout.h"
#include "lib/trace.h"
#include "lib/uuid.h"
#include "lib/finject.h"
#include "ioservice/fid_convert.h"
#include "ut/ut.h"
#include "motr/ut/client.h"
#include <openssl/md5.h>
#include "motr/io_req.c"
#include "layout/layout_internal.h"
Include dependency graph for io_req.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT
 

Functions

static void ut_test_ioreq_sm_state (void)
 
static void ut_test_ioreq_sm_state_set_locked (void)
 
static void ut_test_ioreq_sm_failed_locked (void)
 
static int ut_mock_handle_launch_dispatch (struct nw_xfer_request *xfer)
 
static int ut_mock_handle_executed_adc (struct m0_op_io *ioo, enum copy_direction dir, enum page_attr filter)
 
static int ut_mock_ioreq_parity_recalc (struct m0_op_io *ioo)
 
void ut_mock_handle_executed_complete (struct nw_xfer_request *xfer, bool rmw)
 
static void ut_mock_ioreq_iosm_handle_executed (struct m0_sm_group *grp, struct m0_sm_ast *ast)
 
static void ut_test_ioreq_iosm_handle_launch (void)
 
static int ut_mock_ioreq_dgmode_read (struct m0_op_io *ioo, bool rmw)
 
static int ut_mock_ioreq_dgmode_write (struct m0_op_io *ioo, bool rmw)
 
static int ut_mock_ioreq_dgmode_recover (struct m0_op_io *ioo)
 
static int ut_mock_ioreq_parity_verify (struct m0_op_io *ioo)
 
static void ut_test_ioreq_iosm_handle_executed (void)
 
static void ut_test_ioreq_iomaps_destroy (void)
 
static void ut_test_ioreq_iomaps_prepare (void)
 
static void ut_test_data_buf_copy (void)
 
static void ut_test_application_data_copy (void)
 
static void ut_test_ioreq_parity_recalc (void)
 
static void ut_test_ioreq_application_data_copy (void)
 
static void ut_test_device_check (void)
 
static int ut_mock_io_launch_distribute (struct nw_xfer_request *xfer)
 
static void ut_test_ioreq_dgmode_read (void)
 
static void ut_test_ioreq_dgmode_write (void)
 
static void ut_test_ioreq_dgmode_recover (void)
 
M0_INTERNAL int ut_io_req_init (void)
 
M0_INTERNAL int ut_io_req_fini (void)
 

Variables

struct m0_ut_suite ut_suite_io_req
 
static struct m0_clientdummy_instance
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT

Definition at line 25 of file io_req.c.

Function Documentation

◆ ut_io_req_fini()

M0_INTERNAL int ut_io_req_fini ( void  )

Definition at line 1296 of file io_req.c.

Here is the call graph for this function:

◆ ut_io_req_init()

M0_INTERNAL int ut_io_req_init ( void  )

Definition at line 1272 of file io_req.c.

Here is the call graph for this function:

◆ ut_mock_handle_executed_adc()

static int ut_mock_handle_executed_adc ( struct m0_op_io ioo,
enum copy_direction  dir,
enum page_attr  filter 
)
static

Definition at line 126 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_handle_executed_complete()

void ut_mock_handle_executed_complete ( struct nw_xfer_request xfer,
bool  rmw 
)

Definition at line 145 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_handle_launch_dispatch()

static int ut_mock_handle_launch_dispatch ( struct nw_xfer_request xfer)
static

Definition at line 118 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_io_launch_distribute()

static int ut_mock_io_launch_distribute ( struct nw_xfer_request xfer)
static

Helper callback for ut_test_obj_io_cb_launch().

Definition at line 1128 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_ioreq_dgmode_read()

static int ut_mock_ioreq_dgmode_read ( struct m0_op_io ioo,
bool  rmw 
)
static

Definition at line 373 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_ioreq_dgmode_recover()

static int ut_mock_ioreq_dgmode_recover ( struct m0_op_io ioo)
static

Definition at line 393 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_ioreq_dgmode_write()

static int ut_mock_ioreq_dgmode_write ( struct m0_op_io ioo,
bool  rmw 
)
static

Definition at line 383 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_ioreq_iosm_handle_executed()

static void ut_mock_ioreq_iosm_handle_executed ( struct m0_sm_group grp,
struct m0_sm_ast ast 
)
static

Definition at line 152 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_ioreq_parity_recalc()

static int ut_mock_ioreq_parity_recalc ( struct m0_op_io ioo)
static

Definition at line 138 of file io_req.c.

Here is the caller graph for this function:

◆ ut_mock_ioreq_parity_verify()

static int ut_mock_ioreq_parity_verify ( struct m0_op_io ioo)
static

Definition at line 398 of file io_req.c.

Here is the caller graph for this function:

◆ ut_test_application_data_copy()

static void ut_test_application_data_copy ( void  )
static

Tests application_data_copy().

Definition at line 755 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_data_buf_copy()

static void ut_test_data_buf_copy ( void  )
static

Tests data_buf_copy().

Definition at line 677 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_device_check()

static void ut_test_device_check ( void  )
static

Definition at line 1078 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_application_data_copy()

static void ut_test_ioreq_application_data_copy ( void  )
static

Definition at line 917 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_dgmode_read()

static void ut_test_ioreq_dgmode_read ( void  )
static

Definition at line 1133 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_dgmode_recover()

static void ut_test_ioreq_dgmode_recover ( void  )
static

Definition at line 1240 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_dgmode_write()

static void ut_test_ioreq_dgmode_write ( void  )
static

Definition at line 1186 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_iomaps_destroy()

static void ut_test_ioreq_iomaps_destroy ( void  )
static

Tests ioreq_iomaps_destroy().

Definition at line 649 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_iomaps_prepare()

static void ut_test_ioreq_iomaps_prepare ( void  )
static

Definition at line 670 of file io_req.c.

◆ ut_test_ioreq_iosm_handle_executed()

static void ut_test_ioreq_iosm_handle_executed ( void  )
static

Tests ioreq_iosm_handle_executed().

Definition at line 413 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_iosm_handle_launch()

static void ut_test_ioreq_iosm_handle_launch ( void  )
static

Tests ioreq_iosm_handle_launch().

Definition at line 160 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_parity_recalc()

static void ut_test_ioreq_parity_recalc ( void  )
static

Definition at line 867 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_sm_failed_locked()

static void ut_test_ioreq_sm_failed_locked ( void  )
static

Tests ioreq_sm_failed_locked().

Definition at line 98 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_sm_state()

static void ut_test_ioreq_sm_state ( void  )
static

Tests ioreq_sm_state().

Definition at line 59 of file io_req.c.

Here is the call graph for this function:

◆ ut_test_ioreq_sm_state_set_locked()

static void ut_test_ioreq_sm_state_set_locked ( void  )
static

Tests ioreq_sm_state_set_locked().

Definition at line 73 of file io_req.c.

Here is the call graph for this function:

Variable Documentation

◆ dummy_instance

struct m0_client* dummy_instance
static

Definition at line 54 of file io_req.c.

◆ ut_suite_io_req

struct m0_ut_suite ut_suite_io_req

Definition at line 53 of file io_req.c.