#include #include "bin.h" #include "cluster.h" static const struct b_tree_ops cluster_table_ops = { .tree_get_node = NULL, .tree_put_node = NULL, .tree_alloc_node = NULL, .node_get_nr_entries = NULL, .node_set_nr_entries = NULL, .node_get_entries = NULL, .node_get_children = NULL, .entry_compare = NULL, }; void cluster_table_init(struct cluster_table *table, FILE *storage) { memset(table, 0x0, sizeof *table); table->t_storage = storage; b_tree_init(&table->t_base, &cluster_table_ops, sizeof(struct ec3_cluster_group), sizeof(struct ec3_cluster), EC3_CLUSTERS_PER_GROUP + 1); } void cluster_table_finish(struct cluster_table *table) { } int cluster_table_get(struct cluster_table *table, unsigned long id, struct cluster *out) { return -1; } int cluster_table_put(struct cluster_table *table, const struct cluster *in) { return -1; }