Motr  M0
cancel.c File Reference
#include "lib/trace.h"
#include "lib/misc.h"
#include "motr/client.h"
#include "motr/st/st.h"
#include "motr/st/st_misc.h"
#include "motr/st/st_assert.h"
#include "lib/memory.h"
Include dependency graph for cancel.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT
 

Functions

static void create_obj (struct m0_uint128 *oid)
 
static void op_cancel (struct m0_op **ops, int obj_cnt, int start_obj)
 
static void m0_write_cancel (void)
 
static int st_cancel_suite_init (void)
 
static int st_cancel_suite_fini (void)
 

Variables

struct m0_container st_cancel_container
 
struct m0_addb_ctx m0_addb_ctx
 
static const uint32_t UNIT_SIZE = DEFAULT_PARGRP_UNIT_SIZE
 
static uint64_t layout_id
 
struct st_suite st_suite_cancel
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT

Definition at line 28 of file cancel.c.

Function Documentation

◆ create_obj()

static void create_obj ( struct m0_uint128 oid)
static

Definition at line 43 of file cancel.c.

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

◆ m0_write_cancel()

static void m0_write_cancel ( void  )
static

Launch write and then cancel the operation

Definition at line 104 of file cancel.c.

Here is the call graph for this function:

◆ op_cancel()

static void op_cancel ( struct m0_op **  ops,
int  obj_cnt,
int  start_obj 
)
static

Definition at line 81 of file cancel.c.

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

◆ st_cancel_suite_fini()

static int st_cancel_suite_fini ( void  )
static

Finalises the suite's environment.

Definition at line 260 of file cancel.c.

◆ st_cancel_suite_init()

static int st_cancel_suite_init ( void  )
static

Initialises the suite's environment.

Definition at line 237 of file cancel.c.

Here is the call graph for this function:

Variable Documentation

◆ layout_id

uint64_t layout_id
static

Definition at line 41 of file cancel.c.

◆ m0_addb_ctx

struct m0_addb_ctx m0_addb_ctx

◆ st_cancel_container

struct m0_container st_cancel_container

Definition at line 38 of file cancel.c.

◆ st_suite_cancel

struct st_suite st_suite_cancel
Initial value:
= {
.ss_name = "cancel_st",
.ss_tests = {
{ "cancel_while_write",
{ NULL, NULL }
}
}
static int st_cancel_suite_fini(void)
Definition: cancel.c:260
#define NULL
Definition: misc.h:38
static int st_cancel_suite_init(void)
Definition: cancel.c:237
static void m0_write_cancel(void)
Definition: cancel.c:104

Definition at line 265 of file cancel.c.

◆ UNIT_SIZE

const uint32_t UNIT_SIZE = DEFAULT_PARGRP_UNIT_SIZE
static

Definition at line 40 of file cancel.c.