Motr  M0
cob_foms.h File Reference
#include "cob/cob.h"
Include dependency graph for cob_foms.h:

Go to the source code of this file.

Data Structures

struct  m0_fom_cob_op
 

Macros

#define __MOTR_IOSERVICE_COB_FOMS_H__
 

Enumerations

enum  m0_fom_cob_operations_phases { M0_FOPH_COB_OPS_PREPARE = M0_FOPH_NR + 1, M0_FOPH_COB_OPS_EXECUTE }
 

Functions

M0_INTERNAL int m0_cob_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
 
M0_INTERNAL int m0_cc_cob_setup (struct m0_fom_cob_op *cc, struct m0_cob_domain *cdom, const struct m0_cob_attr *attr, struct m0_be_tx *ctx)
 
M0_INTERNAL int m0_cc_stob_cr_credit (struct m0_stob_id *sid, struct m0_be_tx_credit *accum)
 
M0_INTERNAL int m0_cc_stob_create (struct m0_fom *fom, struct m0_stob_id *sid)
 
M0_INTERNAL int m0_cc_cob_nskey_make (struct m0_cob_nskey **nskey, const struct m0_fid *gfid, uint32_t cob_idx)
 
M0_INTERNAL size_t m0_cob_io_fom_locality (const struct m0_fid *fid)
 

Macro Definition Documentation

◆ __MOTR_IOSERVICE_COB_FOMS_H__

#define __MOTR_IOSERVICE_COB_FOMS_H__

Definition at line 26 of file cob_foms.h.

Enumeration Type Documentation

◆ m0_fom_cob_operations_phases

Phases of cob create/delete state machine.

Enumerator
M0_FOPH_COB_OPS_PREPARE 
M0_FOPH_COB_OPS_EXECUTE 

Internally creates/deletes a stob, a cob and adds/removes a record to or from auxiliary database. Or this is a getattr/setattr.

Definition at line 36 of file cob_foms.h.

Function Documentation

◆ m0_cc_cob_nskey_make()

M0_INTERNAL int m0_cc_cob_nskey_make ( struct m0_cob_nskey **  nskey,
const struct m0_fid gfid,
uint32_t  cob_idx 
)

Definition at line 846 of file cob_foms.c.

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

◆ m0_cc_cob_setup()

M0_INTERNAL int m0_cc_cob_setup ( struct m0_fom_cob_op cc,
struct m0_cob_domain cdom,
const struct m0_cob_attr attr,
struct m0_be_tx ctx 
)

Create the cob for the cob domain.

Definition at line 1033 of file cob_foms.c.

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

◆ m0_cc_stob_cr_credit()

M0_INTERNAL int m0_cc_stob_cr_credit ( struct m0_stob_id sid,
struct m0_be_tx_credit accum 
)

Definition at line 807 of file cob_foms.c.

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

◆ m0_cc_stob_create()

M0_INTERNAL int m0_cc_stob_create ( struct m0_fom fom,
struct m0_stob_id sid 
)

Definition at line 824 of file cob_foms.c.

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

◆ m0_cob_fom_create()

M0_INTERNAL int m0_cob_fom_create ( struct m0_fop fop,
struct m0_fom **  out,
struct m0_reqh reqh 
)

Definition at line 183 of file cob_foms.c.

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

◆ m0_cob_io_fom_locality()

M0_INTERNAL size_t m0_cob_io_fom_locality ( const struct m0_fid fid)

Definition at line 271 of file cob_foms.c.

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