Motr  M0
storage.c File Reference
#include "lib/trace.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "motr/setup.h"
#include "lib/finject.h"
#include "sns/cm/ag.h"
#include "sns/cm/cm.h"
#include "sns/cm/cp.h"
#include "sns/cm/file.h"
#include "stob/domain.h"
#include "stob/ad.h"
#include "ioservice/storage_dev.h"
#include "ioservice/io_foms.h"
#include "ioservice/fid_convert.h"
#include "cob/cob.h"
#include "balloc/balloc.h"
Include dependency graph for storage.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM
 

Functions

static int ivec_prepare (struct m0_cm_cp *cp, struct m0_indexvec *iv, m0_bindex_t idx, size_t unit_size, size_t max_buf_size, uint32_t bshift)
 
static int bufvec_prepare (struct m0_bufvec *obuf, struct m0_tl *cp_buffers_head, uint32_t data_seg_nr, size_t seg_size, uint32_t bshift)
 
static void bufvec_free (struct m0_bufvec *bv)
 
static int cp_prepare (struct m0_cm_cp *cp, struct m0_indexvec *dst_ivec, struct m0_bufvec *dst_bvec, m0_bindex_t start_idx, uint32_t bshift)
 
static int cp_stob_io_init (struct m0_cm_cp *cp, const enum m0_stob_io_opcode op)
 
M0_INTERNAL struct m0_cob_domainm0_sns_cm_cp2cdom (struct m0_cm_cp *cp)
 
static int cob_stob_check (struct m0_cm_cp *cp)
 
static int cp_stob_release_exts (struct m0_stob *stob, struct m0_indexvec *range, struct m0_dtx *dtx)
 
static bool cp_stob_io_is_initialised (struct m0_stob_io *io)
 
static int cp_io (struct m0_cm_cp *cp, const enum m0_stob_io_opcode op)
 
M0_INTERNAL int m0_sns_cm_cp_read (struct m0_cm_cp *cp)
 
M0_INTERNAL int m0_sns_cm_cp_write_pre (struct m0_cm_cp *cp)
 
M0_INTERNAL int m0_sns_cm_cp_write (struct m0_cm_cp *cp)
 
M0_INTERNAL int m0_sns_cm_cp_io_wait (struct m0_cm_cp *cp)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM

Definition at line 23 of file storage.c.