Motr
M0
|
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) |
M0_TL_DESCR_DECLARE (m0_conf_dir, M0_EXTERN) | |
M0_TL_DECLARE (m0_conf_dir, M0_INTERNAL, struct m0_conf_obj) | |
static uint32_t | m0_conf_dir_len (const struct m0_conf_dir *dir) |
|
static |
Constructs directory identifier.
Definition at line 80 of file dir.c.
|
static |
M0_INTERNAL void m0_conf_dir_add | ( | struct m0_conf_dir * | dir, |
struct m0_conf_obj * | obj | ||
) |
Adds object to directory.
Definition at line 43 of file dir.c.
M0_INTERNAL void m0_conf_dir_del | ( | struct m0_conf_dir * | dir, |
struct m0_conf_obj * | obj | ||
) |
Deletes object from directory.
Definition at line 53 of file dir.c.
M0_INTERNAL bool m0_conf_dir_elems_match | ( | const struct m0_conf_dir * | dir, |
const struct m0_fid_arr * | fids | ||
) |
|
inlinestatic |
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 | ||
) |
Creates new m0_conf_dir, populates it with stub objects, and links to parent.
parent | Parent of this directory. | |
children_type | Type of entries. | |
children_ids | [optional] Identifiers of the entries. | |
[out] | out | Resulting pointer. |
m0_conf_dir_new() is transactional: if it fails, the configuration cache (both DAG of objects and m0_conf_cache registry) is left unchanged.
XXX
Definition at line 159 of file dir.c.
M0_TL_DECLARE | ( | m0_conf_dir | , |
M0_INTERNAL | , | ||
struct m0_conf_obj | |||
) |
M0_TL_DEFINE | ( | m0_conf_dir | , |
M0_INTERNAL | , | ||
struct m0_conf_obj | |||
) |
M0_TL_DESCR_DECLARE | ( | m0_conf_dir | , |
M0_EXTERN | |||
) |
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 | |||
) |