Revision 49381094 block/qcow2.h
b/block/qcow2.h | ||
---|---|---|
78 | 78 |
uint64_t vm_clock_nsec; |
79 | 79 |
} QCowSnapshot; |
80 | 80 |
|
81 |
struct Qcow2Cache; |
|
82 |
typedef struct Qcow2Cache Qcow2Cache; |
|
83 |
|
|
81 | 84 |
typedef struct BDRVQcowState { |
82 | 85 |
int cluster_bits; |
83 | 86 |
int cluster_size; |
... | ... | |
215 | 218 |
void qcow2_free_snapshots(BlockDriverState *bs); |
216 | 219 |
int qcow2_read_snapshots(BlockDriverState *bs); |
217 | 220 |
|
221 |
/* qcow2-cache.c functions */ |
|
222 |
Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables, |
|
223 |
bool writethrough); |
|
224 |
int qcow2_cache_destroy(BlockDriverState* bs, Qcow2Cache *c); |
|
225 |
|
|
226 |
void qcow2_cache_entry_mark_dirty(Qcow2Cache *c, void *table); |
|
227 |
int qcow2_cache_flush(BlockDriverState *bs, Qcow2Cache *c); |
|
228 |
int qcow2_cache_set_dependency(BlockDriverState *bs, Qcow2Cache *c, |
|
229 |
Qcow2Cache *dependency); |
|
230 |
|
|
231 |
int qcow2_cache_get(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset, |
|
232 |
void **table); |
|
233 |
int qcow2_cache_get_empty(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset, |
|
234 |
void **table); |
|
235 |
int qcow2_cache_put(BlockDriverState *bs, Qcow2Cache *c, void **table); |
|
236 |
|
|
218 | 237 |
#endif |
Also available in: Unified diff