mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qcow2: Make qcow2_write_snapshots() public
Updating the snapshot list will be useful when upgrading a v2 image to v3, so we will need to call this function in qcow2.c. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20191011152814.14791-6-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
fcf9a6b728
commit
e0314b56b2
2 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,7 @@ fail:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add at the end of the file a new list of snapshots */
|
/* add at the end of the file a new list of snapshots */
|
||||||
static int qcow2_write_snapshots(BlockDriverState *bs)
|
int qcow2_write_snapshots(BlockDriverState *bs)
|
||||||
{
|
{
|
||||||
BDRVQcow2State *s = bs->opaque;
|
BDRVQcow2State *s = bs->opaque;
|
||||||
QCowSnapshot *sn;
|
QCowSnapshot *sn;
|
||||||
|
|
|
@ -716,6 +716,7 @@ int qcow2_snapshot_load_tmp(BlockDriverState *bs,
|
||||||
|
|
||||||
void qcow2_free_snapshots(BlockDriverState *bs);
|
void qcow2_free_snapshots(BlockDriverState *bs);
|
||||||
int qcow2_read_snapshots(BlockDriverState *bs, Error **errp);
|
int qcow2_read_snapshots(BlockDriverState *bs, Error **errp);
|
||||||
|
int qcow2_write_snapshots(BlockDriverState *bs);
|
||||||
|
|
||||||
/* qcow2-cache.c functions */
|
/* qcow2-cache.c functions */
|
||||||
Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables,
|
Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue