chunk: implement chunk_table_put
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef CHUNK_TABLE_H_
|
||||
#define CHUNK_TABLE_H_
|
||||
|
||||
#include "b-tree.h"
|
||||
#include "bin.h"
|
||||
|
||||
#include <blue/core/btree.h>
|
||||
@@ -10,9 +11,14 @@
|
||||
struct ec3_tag_ioctx;
|
||||
|
||||
struct chunk_table {
|
||||
struct b_tree tab_chunks;
|
||||
enum ec3_cluster_size tab_cluster_size;
|
||||
b_btree tab_cache;
|
||||
|
||||
unsigned char *tab_cluster_buf;
|
||||
|
||||
size_t tab_next_cdat_cluster;
|
||||
|
||||
struct ec3_tag_ioctx *tab_ctab;
|
||||
struct ec3_tag_ioctx *tab_cdat;
|
||||
};
|
||||
@@ -22,6 +28,7 @@ extern enum ec3_status chunk_table_init(
|
||||
struct ec3_tag_ioctx *cdat,
|
||||
enum ec3_cluster_size cluster_size,
|
||||
struct chunk_table *tab);
|
||||
extern void chunk_table_init_empty_table(struct chunk_table *table);
|
||||
extern void chunk_table_finish(struct chunk_table *tab);
|
||||
|
||||
extern enum ec3_status chunk_table_get(
|
||||
|
||||
Reference in New Issue
Block a user