Motr  M0
mdstore.h File Reference
#include "cob/cob.h"
Include dependency graph for mdstore.h:

Go to the source code of this file.

Data Structures

struct  m0_statfs
 
struct  m0_mdstore
 

Macros

#define __MOTR_MDSTORE_MDSTORE_H__
 
#define M0_MD_MAX_NAME_LEN   256
 

Typedefs

typedef enum m0_mdstore_locate_flags m0_mdstore_locate_flags_t
 

Enumerations

enum  m0_mdstore_locate_flags { M0_MD_LOCATE_STORED = 1 << 0, M0_MD_LOCATE_OPENED = 1 << 1, M0_MD_LOCATE_ORPHAN = 1 << 2 }
 

Functions

M0_INTERNAL int m0_mdstore_statfs (struct m0_mdstore *md, struct m0_statfs *statfs)
 
M0_INTERNAL int m0_mdstore_init (struct m0_mdstore *md, struct m0_be_seg *db, bool init_root)
 
M0_INTERNAL void m0_mdstore_fini (struct m0_mdstore *md)
 
M0_INTERNAL int m0_mdstore_create (struct m0_mdstore *md, struct m0_sm_group *grp, struct m0_cob_domain_id *id, struct m0_be_domain *bedom, struct m0_be_seg *db)
 
M0_INTERNAL int m0_mdstore_destroy (struct m0_mdstore *md, struct m0_sm_group *grp, struct m0_be_domain *bedom)
 
. Input

Handle unlink operation described by and cob is so called statdata cob and returned by m0_cob_locate(). Error code is returned in error case or zero otherwise.

M0_INTERNAL int m0_mdstore_link (struct m0_mdstore *md, struct m0_fid *pfid, struct m0_cob *cob, struct m0_buf *name, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_mdstore_unlink (struct m0_mdstore *md, struct m0_fid *pfid, struct m0_cob *cob, struct m0_buf *name, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_mdstore_rename (struct m0_mdstore *md, struct m0_fid *pfid_tgt, struct m0_fid *pfid_src, struct m0_cob *cob_tgt, struct m0_cob *cob_src, struct m0_buf *tname, struct m0_buf *sname, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_mdstore_fcreate (struct m0_mdstore *md, struct m0_fid *pfid, struct m0_cob_attr *attr, struct m0_cob **out, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_mdstore_open (struct m0_mdstore *md, struct m0_cob *cob, m0_mdstore_locate_flags_t flags, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_mdstore_close (struct m0_mdstore *md, struct m0_cob *cob, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_mdstore_setattr (struct m0_mdstore *md, struct m0_cob *cob, struct m0_cob_attr *attr, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_mdstore_getattr (struct m0_mdstore *md, struct m0_cob *cob, struct m0_cob_attr *attr)
 
M0_INTERNAL int m0_mdstore_readdir (struct m0_mdstore *md, struct m0_cob *cob, struct m0_rdpg *rdpg)
 
M0_INTERNAL int m0_mdstore_locate (struct m0_mdstore *md, const struct m0_fid *fid, struct m0_cob **cob, int flags)
 
M0_INTERNAL int m0_mdstore_lookup (struct m0_mdstore *md, struct m0_fid *pfid, struct m0_buf *name, struct m0_cob **cob)
 
M0_INTERNAL int m0_mdstore_path (struct m0_mdstore *md, struct m0_fid *fid, char **path)
 
M0_INTERNAL void m0_mdstore_create_credit (struct m0_mdstore *md, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_mdstore_link_credit (struct m0_mdstore *md, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_mdstore_unlink_credit (struct m0_mdstore *md, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_mdstore_rename_credit (struct m0_mdstore *md, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_mdstore_setattr_credit (struct m0_mdstore *md, struct m0_be_tx_credit *accum)
 
M0_INTERNAL int m0_mdstore_mod_init (void)
 
M0_INTERNAL void m0_mdstore_mod_fini (void)
 

Macro Definition Documentation

◆ __MOTR_MDSTORE_MDSTORE_H__

#define __MOTR_MDSTORE_MDSTORE_H__

Definition at line 26 of file mdstore.h.