Motr  M0
dir.c File Reference
#include "lib/trace.h"
#include "conf/obj.h"
#include "conf/obj_ops.h"
#include "conf/cache.h"
#include "motr/magic.h"
#include "lib/errno.h"
Include dependency graph for dir.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF
 

Functions

 M0_TL_DESCR_DEFINE (m0_conf_dir, "m0_conf_dir::cd_items", M0_INTERNAL, struct m0_conf_obj, co_dir_link, co_gen_magic, M0_CONF_OBJ_MAGIC, M0_CONF_DIR_MAGIC)
 
 M0_TL_DEFINE (m0_conf_dir, M0_INTERNAL, struct m0_conf_obj)
 
M0_INTERNAL void m0_conf_dir_add (struct m0_conf_dir *dir, struct m0_conf_obj *obj)
 
M0_INTERNAL void m0_conf_dir_del (struct m0_conf_dir *dir, struct m0_conf_obj *obj)
 
M0_INTERNAL bool m0_conf_dir_elems_match (const struct m0_conf_dir *dir, const struct m0_fid_arr *fids)
 
static void conf_dir_id_build (struct m0_fid *out, const struct m0_fid *parent, const struct m0_conf_obj_type *children_type)
 
static int conf_dir_new (struct m0_conf_cache *cache, const struct m0_fid *parent, const struct m0_fid *relfid, const struct m0_conf_obj_type *children_type, const struct m0_fid_arr *children_ids, struct m0_conf_dir **out)
 
M0_INTERNAL int m0_conf_dir_new (struct m0_conf_obj *parent, const struct m0_fid *relfid, const struct m0_conf_obj_type *children_type, const struct m0_fid_arr *children_ids, struct m0_conf_dir **out)