Motr  M0
md_fops.c File Reference
#include "lib/string.h"
#include "lib/memory.h"
#include "lib/errno.h"
#include "fop/fop.h"
#include "fop/fom_generic.h"
#include "fop/fop_item_type.h"
#include "rpc/rpc_opcodes.h"
#include "mdservice/md_foms.h"
#include "mdservice/md_fops.h"
#include "mdservice/md_fops_xc.h"
Include dependency graph for md_fops.c:

Go to the source code of this file.

Functions

static int md_fol_frag_undo (struct m0_fop_fol_frag *ffrag, struct m0_fol *fol)
 
static int md_fol_frag_redo (struct m0_fop_fol_frag *ffrag, struct m0_fol *fol)
 
M0_INTERNAL int m0_mdservice_fopts_init (void)
 
M0_INTERNAL int m0_mdservice_rep_fopts_init (void)
 
M0_INTERNAL int m0_mdservice_fop_init (void)
 
M0_INTERNAL void m0_mdservice_fop_fini (void)
 

Variables

const struct m0_fop_type_ops m0_md_fop_ops
 
struct m0_fom_type_ops m0_md_fom_ops
 
struct m0_reqh_service_type m0_mds_type
 
struct m0_fop_type m0_fop_create_fopt
 
struct m0_fop_type m0_fop_lookup_fopt
 
struct m0_fop_type m0_fop_link_fopt
 
struct m0_fop_type m0_fop_unlink_fopt
 
struct m0_fop_type m0_fop_open_fopt
 
struct m0_fop_type m0_fop_close_fopt
 
struct m0_fop_type m0_fop_setattr_fopt
 
struct m0_fop_type m0_fop_getattr_fopt
 
struct m0_fop_type m0_fop_setxattr_fopt
 
struct m0_fop_type m0_fop_getxattr_fopt
 
struct m0_fop_type m0_fop_delxattr_fopt
 
struct m0_fop_type m0_fop_listxattr_fopt
 
struct m0_fop_type m0_fop_statfs_fopt
 
struct m0_fop_type m0_fop_rename_fopt
 
struct m0_fop_type m0_fop_readdir_fopt
 
struct m0_fop_type m0_fop_create_rep_fopt
 
struct m0_fop_type m0_fop_lookup_rep_fopt
 
struct m0_fop_type m0_fop_link_rep_fopt
 
struct m0_fop_type m0_fop_unlink_rep_fopt
 
struct m0_fop_type m0_fop_open_rep_fopt
 
struct m0_fop_type m0_fop_close_rep_fopt
 
struct m0_fop_type m0_fop_setattr_rep_fopt
 
struct m0_fop_type m0_fop_getattr_rep_fopt
 
struct m0_fop_type m0_fop_setxattr_rep_fopt
 
struct m0_fop_type m0_fop_getxattr_rep_fopt
 
struct m0_fop_type m0_fop_delxattr_rep_fopt
 
struct m0_fop_type m0_fop_listxattr_rep_fopt
 
struct m0_fop_type m0_fop_statfs_rep_fopt
 
struct m0_fop_type m0_fop_rename_rep_fopt
 
struct m0_fop_type m0_fop_readdir_rep_fopt
 

Function Documentation

◆ m0_mdservice_fop_fini()

M0_INTERNAL void m0_mdservice_fop_fini ( void  )

Definition at line 348 of file md_fops.c.

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

◆ m0_mdservice_fop_init()

M0_INTERNAL int m0_mdservice_fop_init ( void  )

Init and fini of mdservice fops code.

Definition at line 341 of file md_fops.c.

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

◆ m0_mdservice_fopts_init()

M0_INTERNAL int m0_mdservice_fopts_init ( void  )

Definition at line 84 of file md_fops.c.

Here is the caller graph for this function:

◆ m0_mdservice_rep_fopts_init()

M0_INTERNAL int m0_mdservice_rep_fopts_init ( void  )

Definition at line 259 of file md_fops.c.

Here is the caller graph for this function:

◆ md_fol_frag_redo()

static int md_fol_frag_redo ( struct m0_fop_fol_frag ffrag,
struct m0_fol fol 
)
static
Todo:
Perform the redo operation for meta-data updates using the generic fop fol fragment.

Definition at line 396 of file md_fops.c.

◆ md_fol_frag_undo()

static int md_fol_frag_undo ( struct m0_fop_fol_frag ffrag,
struct m0_fol fol 
)
static
Todo:
Perform the undo operation for meta-data updates using the generic fop fol fragment.

Definition at line 386 of file md_fops.c.

Variable Documentation

◆ m0_fop_close_fopt

struct m0_fop_type m0_fop_close_fopt

Definition at line 57 of file md_fops.c.

◆ m0_fop_close_rep_fopt

struct m0_fop_type m0_fop_close_rep_fopt

Definition at line 73 of file md_fops.c.

◆ m0_fop_create_fopt

struct m0_fop_type m0_fop_create_fopt

Definition at line 52 of file md_fops.c.

◆ m0_fop_create_rep_fopt

struct m0_fop_type m0_fop_create_rep_fopt

Definition at line 68 of file md_fops.c.

◆ m0_fop_delxattr_fopt

struct m0_fop_type m0_fop_delxattr_fopt

Definition at line 62 of file md_fops.c.

◆ m0_fop_delxattr_rep_fopt

struct m0_fop_type m0_fop_delxattr_rep_fopt

Definition at line 78 of file md_fops.c.

◆ m0_fop_getattr_fopt

struct m0_fop_type m0_fop_getattr_fopt

Definition at line 59 of file md_fops.c.

◆ m0_fop_getattr_rep_fopt

struct m0_fop_type m0_fop_getattr_rep_fopt

Definition at line 75 of file md_fops.c.

◆ m0_fop_getxattr_fopt

struct m0_fop_type m0_fop_getxattr_fopt

Definition at line 61 of file md_fops.c.

◆ m0_fop_getxattr_rep_fopt

struct m0_fop_type m0_fop_getxattr_rep_fopt

Definition at line 77 of file md_fops.c.

◆ m0_fop_link_fopt

struct m0_fop_type m0_fop_link_fopt

Definition at line 54 of file md_fops.c.

◆ m0_fop_link_rep_fopt

struct m0_fop_type m0_fop_link_rep_fopt

Definition at line 70 of file md_fops.c.

◆ m0_fop_listxattr_fopt

struct m0_fop_type m0_fop_listxattr_fopt

Definition at line 63 of file md_fops.c.

◆ m0_fop_listxattr_rep_fopt

struct m0_fop_type m0_fop_listxattr_rep_fopt

Definition at line 79 of file md_fops.c.

◆ m0_fop_lookup_fopt

struct m0_fop_type m0_fop_lookup_fopt

Definition at line 53 of file md_fops.c.

◆ m0_fop_lookup_rep_fopt

struct m0_fop_type m0_fop_lookup_rep_fopt

Definition at line 69 of file md_fops.c.

◆ m0_fop_open_fopt

struct m0_fop_type m0_fop_open_fopt

Definition at line 56 of file md_fops.c.

◆ m0_fop_open_rep_fopt

struct m0_fop_type m0_fop_open_rep_fopt

Definition at line 72 of file md_fops.c.

◆ m0_fop_readdir_fopt

struct m0_fop_type m0_fop_readdir_fopt

Definition at line 66 of file md_fops.c.

◆ m0_fop_readdir_rep_fopt

struct m0_fop_type m0_fop_readdir_rep_fopt

Definition at line 82 of file md_fops.c.

◆ m0_fop_rename_fopt

struct m0_fop_type m0_fop_rename_fopt

Definition at line 65 of file md_fops.c.

◆ m0_fop_rename_rep_fopt

struct m0_fop_type m0_fop_rename_rep_fopt

Definition at line 81 of file md_fops.c.

◆ m0_fop_setattr_fopt

struct m0_fop_type m0_fop_setattr_fopt

Definition at line 58 of file md_fops.c.

◆ m0_fop_setattr_rep_fopt

struct m0_fop_type m0_fop_setattr_rep_fopt

Definition at line 74 of file md_fops.c.

◆ m0_fop_setxattr_fopt

struct m0_fop_type m0_fop_setxattr_fopt

Definition at line 60 of file md_fops.c.

◆ m0_fop_setxattr_rep_fopt

struct m0_fop_type m0_fop_setxattr_rep_fopt

Definition at line 76 of file md_fops.c.

◆ m0_fop_statfs_fopt

struct m0_fop_type m0_fop_statfs_fopt

Definition at line 64 of file md_fops.c.

◆ m0_fop_statfs_rep_fopt

struct m0_fop_type m0_fop_statfs_rep_fopt

Definition at line 80 of file md_fops.c.

◆ m0_fop_unlink_fopt

struct m0_fop_type m0_fop_unlink_fopt

Definition at line 55 of file md_fops.c.

◆ m0_fop_unlink_rep_fopt

struct m0_fop_type m0_fop_unlink_rep_fopt

Definition at line 71 of file md_fops.c.

◆ m0_md_fom_ops

struct m0_fom_type_ops m0_md_fom_ops
Initial value:
= {
.fto_create = m0_md_req_fom_create
}
M0_INTERNAL int m0_md_req_fom_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
Definition: md_foms.c:1437

Definition at line 44 of file md_fops.c.

◆ m0_md_fop_ops

const struct m0_fop_type_ops m0_md_fop_ops
Initial value:
= {
.fto_undo = md_fol_frag_undo,
.fto_redo = md_fol_frag_redo,
}
static int md_fol_frag_undo(struct m0_fop_fol_frag *ffrag, struct m0_fol *fol)
Definition: md_fops.c:386
static int md_fol_frag_redo(struct m0_fop_fol_frag *ffrag, struct m0_fol *fol)
Definition: md_fops.c:396

Definition at line 38 of file md_fops.c.