Revision c142442b block/qcow2.h
b/block/qcow2.h | ||
---|---|---|
138 | 138 |
return (size + (s->cluster_size - 1)) >> s->cluster_bits; |
139 | 139 |
} |
140 | 140 |
|
141 |
static inline int64_t align_offset(int64_t offset, int n) |
|
142 |
{ |
|
143 |
offset = (offset + n - 1) & ~(n - 1); |
|
144 |
return offset; |
|
145 |
} |
|
146 |
|
|
147 |
|
|
141 | 148 |
// FIXME Need qcow2_ prefix to global functions |
142 | 149 |
|
143 | 150 |
/* qcow2.c functions */ |
... | ... | |
184 | 191 |
int alloc_cluster_link_l2(BlockDriverState *bs, uint64_t cluster_offset, |
185 | 192 |
QCowL2Meta *m); |
186 | 193 |
|
194 |
/* qcow2-snapshot.c functions */ |
|
195 |
int qcow_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info); |
|
196 |
int qcow_snapshot_goto(BlockDriverState *bs, const char *snapshot_id); |
|
197 |
int qcow_snapshot_delete(BlockDriverState *bs, const char *snapshot_id); |
|
198 |
int qcow_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab); |
|
199 |
|
|
200 |
void qcow_free_snapshots(BlockDriverState *bs); |
|
201 |
int qcow_read_snapshots(BlockDriverState *bs); |
|
202 |
|
|
187 | 203 |
#endif |
Also available in: Unified diff