|
static uint64_t | parity_group_size (const struct m0_pdclust_attr *la_attr) |
|
static uint64_t | fault_tolerant_idx_get (uint64_t idx, uint64_t *children_nr, uint64_t depth) |
|
static int | symm_tree_attr_get (const struct m0_conf_pver *pv, uint32_t *depth, uint64_t *children_nr) |
|
static bool | fd_tile_invariant (const struct m0_fd_tile *tile) |
|
static int | tolerance_check (const struct m0_conf_pver *pv, uint64_t *children_nr, uint32_t first_level, uint32_t *failure_level) |
|
static void | uniform_distribute (uint64_t **units, uint64_t level, uint64_t parent_nr, uint64_t child_nr) |
|
static uint64_t | units_calc (uint64_t **units, uint64_t level, uint64_t parent_nr, uint64_t child_nr, uint64_t tol) |
|
static uint64_t | pool_width_calc (uint64_t *children_nr, uint64_t depth) |
|
static void | permuted_tgt_get (struct m0_pdclust_instance *pi, uint64_t omega, uint64_t *rel_vidx, uint64_t *tgt_idx) |
|
static void | inverse_permuted_idx_get (struct m0_pdclust_instance *pi, uint64_t omega, uint64_t perm_idx, uint64_t *rel_idx) |
|
static struct m0_fd_perm_cache * | cache_get (struct m0_pdclust_instance *pi, struct m0_fd_tree_node *node) |
|
static void | fd_permute (struct m0_fd_perm_cache *cache, struct m0_uint128 *seed, struct m0_fid *gfid, uint64_t omega) |
|
static void | cache_info_update (struct m0_fd_cache_info *cache_info, uint64_t cnt) |
|
static bool | is_cache_valid (const struct m0_fd_perm_cache *cache, uint64_t omega, const struct m0_fid *gfid) |
|
static uint64_t | tree2pv_level_conv (uint64_t level, uint64_t tree_depth) |
|
static bool | is_objv (const struct m0_conf_obj *obj, const struct m0_conf_obj_type *type) |
|
static bool | is_objv_site (const struct m0_conf_obj *obj) |
|
static bool | is_objv_rack (const struct m0_conf_obj *obj) |
|
static bool | is_objv_encl (const struct m0_conf_obj *obj) |
|
static bool | is_objv_ctrl (const struct m0_conf_obj *obj) |
|
static bool | is_objv_disk (const struct m0_conf_obj *obj) |
|
M0_INTERNAL int | m0_fd__tile_init (struct m0_fd_tile *tile, const struct m0_pdclust_attr *la_attr, uint64_t *children, uint64_t depth) |
|
static int | objs_of_level_count (struct m0_conf_obj *obj, void *arg) |
|
static int | min_children_get (struct m0_conf_obj *obj, void *arg) |
|
M0_INTERNAL int | m0_fd_tolerance_check (struct m0_conf_pver *pv, uint32_t *failure_level) |
|
M0_INTERNAL int | m0_fd_tile_build (const struct m0_conf_pver *pv, struct m0_pool_version *pool_ver, uint32_t *failure_level) |
|
M0_INTERNAL void | m0_fd__tile_populate (struct m0_fd_tile *tile) |
|
M0_INTERNAL void | m0_fd_src_to_tgt (const struct m0_fd_tile *tile, const struct m0_pdclust_src_addr *src, struct m0_pdclust_tgt_addr *tgt) |
|
M0_INTERNAL void | m0_fd_tgt_to_src (const struct m0_fd_tile *tile, const struct m0_pdclust_tgt_addr *tgt, struct m0_pdclust_src_addr *src) |
|
M0_INTERNAL void | m0_fd_tile_destroy (struct m0_fd_tile *tile) |
|
M0_INTERNAL int | m0_fd_tree_build (const struct m0_conf_pver *pv, struct m0_fd_tree *tree) |
|
M0_INTERNAL int | m0_fd__tree_level_populate (const struct m0_conf_pver *pv, struct m0_fd_tree *tree, uint32_t level) |
|
M0_INTERNAL int | m0_fd__perm_cache_build (struct m0_fd_tree *tree) |
|
M0_INTERNAL int | m0_fd_perm_cache_init (struct m0_fd_perm_cache *cache, uint64_t len) |
|
M0_INTERNAL void | m0_fd_tree_destroy (struct m0_fd_tree *tree) |
|
M0_INTERNAL void | m0_fd__perm_cache_destroy (struct m0_fd_tree *tree) |
|
M0_INTERNAL void | m0_fd_perm_cache_fini (struct m0_fd_perm_cache *cache) |
|
static struct m0_pool_version * | pool_ver_get (const struct m0_pdclust_instance *pd_instance) |
|
M0_INTERNAL void | m0_fd_fwd_map (struct m0_pdclust_instance *pi, const struct m0_pdclust_src_addr *src, struct m0_pdclust_tgt_addr *tgt) |
|
M0_INTERNAL void | m0_fd_bwd_map (struct m0_pdclust_instance *pi, const struct m0_pdclust_tgt_addr *tgt, struct m0_pdclust_src_addr *src) |
|