Motr  M0
stob.h File Reference
#include "lib/atomic.h"
#include "lib/types.h"
#include "lib/vec.h"
#include "lib/chan.h"
#include "lib/rwlock.h"
#include "lib/tlist.h"
#include "fid/fid.h"
#include "sm/sm.h"
#include "stob/cache.h"
#include "fid/fid_xc.h"
#include "be/extmap.h"
Include dependency graph for stob.h:

Go to the source code of this file.

Data Structures

struct  m0_stob_id
 
struct  m0_stob
 
struct  m0_stob_ops
 

Macros

#define __MOTR_STOB_STOB_H__
 
#define MAXPATHLEN   1024
 
#define STOB_ID_F   "{" FID_F "," FID_F "}"
 
#define STOB_ID_P(si)   FID_P(&(si)->si_domain_fid), FID_P(&(si)->si_fid)
 

Enumerations

enum  m0_stob_state { CSS_UNKNOWN, CSS_EXISTS, CSS_NOENT, CSS_DELETE }
 

Functions

struct m0_stob_id M0_XCA_DOMAIN (be|rpc)
 
M0_INTERNAL int m0_stob_find (const struct m0_stob_id *id, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_find_by_key (struct m0_stob_domain *dom, const struct m0_fid *stob_fid, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_lookup (const struct m0_stob_id *id, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_lookup_by_key (struct m0_stob_domain *dom, const struct m0_fid *stob_fid, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_locate (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_create_credit (struct m0_stob_domain *dom, struct m0_be_tx_credit *accum)
 
M0_INTERNAL int m0_stob_create (struct m0_stob *stob, struct m0_dtx *dtx, const char *str_cfg)
 
M0_INTERNAL void m0_stob_destroy_credit (struct m0_stob *stob, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_stob_delete_mark (struct m0_stob *stob)
 
M0_INTERNAL int m0_stob_destroy (struct m0_stob *stob, struct m0_dtx *dtx)
 
M0_INTERNAL int m0_stob_punch_credit (struct m0_stob *stob, struct m0_indexvec *want, struct m0_indexvec *got, struct m0_be_tx_credit *accum)
 
M0_INTERNAL int m0_stob_punch (struct m0_stob *stob, struct m0_indexvec *range, struct m0_dtx *dtx)
 
M0_INTERNAL uint32_t m0_stob_block_shift (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_get (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_put (struct m0_stob *stob)
 
M0_INTERNAL struct m0_stob_domainm0_stob_dom_get (struct m0_stob *stob)
 
M0_INTERNAL enum m0_stob_state m0_stob_state_get (struct m0_stob *stob)
 
M0_INTERNAL uint64_t m0_stob_dom_id_get (struct m0_stob *stob)
 
M0_INTERNAL const struct m0_stob_idm0_stob_id_get (struct m0_stob *stob)
 
M0_INTERNAL const struct m0_fidm0_stob_fid_get (struct m0_stob *stob)
 
M0_INTERNAL uint64_t m0_stob_id_dom_id_get (const struct m0_stob_id *stob_id)
 
M0_INTERNAL void m0_stob_id_make (uint64_t container, uint64_t key, const struct m0_fid *dom_id, struct m0_stob_id *stob_id)
 
M0_INTERNAL bool m0_stob_id_eq (const struct m0_stob_id *stob_id0, const struct m0_stob_id *stob_id1)
 
M0_INTERNAL int m0_stob_fd (struct m0_stob *stob)
 
M0_INTERNAL int m0_stob_mod_init (void)
 
M0_INTERNAL void m0_stob_mod_fini (void)
 

Variables

struct m0_fid si_domain_fid
 
struct m0_fid si_fid
 
struct m0_stob M0_XCA_DOMAIN
 

Macro Definition Documentation

◆ __MOTR_STOB_STOB_H__

#define __MOTR_STOB_STOB_H__

Definition at line 26 of file stob.h.

◆ MAXPATHLEN

#define MAXPATHLEN   1024

Definition at line 41 of file stob.h.

Variable Documentation

◆ si_domain_fid

struct m0_fid si_domain_fid

Definition at line 375 of file stob.h.

◆ si_fid

struct m0_fid si_fid

Definition at line 377 of file stob.h.