Motr  M0
io_fops.h File Reference
#include "fop/fop.h"
#include "fop/fop_xc.h"
#include "fop/fom_generic.h"
#include "fop/fom_generic_xc.h"
#include "lib/types.h"
#include "rpc/rpc.h"
#include "xcode/xcode_attr.h"
#include "net/net_otw_types.h"
#include "net/net_otw_types_xc.h"
#include "fid/fid.h"
#include "fid/fid_xc.h"
#include "lib/buf.h"
#include "lib/buf_xc.h"
#include "lib/vec_xc.h"
#include "mdservice/md_fops.h"
#include "mdservice/md_fops_xc.h"
Include dependency graph for io_fops.h:

Go to the source code of this file.

Data Structures

struct  m0_io_fop
 
struct  m0_io_descs
 
struct  m0_fop_cob_rw_reply
 
struct  m0_fop_cob_readv_rep
 
struct  m0_fop_cob_writev_rep
 
struct  m0_fop_cob_rw
 
struct  m0_fop_cob_readv
 
struct  m0_fop_cob_writev
 
struct  m0_test_ios_fop
 
struct  m0_fop_cob_common
 
struct  m0_fop_cob_create
 
struct  m0_fop_cob_delete
 
struct  m0_fop_cob_truncate
 
struct  m0_fop_cob_op_rep_common
 
struct  m0_fop_cob_op_reply
 
struct  m0_fop_cob_getattr
 
struct  m0_fop_cob_getattr_reply
 
struct  m0_fop_cob_setattr
 
struct  m0_fop_cob_setattr_reply
 

Macros

#define __MOTR_IOSERVICE_IO_FOPS_H__
 

Enumerations

enum  m0_io_flags { M0_IO_FLAG_CROW = (1 << 0), M0_IO_FLAG_NOHOLE = (1 << 1), M0_IO_FLAG_SYNC = (1 << 2) }
 

Functions

M0_INTERNAL int m0_io_fop_init (struct m0_io_fop *iofop, const struct m0_fid *gfid, struct m0_fop_type *ftype, void(*fop_release)(struct m0_ref *))
 
M0_INTERNAL void m0_io_fop_fini (struct m0_io_fop *iofop)
 
M0_INTERNAL struct m0_rpc_bulkm0_fop_to_rpcbulk (const struct m0_fop *fop)
 
M0_INTERNAL int m0_io_fop_prepare (struct m0_fop *fop)
 
M0_INTERNAL void m0_io_fop_destroy (struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_read_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_write_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_read_rep (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_write_rep (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_io_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_io_fop_rep (const struct m0_fop *fop)
 
M0_INTERNAL struct m0_fop_cob_rwio_rw_get (struct m0_fop *fop)
 
M0_INTERNAL struct m0_fop_cob_rw_replyio_rw_rep_get (struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_cob_create_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_cob_delete_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_cob_truncate_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_cob_create_delete_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_cob_getattr_fop (const struct m0_fop *fop)
 
M0_INTERNAL bool m0_is_cob_setattr_fop (const struct m0_fop *fop)
 
M0_INTERNAL struct m0_fop_cob_commonm0_cobfop_common_get (struct m0_fop *fop)
 
M0_INTERNAL void m0_dump_cob_attr (const struct m0_cob_attr *attr)
 
M0_INTERNAL int m0_ioservice_fop_init (void)
 
M0_INTERNAL void m0_ioservice_fop_fini (void)
 
M0_INTERNAL size_t m0_io_fop_size_get (struct m0_fop *fop)
 
M0_INTERNAL void m0_io_fop_release (struct m0_ref *ref)
 
M0_INTERNAL uint32_t m0_io_fop_segs_nr (struct m0_fop *fop, uint32_t index)
 
M0_INTERNAL m0_bcount_t m0_io_fop_byte_count (struct m0_io_fop *iofop)
 
struct m0_io_descs M0_XCA_DOMAIN (rpc)
 

Variables

struct m0_fop_type m0_fop_cob_readv_fopt
 
struct m0_fop_type m0_fop_cob_writev_fopt
 
struct m0_fop_type m0_fop_cob_readv_rep_fopt
 
struct m0_fop_type m0_fop_cob_writev_rep_fopt
 
struct m0_fop_type m0_fop_cob_create_fopt
 
struct m0_fop_type m0_fop_cob_delete_fopt
 
struct m0_fop_type m0_fop_cob_truncate_fopt
 
struct m0_fop_type m0_fop_cob_op_reply_fopt
 
struct m0_fop_type m0_fop_fv_notification_fopt
 
struct m0_fop_type m0_fop_cob_getattr_fopt
 
struct m0_fop_type m0_fop_cob_getattr_reply_fopt
 
struct m0_fop_type m0_fop_fsync_ios_fopt
 
struct m0_fop_type m0_fop_cob_setattr_fopt
 
struct m0_fop_type m0_fop_cob_setattr_reply_fopt
 
struct m0_fom_type m0_io_fom_cob_rw_fomt
 
uint32_t id_nr
 
struct m0_net_buf_desc_dataid_descs
 
int32_t rwr_rc
 
uint64_t rwr_count
 
uint32_t rwr_repair_done
 
uint32_t rwr_cksum_nob_read
 
struct m0_fop_mod_rep rwr_mod_rep
 
struct m0_buf rwr_di_data_cksum
 
int32_t c_rc
 
struct m0_fop_cob_rw_reply c_rep
 
enum m0_io_flags M0_XCA_DOMAIN
 
struct m0_fid crw_gfid
 
struct m0_fid crw_fid
 
uint32_t crw_index
 
struct m0_fid crw_pver
 
uint64_t crw_lid
 
struct m0_io_descs crw_desc
 
struct m0_io_indexvec crw_ivec
 
uint64_t crw_flags
 
m0_bcount_t crw_cksum_size
 
struct m0_buf crw_di_data
 
struct m0_buf crw_di_data_cksum
 
struct m0_fop_cob_rw c_rwv
 
uint64_t if_st
 
struct m0_net_buf_desc if_nbd
 
struct m0_fop_cob c_body
 
struct m0_fid c_gobfid
 
struct m0_fid c_cobfid
 
struct m0_fid c_pver
 
uint32_t c_cob_idx
 
uint32_t c_cob_type
 
uint64_t c_flags
 
struct m0_fop_cob_common cc_common
 
struct m0_fop_cob_common cd_common
 
struct m0_fop_cob_common ct_common
 
uint64_t ct_size
 
struct m0_io_indexvec ct_io_ivec
 
struct m0_fop_mod_rep cor_mod_rep
 
int32_t cor_rc
 
struct m0_fop_cob_op_rep_common cor_common
 
struct m0_fop_cob_common cg_common
 
int32_t cgr_rc
 
struct m0_fop_cob_op_rep_common cgr_common
 
struct m0_fop_cob cgr_body
 
struct m0_fop_cob_common cs_common
 
int32_t csr_rc
 
struct m0_fop_cob_op_rep_common csr_common
 

Macro Definition Documentation

◆ __MOTR_IOSERVICE_IO_FOPS_H__

#define __MOTR_IOSERVICE_IO_FOPS_H__

Definition at line 26 of file io_fops.h.

Function Documentation

◆ m0_io_fop_byte_count()

M0_INTERNAL m0_bcount_t m0_io_fop_byte_count ( struct m0_io_fop iofop)

Definition at line 1925 of file io_fops.c.

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

◆ m0_io_fop_release()

M0_INTERNAL void m0_io_fop_release ( struct m0_ref ref)

Definition at line 1939 of file io_fops.c.

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

◆ m0_io_fop_segs_nr()

M0_INTERNAL uint32_t m0_io_fop_segs_nr ( struct m0_fop fop,
uint32_t  index 
)

Definition at line 1020 of file io_fops.c.

Here is the call graph for this function:

◆ m0_io_fop_size_get()

M0_INTERNAL size_t m0_io_fop_size_get ( struct m0_fop fop)

Definition at line 1589 of file io_fops.c.

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

◆ m0_ioservice_fop_fini()

M0_INTERNAL void m0_ioservice_fop_fini ( void  )

Definition at line 251 of file io_fops.c.

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

◆ m0_ioservice_fop_init()

M0_INTERNAL int m0_ioservice_fop_init ( void  )

Init and fini of ioservice fops code.

Definition at line 281 of file io_fops.c.

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

Variable Documentation

◆ m0_fop_cob_create_fopt

struct m0_fop_type m0_fop_cob_create_fopt

Definition at line 75 of file io_fops.c.

◆ m0_fop_cob_delete_fopt

struct m0_fop_type m0_fop_cob_delete_fopt

Definition at line 76 of file io_fops.c.

◆ m0_fop_cob_getattr_fopt

struct m0_fop_type m0_fop_cob_getattr_fopt

Definition at line 80 of file io_fops.c.

◆ m0_fop_cob_getattr_reply_fopt

struct m0_fop_type m0_fop_cob_getattr_reply_fopt

Definition at line 81 of file io_fops.c.

◆ m0_fop_cob_op_reply_fopt

struct m0_fop_type m0_fop_cob_op_reply_fopt

Definition at line 78 of file io_fops.c.

◆ m0_fop_cob_readv_fopt

struct m0_fop_type m0_fop_cob_readv_fopt

Definition at line 71 of file io_fops.c.

◆ m0_fop_cob_readv_rep_fopt

struct m0_fop_type m0_fop_cob_readv_rep_fopt

Definition at line 73 of file io_fops.c.

◆ m0_fop_cob_setattr_fopt

struct m0_fop_type m0_fop_cob_setattr_fopt

Definition at line 83 of file io_fops.c.

◆ m0_fop_cob_setattr_reply_fopt

struct m0_fop_type m0_fop_cob_setattr_reply_fopt

Definition at line 84 of file io_fops.c.

◆ m0_fop_cob_truncate_fopt

struct m0_fop_type m0_fop_cob_truncate_fopt

Definition at line 77 of file io_fops.c.

◆ m0_fop_cob_writev_fopt

struct m0_fop_type m0_fop_cob_writev_fopt

Definition at line 72 of file io_fops.c.

◆ m0_fop_cob_writev_rep_fopt

struct m0_fop_type m0_fop_cob_writev_rep_fopt

Definition at line 74 of file io_fops.c.

◆ m0_fop_fsync_ios_fopt

struct m0_fop_type m0_fop_fsync_ios_fopt

Definition at line 82 of file io_fops.c.

◆ m0_fop_fv_notification_fopt

struct m0_fop_type m0_fop_fv_notification_fopt

Definition at line 79 of file io_fops.c.

◆ m0_io_fom_cob_rw_fomt

struct m0_fom_type m0_io_fom_cob_rw_fomt