62 const struct m0_fid *objid,
71 obj->co_ha_state = state;
83 const struct m0_fid failed[] = {
123 pver->pv_u.subtree.pvs_attr.pa_P);
129 tolvec,
sizeof tolvec));
136 tolvec,
sizeof tolvec));
M0_INTERNAL int m0_conf_ut_cache_init(void)
struct m0_pdclust_attr pvs_attr
M0_INTERNAL struct m0_conf_obj * m0_conf_cache_lookup(const struct m0_conf_cache *cache, const struct m0_fid *id)
struct m0_container container
const struct m0_conf_obj_type * m0_conf_fid_type(const struct m0_fid *fid)
const struct m0_conf_obj_type M0_CONF_PVER_TYPE
#define M0_FID_INIT(container, key)
uint32_t pvs_recd[M0_CONF_PVER_HEIGHT]
static void test_pver_find(void)
struct m0_conf_obj pv_obj
#define M0_SRC_PATH(name)
M0_INTERNAL struct m0_conf_pver ** m0_conf_pvers(const struct m0_conf_obj *obj)
M0_INTERNAL unsigned m0_conf_pver_level(const struct m0_conf_obj *obj)
static void test_pver_fid(void)
enum m0_conf_pver_kind pv_kind
struct m0_conf_cache m0_conf_ut_cache
struct m0_conf_root * root
#define M0_FID_TINIT(type, container, key)
union m0_conf_pver::@122 pv_u
M0_INTERNAL struct m0_fid m0_conf_pver_fid(enum m0_conf_pver_kind kind, uint64_t container, uint64_t key)
static void conf_ut_ha_state_set(const struct m0_conf_cache *cache, const struct m0_fid *objid, enum m0_ha_obj_state state)
M0_INTERNAL int m0_conf_ut_cache_fini(void)
M0_INTERNAL int m0_conf_pver_fid_read(const struct m0_fid *fid, enum m0_conf_pver_kind *kind, uint64_t *container, uint64_t *key)
#define M0_CONF_CAST(ptr, type)
struct m0_ut_suite conf_pvers_ut
static struct m0_pool pool
struct m0_conf_pver_subtree subtree
M0_INTERNAL bool m0_fid_eq(const struct m0_fid *fid0, const struct m0_fid *fid1)
M0_INTERNAL int m0_conf_pver_find_by_fid(const struct m0_fid *fid, const struct m0_conf_root *root, struct m0_conf_pver **out)
M0_INTERNAL void m0_conf_ut_cache_from_file(struct m0_conf_cache *cache, const char *path)
M0_INTERNAL int m0_conf_pver_find(const struct m0_conf_pool *pool, const struct m0_fid *pver_to_skip, struct m0_conf_pver **out)
M0_INTERNAL int m0_conf_pver_formulaic_from_virtual(const struct m0_conf_pver *virtual, const struct m0_conf_root *root, const struct m0_conf_pver **out)