Motr  M0
catalogue.c File Reference
#include "lib/trace.h"
#include "lib/assert.h"
#include "lib/errno.h"
#include "motr/magic.h"
#include "dtm/history.h"
#include "dtm/catalogue.h"
Include dependency graph for catalogue.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DTM
 

Functions

 M0_TL_DESCR_DEFINE (cat, "catalogue", M0_INTERNAL, struct m0_dtm_history, h_catlink, h_hi.hi_ups.t_magic, M0_DTM_HI_MAGIX, M0_DTM_CAT_MAGIX)
 
 M0_TL_DEFINE (cat, M0_INTERNAL, struct m0_dtm_history)
 
M0_INTERNAL void m0_dtm_catalogue_init (struct m0_dtm_catalogue *cat)
 
M0_INTERNAL void m0_dtm_catalogue_fini (struct m0_dtm_catalogue *cat)
 
M0_INTERNAL int m0_dtm_catalogue_create (struct m0_dtm_catalogue *cat)
 
M0_INTERNAL int m0_dtm_catalogue_delete (struct m0_dtm_catalogue *cat)
 
M0_INTERNAL int m0_dtm_catalogue_lookup (struct m0_dtm_catalogue *cat, const struct m0_uint128 *id, struct m0_dtm_history **out)
 
M0_INTERNAL int m0_dtm_catalogue_add (struct m0_dtm_catalogue *cat, struct m0_dtm_history *history)
 
M0_INTERNAL int m0_dtm_catalogue_del (struct m0_dtm_catalogue *cat, struct m0_dtm_history *history)
 
M0_INTERNAL int m0_dtm_catalogue_find (struct m0_dtm_catalogue *cat, struct m0_dtm *dtm, const struct m0_uint128 *id, m0_dtm_catalogue_alloc_t *alloc, void *datum, struct m0_dtm_history **out)