Motr  M0
fsync_fops.h File Reference
#include "lib/types.h"
#include "xcode/xcode_attr.h"
#include "fop/fom.h"
#include "be/tx.h"
#include "be/tx_xc.h"
Include dependency graph for fsync_fops.h:

Go to the source code of this file.

Data Structures

struct  m0_fop_fsync
 
struct  m0_fop_fsync_rep
 

Macros

#define __MOTR_MDSERVICE_FSYNC_FOPS_H__
 

Enumerations

enum  m0_fsync_mode { M0_FSYNC_MODE_PASSIVE, M0_FSYNC_MODE_ACTIVE }
 

Functions

struct m0_fop_fsync M0_XCA_DOMAIN (rpc)
 
M0_INTERNAL int m0_mdservice_fsync_fop_init (struct m0_reqh_service_type *svct)
 
M0_INTERNAL void m0_mdservice_fsync_fop_fini (void)
 

Variables

struct m0_be_tx_remid ff_be_remid
 
uint32_t ff_fsync_mode
 
enum m0_fsync_mode M0_XCA_DOMAIN
 
int32_t ffr_rc
 
struct m0_be_tx_remid ffr_be_remid
 
struct m0_fop_type m0_fop_fsync_mds_fopt
 
struct m0_fop_type m0_fop_fsync_rep_fopt
 
const struct m0_fom_type_ops m0_fsync_fom_ops
 
const struct m0_fop_type_ops m0_fsync_fop_ops
 

Macro Definition Documentation

◆ __MOTR_MDSERVICE_FSYNC_FOPS_H__

#define __MOTR_MDSERVICE_FSYNC_FOPS_H__

Definition at line 26 of file fsync_fops.h.

Enumeration Type Documentation

◆ m0_fsync_mode

Enumerator
M0_FSYNC_MODE_PASSIVE 
M0_FSYNC_MODE_ACTIVE 

Definition at line 54 of file fsync_fops.h.

Function Documentation

◆ m0_mdservice_fsync_fop_fini()

M0_INTERNAL void m0_mdservice_fsync_fop_fini ( void  )

Releases the fsync fop type and all the structures associated to it. Must be invoked only once after m0_mdservice_fsync_fop_init has succeeded.

Releases the fsync fop request type and the fsync fop reply type.

Definition at line 44 of file fsync_fops.c.

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

◆ m0_mdservice_fsync_fop_init()

M0_INTERNAL int m0_mdservice_fsync_fop_init ( struct m0_reqh_service_type svct)

Initializes the fsync fop type so the caller (typically the mdservice or the ioservice) can use it.After success, the service will be able to handle fsync fops.

Parameters
svctThe service type of the caller that is going to support fsync fops.
Returns
0 if the operation succeeded or a relevant error code otherwise.

Initializes the fsync fop request type and the fsync fop reply type so the caller can use them to understand and handle fsync fops.

Definition at line 113 of file fsync_fops.c.

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

◆ M0_XCA_DOMAIN()

struct m0_fop_fsync M0_XCA_DOMAIN ( rpc  )

Variable Documentation

◆ ff_be_remid

struct m0_be_tx_remid ff_be_remid

Remote ID of the target transaction

Definition at line 115 of file fsync_fops.h.

◆ ff_fsync_mode

uint32_t ff_fsync_mode

Store one of enum m0_fsync_mode

Definition at line 118 of file fsync_fops.h.

◆ ffr_be_remid

struct m0_be_tx_remid ffr_be_remid

Remote ID of the last logged transaction. May be later than requested.

Definition at line 121 of file fsync_fops.h.

◆ ffr_rc

int32_t ffr_rc

return code for the fsync operation. 0 for success

Definition at line 115 of file fsync_fops.h.

◆ m0_fop_fsync_mds_fopt

struct m0_fop_type m0_fop_fsync_mds_fopt

FOP type for the fsync fop. This type is set by this module (fsync_fops.c)

Definition at line 33 of file fsync_fops.c.

◆ m0_fop_fsync_rep_fopt

struct m0_fop_type m0_fop_fsync_rep_fopt

FOP type for the fsync fop reply. This type is set by this module (fsync_fops.c)

Definition at line 39 of file fsync_fops.c.

◆ m0_fsync_fom_ops

const struct m0_fom_type_ops m0_fsync_fom_ops

Operations for the fom. Mainly the function invoked to create the right fom for an fsync fop.

Definition at line 62 of file fsync_fops.c.

◆ m0_fsync_fop_ops

const struct m0_fop_type_ops m0_fsync_fop_ops

◆ M0_XCA_DOMAIN

enum m0_fsync_mode M0_XCA_DOMAIN