Motr  M0
storage_dev_ut.c File Reference
#include "lib/trace.h"
#include <unistd.h>
#include "ioservice/storage_dev.h"
#include "balloc/balloc.h"
#include "rpc/rpclib.h"
#include "lib/finject.h"
#include "stob/stob.h"
#include "ut/misc.h"
#include "ut/ut.h"
Include dependency graph for storage_dev_ut.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_IOSERVICE
 
#define SERVER_ENDPOINT_ADDR   "0@lo:12345:34:1"
 
#define NAME(ext)   "io_sdev" ext
 

Enumerations

enum  { CID1 = 10, CID2 = 12, CID3 = 13 }
 

Functions

static int rpc_start (struct m0_rpc_server_ctx *rpc_srv)
 
static int create_test_file (const char *filename)
 
static void storage_dev_test (void)
 
static void storage_dev_linux (void)
 

Variables

struct m0_ut_suite storage_dev_ut
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_IOSERVICE

Definition at line 23 of file storage_dev_ut.c.

◆ NAME

#define NAME (   ext)    "io_sdev" ext

◆ SERVER_ENDPOINT_ADDR

#define SERVER_ENDPOINT_ADDR   "0@lo:12345:34:1"

Definition at line 36 of file storage_dev_ut.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CID1 
CID2 
CID3 

Definition at line 38 of file storage_dev_ut.c.

Function Documentation

◆ create_test_file()

static int create_test_file ( const char *  filename)
static

Definition at line 85 of file storage_dev_ut.c.

Here is the caller graph for this function:

◆ rpc_start()

static int rpc_start ( struct m0_rpc_server_ctx rpc_srv)
static

Definition at line 44 of file storage_dev_ut.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ storage_dev_linux()

static void storage_dev_linux ( void  )
static

Definition at line 216 of file storage_dev_ut.c.

Here is the call graph for this function:

◆ storage_dev_test()

static void storage_dev_test ( void  )
static

Definition at line 99 of file storage_dev_ut.c.

Here is the call graph for this function:

Variable Documentation

◆ storage_dev_ut

struct m0_ut_suite storage_dev_ut
Initial value:
= {
.ts_name = "storage-dev-ut",
.ts_init = NULL,
.ts_fini = NULL,
.ts_tests = {
{ "storage-dev-test", storage_dev_test },
{ "storage-dev-linux", storage_dev_linux },
{ NULL, NULL },
},
}
#define NULL
Definition: misc.h:38
static void storage_dev_test(void)
static void storage_dev_linux(void)

Definition at line 333 of file storage_dev_ut.c.