Motr  M0
fsync_foms.h File Reference
#include "fop/fop.h"
Include dependency graph for fsync_foms.h:

Go to the source code of this file.

Macros

#define __MOTR_MDSERVICE_FSYNC_FOMS_H__
 

Functions

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

Variables

M0_EXTERN struct m0_sm_conf m0_fsync_fom_conf
 
struct m0_sm_state_descr m0_fsync_fom_phases []
 

Macro Definition Documentation

◆ __MOTR_MDSERVICE_FSYNC_FOMS_H__

#define __MOTR_MDSERVICE_FSYNC_FOMS_H__

Definition at line 26 of file fsync_foms.h.

Function Documentation

◆ m0_fsync_req_fom_create()

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

Creates a FOM that can process fsync fop requests.

Parameters
fopfsync fop request to be processed.
outoutput parameter pointing to the created fom.
reqhpointer to the request handler that will run the fom.
Returns
0 if the fom was correctly created or an error code otherwise.

Creates a new fsync fom for a given fsync fop request.

Definition at line 330 of file fsync_foms.c.

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

Variable Documentation

◆ m0_fsync_fom_conf

M0_EXTERN struct m0_sm_conf m0_fsync_fom_conf

Configuration of the fsync state machine. Defines the sm's phases and additional information.

Definition at line 34 of file fsync_foms.h.

◆ m0_fsync_fom_phases

struct m0_sm_state_descr m0_fsync_fom_phases[]

Phases of an fsync fom

Definition at line 69 of file fsync_foms.c.