Motr  M0
target_ioreq_ops Struct Reference

#include <file_internal.h>

Collaboration diagram for target_ioreq_ops:
Collaboration graph

Data Fields

void(* tio_seg_add )(struct target_ioreq *ti, const struct m0_pdclust_src_addr *src, const struct m0_pdclust_tgt_addr *tgt, m0_bindex_t gob_offset, m0_bcount_t count, struct pargrp_iomap *map)
 
int(* tio_iofops_prepare )(struct target_ioreq *ti, enum page_attr filter)
 
int(* tio_cc_fops_prepare )(struct target_ioreq *ti)
 

Detailed Description

Operations vector for struct target_ioreq.

Definition at line 1685 of file file_internal.h.

Field Documentation

◆ tio_cc_fops_prepare

int(* tio_cc_fops_prepare)(struct target_ioreq *ti)

Prepares cob create fops for the given target.

Prepares cob create/truncate fops for the given target.

Definition at line 1716 of file file_internal.h.

◆ tio_iofops_prepare

int(* tio_iofops_prepare)(struct target_ioreq *ti, enum page_attr filter)

Prepares io fops from index vector and buffer vector. This API uses rpc bulk API to store net buffer descriptors in IO fops.

Precondition
iofops_tlist_is_empty(ti->ti_iofops).
Postcondition
!iofops_tlist_is_empty(ti->ti_iofops).

Prepares io fops from index vector and buffer vector. This API uses rpc bulk API to store net buffer descriptors in IO fops.

Definition at line 1710 of file file_internal.h.

◆ tio_seg_add

void(* tio_seg_add)(struct target_ioreq *ti, const struct m0_pdclust_src_addr *src, const struct m0_pdclust_tgt_addr *tgt, m0_bindex_t gob_offset, m0_bcount_t count, struct pargrp_iomap *map)

Adds an io segment to index vector and buffer vector in target_ioreq structure.

Parameters
frameFrame number of target object.
gob_offsetOffset in global file.
countNumber of bytes in this segment.
unitUnit id in parity group.
Precondition
ti != NULL && count > 0.
Postcondition
m0_vec_count(&ti->ti_ivec.iv_vec) > 0.

Adds an io segment to index vector and buffer vector in target_ioreq structure.

Definition at line 1696 of file file_internal.h.


The documentation for this struct was generated from the following files: