Motr  M0
m0_sns_cm_cp Struct Reference

#include <cp.h>

Collaboration diagram for m0_sns_cm_cp:
Collaboration graph

Data Fields

struct m0_cm_cp sc_base
 
struct m0_fid sc_cobfid
 
struct m0_stob_id sc_stob_id
 
bool sc_is_local
 
uint64_t sc_failed_idx
 
bool sc_is_acc
 
m0_bindex_t sc_index
 
struct m0_stob_io sc_stio
 
struct m0_stobsc_stob
 
bool sc_spare_punch
 
bool sc_is_hole_eof
 
struct m0_fol_frag sc_fol_frag
 

Detailed Description

Definition at line 38 of file cp.h.

Field Documentation

◆ sc_base

struct m0_cm_cp sc_base

Definition at line 39 of file cp.h.

◆ sc_cobfid

struct m0_fid sc_cobfid

cob fid of the cob this copy packet is targeted for.

Definition at line 42 of file cp.h.

◆ sc_failed_idx

uint64_t sc_failed_idx

Definition at line 55 of file cp.h.

◆ sc_fol_frag

struct m0_fol_frag sc_fol_frag

FOL record frag for storage objects.

Definition at line 83 of file cp.h.

◆ sc_index

m0_bindex_t sc_index

Offset within the stob.

Definition at line 60 of file cp.h.

◆ sc_is_acc

bool sc_is_acc

Definition at line 57 of file cp.h.

◆ sc_is_hole_eof

bool sc_is_hole_eof

Definition at line 80 of file cp.h.

◆ sc_is_local

bool sc_is_local

This is true if for the local/outgoing copy packet and false for incoming copy packet. This flag is also used to select the buffer pool to assign buffers for a particular copy packet.

Definition at line 53 of file cp.h.

◆ sc_spare_punch

bool sc_spare_punch

Flag to decide if punch operation on spare extent should be called. The value of the flag is decided by the return value from m0_stob_punch_credit(), if it returns 0 then flag will be set to true and stob will be punched for the extents allocated for spare space in previous sns operation. If it reurns -ENOENT which means there are no extents allocated for the spare (very first write on spare space) the flag will be set to false, so punch operaion will not be called in this case.

Definition at line 78 of file cp.h.

◆ sc_stio

struct m0_stob_io sc_stio

Stob IO context.

Definition at line 63 of file cp.h.

◆ sc_stob

struct m0_stob* sc_stob

Stob context.

Definition at line 66 of file cp.h.

◆ sc_stob_id

struct m0_stob_id sc_stob_id

Read/write stob id.

Definition at line 45 of file cp.h.


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