108 struct m0_fid samples[] = {
159 char *confstr =
NULL;
static struct m0_addb2_philter p
M0_INTERNAL int m0_conf_ut_cache_init(void)
M0_INTERNAL void m0_confx_free(struct m0_confx *enc)
static struct m0_semaphore q
static void test_obj_xtors(void)
static void test_obj_fill(void)
M0_INTERNAL struct m0_conf_obj * m0_conf_cache_lookup(const struct m0_conf_cache *cache, const struct m0_fid *id)
M0_INTERNAL void m0_conf_dir_add(struct m0_conf_dir *dir, struct m0_conf_obj *obj)
const struct m0_conf_obj_type * m0_conf_fid_type(const struct m0_fid *fid)
M0_INTERNAL int m0_file_read(const char *path, char **out)
#define M0_CONFX_AT(cx, idx)
M0_INTERNAL int m0_conf_obj_fill(struct m0_conf_obj *dest, const struct m0_confx_obj *src)
static void ut_conf_obj_delete(struct m0_conf_obj *obj)
struct m0_conf_cache m0_conf_ut_cache
#define M0_FID_TINIT(type, container, key)
static struct m0_thread t[8]
M0_INTERNAL int m0_conf_ut_cache_fini(void)
static void ut_conf_obj_create(const struct m0_fid *fid, struct m0_conf_obj **result)
static void test_obj_find(void)
M0_INTERNAL int m0_conf_obj_find(struct m0_conf_cache *cache, const struct m0_fid *id, struct m0_conf_obj **out)
#define M0_CONF_CAST(ptr, type)
M0_INTERNAL int m0_conf_cache_add(struct m0_conf_cache *cache, struct m0_conf_obj *obj)
M0_INTERNAL const struct m0_conf_obj_type * m0_conf_obj_type_next(const struct m0_conf_obj_type *otype)
bool m0_conf_fid_is_valid(const struct m0_fid *fid)
M0_INTERNAL bool m0_fid_eq(const struct m0_fid *fid0, const struct m0_fid *fid1)
#define m0_forall(var, nr,...)
M0_INTERNAL struct m0_conf_obj * m0_conf_obj_create(const struct m0_fid *id, struct m0_conf_cache *cache)
M0_INTERNAL int m0_confstr_parse(const char *str, struct m0_confx **out)
M0_INTERNAL void m0_conf_cache_del(const struct m0_conf_cache *cache, struct m0_conf_obj *obj)
M0_INTERNAL void m0_conf_obj_delete(struct m0_conf_obj *obj)
M0_INTERNAL void m0_conf_dir_del(struct m0_conf_dir *dir, struct m0_conf_obj *obj)
M0_INTERNAL void m0_conf_cache_lock(struct m0_conf_cache *cache)
struct m0_ut_suite conf_ut
static void test_cache(void)
M0_INTERNAL void m0_conf_cache_unlock(struct m0_conf_cache *cache)
static void test_dir_add_del(void)
const struct m0_fid * m0_conf_objx_fid(const struct m0_confx_obj *obj)