Motr  M0
lustre.c File Reference
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/bitstring.h"
#include "fop/fop.h"
#include "cob/cob.h"
#include "mdstore/mdstore.h"
#include "mdservice/md_fops.h"
#include "mdservice/md_fops_xc.h"
#include "mdservice/ut/lustre.h"
Include dependency graph for lustre.c:

Go to the source code of this file.

Typedefs

typedef int(* fop_translate_t) (struct m0_fop *fop, void *data)
 

Enumerations

enum  lustre_la_valid {
  M0_LA_ATIME = 1 << 0, M0_LA_MTIME = 1 << 1, M0_LA_CTIME = 1 << 2, M0_LA_SIZE = 1 << 3,
  M0_LA_MODE = 1 << 4, M0_LA_UID = 1 << 5, M0_LA_GID = 1 << 6, M0_LA_BLOCKS = 1 << 7,
  M0_LA_TYPE = 1 << 8, M0_LA_FLAGS = 1 << 9, M0_LA_NLINK = 1 << 10, M0_LA_RDEV = 1 << 11,
  M0_LA_BLKSIZE = 1 << 12
}
 

Functions

static void lustre_copy_fid (struct m0_fid *bf, const struct m0_md_lustre_fid *cf)
 
static int lustre_copy_name (struct m0_fop_str *n, const struct m0_md_lustre_logrec *rec)
 
static uint16_t lustre_get_valid (uint16_t valid)
 
static void lustre_copy_body (struct m0_fop_cob *body, const struct m0_md_lustre_logrec *rec)
 
static int lustre_create_fop (struct m0_fop *fop, void *data)
 
static int lustre_link_fop (struct m0_fop *fop, void *data)
 
static int lustre_unlink_fop (struct m0_fop *fop, void *data)
 
static int lustre_open_fop (struct m0_fop *fop, void *data)
 
static int lustre_close_fop (struct m0_fop *fop, void *data)
 
static int lustre_setattr_fop (struct m0_fop *fop, void *data)
 
static int lustre_rename_fop (struct m0_fop *fop, void *data)
 
int m0_md_lustre_fop_alloc (struct m0_fop **fop, void *data, struct m0_rpc_machine *mach)
 

Typedef Documentation

◆ fop_translate_t

typedef int(* fop_translate_t) (struct m0_fop *fop, void *data)

Definition at line 35 of file lustre.c.

Enumeration Type Documentation

◆ lustre_la_valid

Enumerator
M0_LA_ATIME 
M0_LA_MTIME 
M0_LA_CTIME 
M0_LA_SIZE 
M0_LA_MODE 
M0_LA_UID 
M0_LA_GID 
M0_LA_BLOCKS 
M0_LA_TYPE 
M0_LA_FLAGS 
M0_LA_NLINK 
M0_LA_RDEV 
M0_LA_BLKSIZE 

Definition at line 54 of file lustre.c.

Function Documentation

◆ lustre_close_fop()

static int lustre_close_fop ( struct m0_fop fop,
void *  data 
)
static

Definition at line 175 of file lustre.c.

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

◆ lustre_copy_body()

static void lustre_copy_body ( struct m0_fop_cob body,
const struct m0_md_lustre_logrec rec 
)
static

Definition at line 103 of file lustre.c.

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

◆ lustre_copy_fid()

static void lustre_copy_fid ( struct m0_fid bf,
const struct m0_md_lustre_fid cf 
)
static

Definition at line 37 of file lustre.c.

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

◆ lustre_copy_name()

static int lustre_copy_name ( struct m0_fop_str n,
const struct m0_md_lustre_logrec rec 
)
static

Definition at line 43 of file lustre.c.

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

◆ lustre_create_fop()

static int lustre_create_fop ( struct m0_fop fop,
void *  data 
)
static

Definition at line 140 of file lustre.c.

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

◆ lustre_get_valid()

static uint16_t lustre_get_valid ( uint16_t  valid)
static

Definition at line 70 of file lustre.c.

Here is the caller graph for this function:

◆ lustre_link_fop()

static int lustre_link_fop ( struct m0_fop fop,
void *  data 
)
static

Definition at line 149 of file lustre.c.

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

◆ lustre_open_fop()

static int lustre_open_fop ( struct m0_fop fop,
void *  data 
)
static

Definition at line 167 of file lustre.c.

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

◆ lustre_rename_fop()

static int lustre_rename_fop ( struct m0_fop fop,
void *  data 
)
static

Definition at line 191 of file lustre.c.

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

◆ lustre_setattr_fop()

static int lustre_setattr_fop ( struct m0_fop fop,
void *  data 
)
static

Definition at line 183 of file lustre.c.

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

◆ lustre_unlink_fop()

static int lustre_unlink_fop ( struct m0_fop fop,
void *  data 
)
static

Definition at line 158 of file lustre.c.

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

◆ m0_md_lustre_fop_alloc()

int m0_md_lustre_fop_alloc ( struct m0_fop **  fop,
void *  data,
struct m0_rpc_machine mach 
)

Definition at line 205 of file lustre.c.

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