#include "fd/fd.h"
#include "conf/obj.h"
#include "lib/misc.h"
Go to the source code of this file.
|
M0_INTERNAL int | m0_fd__tile_init (struct m0_fd_tile *tile, const struct m0_pdclust_attr *la_attr, uint64_t *children_nr, uint64_t depth) |
|
M0_INTERNAL void | m0_fd__tile_populate (struct m0_fd_tile *tile) |
|
M0_INTERNAL int | m0_fd__tree_root_create (struct m0_fd_tree *tree, uint64_t root_children) |
|
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__tree_node_init (struct m0_fd_tree *tree, struct m0_fd_tree_node *node, uint16_t child_nr, const struct m0_fd__tree_cursor *cursor) |
|
M0_INTERNAL void | m0_fd__tree_node_fini (struct m0_fd_tree *tree, struct m0_fd_tree_node *node) |
|
M0_INTERNAL int | m0_fd__tree_cursor_init (struct m0_fd__tree_cursor *cursor, const struct m0_fd_tree *tree, uint16_t depth) |
|
M0_INTERNAL int | m0_fd__tree_cursor_init_at (struct m0_fd__tree_cursor *cursor, const struct m0_fd_tree *tree, const struct m0_fd_tree_node *node, uint32_t child_idx) |
|
M0_INTERNAL struct m0_fd_tree_node ** | m0_fd__tree_cursor_get (struct m0_fd__tree_cursor *cursor) |
|
M0_INTERNAL int | m0_fd__tree_cursor_next (struct m0_fd__tree_cursor *cursor) |
|
M0_INTERNAL int | m0_fd__perm_cache_build (struct m0_fd_tree *tree) |
|
M0_INTERNAL void | m0_fd__perm_cache_destroy (struct m0_fd_tree *tree) |
|
M0_INTERNAL bool | m0_fd__tree_invariant (const struct m0_fd_tree *tree) |
|
M0_INTERNAL bool | m0_fd__tree_node_invariant (const struct m0_fd_tree *tree, const struct m0_fd_tree_node *node) |
|
◆ __MOTR_FD_INT_H__
#define __MOTR_FD_INT_H__ |
◆ m0_fd__perm_cache_build()
M0_INTERNAL int m0_fd__perm_cache_build |
( |
struct m0_fd_tree * |
tree | ) |
|
Definition at line 683 of file fd.c.
◆ m0_fd__perm_cache_destroy()
M0_INTERNAL void m0_fd__perm_cache_destroy |
( |
struct m0_fd_tree * |
tree | ) |
|
Definition at line 818 of file fd.c.
◆ m0_fd__tile_init()
M0_INTERNAL int m0_fd__tile_init |
( |
struct m0_fd_tile * |
tile, |
|
|
const struct m0_pdclust_attr * |
la_attr, |
|
|
uint64_t * |
children_nr, |
|
|
uint64_t |
depth |
|
) |
| |
Calculates the tile parameters using pdclust layout.
Definition at line 204 of file fd.c.
◆ m0_fd__tile_populate()
M0_INTERNAL void m0_fd__tile_populate |
( |
struct m0_fd_tile * |
tile | ) |
|
Populates the tile with appropriate values.
Definition at line 487 of file fd.c.
◆ m0_fd__tree_cursor_get()
◆ m0_fd__tree_cursor_init()
◆ m0_fd__tree_cursor_init_at()
◆ m0_fd__tree_cursor_next()
◆ m0_fd__tree_invariant()
M0_INTERNAL bool m0_fd__tree_invariant |
( |
const struct m0_fd_tree * |
tree | ) |
|
◆ m0_fd__tree_level_populate()
M0_INTERNAL int m0_fd__tree_level_populate |
( |
const struct m0_conf_pver * |
pv, |
|
|
struct m0_fd_tree * |
tree, |
|
|
uint32_t |
level |
|
) |
| |
Allocates and initializes the nodes at a given level, in failure domains tree, using the input pool version.
Definition at line 630 of file fd.c.
◆ m0_fd__tree_node_fini()
◆ m0_fd__tree_node_init()
◆ m0_fd__tree_node_invariant()
◆ m0_fd__tree_root_create()
M0_INTERNAL int m0_fd__tree_root_create |
( |
struct m0_fd_tree * |
tree, |
|
|
uint64_t |
root_children |
|
) |
| |
Allocates and initializes the root node of the failure domains tree.
Definition at line 181 of file fd_tree.c.