| Motr
    M0
    | 
#include <sys/stat.h>#include "lib/misc.h"#include "lib/arith.h"#include "lib/errno.h"#include "lib/assert.h"#include "lib/memory.h"#include "lib/bitstring.h"#include "lib/rwlock.h"#include "lib/trace.h"#include "net/net.h"#include "fid/fid.h"#include "fop/fop.h"#include "cob/cob.h"#include "reqh/reqh.h"#include "rpc/rpc_opcodes.h"#include "fop/fom_generic.h"#include "layout/layout.h"#include "layout/pdclust.h"#include "mdservice/md_fops.h"#include "mdservice/md_fops_xc.h"#include "mdservice/md_foms.h"#include "mdservice/md_service.h"#include "mdstore/mdstore.h"
Go to the source code of this file.
| Macros | |
| #define | M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_COB | 
| #define | M0_MD_READDIR_BUFF_SIZE 4096 | 
| Functions | |
| static int | md_locate (struct m0_mdstore *md, struct m0_fid *tfid, struct m0_cob **cob) | 
| static size_t | m0_md_req_fom_locality_get (const struct m0_fom *fom) | 
| M0_INTERNAL void | m0_md_cob_wire2mem (struct m0_cob_attr *attr, const struct m0_fop_cob *body) | 
| M0_INTERNAL void | m0_md_cob_mem2wire (struct m0_fop_cob *body, const struct m0_cob_attr *attr) | 
| static void | m0_md_create_credit (struct m0_mdstore *md, struct m0_be_tx_credit *accum) | 
| static int | m0_md_create (struct m0_mdstore *md, struct m0_fid *pfid, struct m0_fid *tfid, struct m0_cob_attr *attr, struct m0_be_tx *tx) | 
| static int | m0_md_tick_generic (struct m0_fom *fom) | 
| static int | md_tail (struct m0_fom *fom, struct m0_fop_cob *body, struct m0_fop_mod_rep *mod, int rc) | 
| static int | m0_md_tick_create (struct m0_fom *fom) | 
| static int | m0_md_tick_link (struct m0_fom *fom) | 
| static int | m0_md_tick_unlink (struct m0_fom *fom) | 
| static void | m0_md_rename_credit (struct m0_mdstore *md, struct m0_be_tx_credit *accum) | 
| static int | m0_md_rename (struct m0_mdstore *md, struct m0_fid *pfid_tgt, struct m0_fid *pfid_src, struct m0_fid *tfid_tgt, struct m0_fid *tfid_src, struct m0_cob_attr *tattr, struct m0_cob_attr *sattr, struct m0_cob *tcob, struct m0_cob *scob, struct m0_be_tx *tx) | 
| static int | m0_md_tick_rename (struct m0_fom *fom) | 
| static int | m0_md_tick_open (struct m0_fom *fom) | 
| static int | m0_md_tick_close (struct m0_fom *fom) | 
| static int | m0_md_tick_setattr (struct m0_fom *fom) | 
| static int | m0_md_tick_lookup (struct m0_fom *fom) | 
| static int | m0_md_tick_getattr (struct m0_fom *fom) | 
| static void | md_statfs_mem2wire (struct m0_fop_statfs_rep *rep, struct m0_statfs *statfs) | 
| static int | m0_md_tick_getxattr (struct m0_fom *fom) | 
| static int | m0_md_tick_setxattr (struct m0_fom *fom) | 
| static int | m0_md_tick_delxattr (struct m0_fom *fom) | 
| static int | m0_md_tick_listxattr (struct m0_fom *fom) | 
| static int | m0_md_tick_statfs (struct m0_fom *fom) | 
| static int | m0_md_tick_readdir (struct m0_fom *fom) | 
| static int | m0_md_req_path_get (struct m0_mdstore *mdstore, struct m0_fid *fid, struct m0_fop_str *str) | 
| M0_INTERNAL int | m0_md_fop_init (struct m0_fop *fop, struct m0_fom *fom) | 
| static void | m0_md_fom_fini (struct m0_fom *fom) | 
| static void | m0_md_req_fom_fini (struct m0_fom *fom) | 
| M0_INTERNAL int | m0_md_rep_fom_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh) | 
| M0_INTERNAL int | m0_md_req_fom_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh) | 
| Variables | |
| void(* | m0_md_req_fom_fini_func )(struct m0_fom *fom) = &m0_md_fom_fini | 
| static const struct m0_fom_ops | m0_md_fom_create_ops | 
| static const struct m0_fom_ops | m0_md_fom_link_ops | 
| static const struct m0_fom_ops | m0_md_fom_unlink_ops | 
| static const struct m0_fom_ops | m0_md_fom_rename_ops | 
| static const struct m0_fom_ops | m0_md_fom_open_ops | 
| static const struct m0_fom_ops | m0_md_fom_close_ops | 
| static const struct m0_fom_ops | m0_md_fom_setattr_ops | 
| static const struct m0_fom_ops | m0_md_fom_getattr_ops | 
| static const struct m0_fom_ops | m0_md_fom_setxattr_ops | 
| static const struct m0_fom_ops | m0_md_fom_getxattr_ops | 
| static const struct m0_fom_ops | m0_md_fom_delxattr_ops | 
| static const struct m0_fom_ops | m0_md_fom_listxattr_ops | 
| static const struct m0_fom_ops | m0_md_fom_lookup_ops | 
| static const struct m0_fom_ops | m0_md_fom_statfs_ops | 
| static const struct m0_fom_ops | m0_md_fom_readdir_ops | 
| #define M0_MD_READDIR_BUFF_SIZE 4096 | 
| M0_INTERNAL void m0_md_cob_mem2wire | ( | struct m0_fop_cob * | body, | 
| const struct m0_cob_attr * | attr | ||
| ) | 
| M0_INTERNAL void m0_md_cob_wire2mem | ( | struct m0_cob_attr * | attr, | 
| const struct m0_fop_cob * | body | ||
| ) | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | inlinestatic | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| void(* m0_md_req_fom_fini_func) (struct m0_fom *fom) = &m0_md_fom_fini |