Motr  M0
sync.h File Reference
#include "mdservice/fsync_fops.h"
#include "cas/cas.h"
#include "fop/fop.h"
Include dependency graph for sync.h:

Go to the source code of this file.

Data Structures

struct  sync_target
 
struct  sync_request
 
struct  sync_fop_wrapper
 
struct  sync_interactions
 

Macros

#define __MOTR_OSYNC_H__
 

Enumerations

enum  sync_type { SYNC_ENTITY = 0, SYNC_OP, SYNC_INSTANCE }
 

Functions

 M0_TL_DESCR_DECLARE (spti, M0_EXTERN)
 
 M0_TL_DECLARE (spti, M0_EXTERN, struct m0_reqh_service_txid)
 
M0_INTERNAL void sync_record_update (struct m0_reqh_service_ctx *service, struct m0_entity *obj, struct m0_op *op, struct m0_be_tx_remid *btr)
 
M0_INTERNAL struct m0_entitym0__op_sync_entity (const struct m0_op *op)
 

Macro Definition Documentation

◆ __MOTR_OSYNC_H__

#define __MOTR_OSYNC_H__

Definition at line 30 of file sync.h.

Enumeration Type Documentation

◆ sync_type

enum sync_type
Enumerator
SYNC_ENTITY 
SYNC_OP 
SYNC_INSTANCE 

Definition at line 46 of file sync.h.

Function Documentation

◆ m0__op_sync_entity()

M0_INTERNAL struct m0_entity* m0__op_sync_entity ( const struct m0_op op)

Return first entity from sync operation. It is used as helper function to get client instance from entity for sync operation.

Definition at line 1172 of file sync.c.

Here is the caller graph for this function:

◆ M0_TL_DECLARE()

M0_TL_DECLARE ( spti  ,
M0_EXTERN  ,
struct m0_reqh_service_txid   
)

◆ M0_TL_DESCR_DECLARE()

M0_TL_DESCR_DECLARE ( spti  ,
M0_EXTERN   
)

◆ sync_record_update()

M0_INTERNAL void sync_record_update ( struct m0_reqh_service_ctx service,
struct m0_entity ent,
struct m0_op op,
struct m0_be_tx_remid btr 
)

Updates sync records in fop callbacks. Service must be specified, one or both of csb/inode should be specified. new_txid may be null.

Updates a m0_reqh_service_txid with the specified be_tx_remid if the struct m0_be_tx_remid::tri_txid > the stored value obj may be NULL if the update has no associated inode.

Definition at line 788 of file sync.c.

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