aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2.h
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-10-11 17:28:03 +0200
committerMax Reitz <mreitz@redhat.com>2019-10-28 11:53:17 +0100
commite0314b56b238ac4f0b74498b7afb016ee85023a6 (patch)
tree6037b96600b8a3350af432a429008952d579e989 /block/qcow2.h
parentfcf9a6b7288154677f6ee9c5f345c4275170e97d (diff)
downloadqemu-e0314b56b238ac4f0b74498b7afb016ee85023a6.zip
qemu-e0314b56b238ac4f0b74498b7afb016ee85023a6.tar.gz
qemu-e0314b56b238ac4f0b74498b7afb016ee85023a6.tar.bz2
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>
Diffstat (limited to 'block/qcow2.h')
-rw-r--r--block/qcow2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qcow2.h b/block/qcow2.h
index 363681c..6c7a23f 100644
--- a/block/qcow2.h
+++ b/block/qcow2.h
@@ -716,6 +716,7 @@ int qcow2_snapshot_load_tmp(BlockDriverState *bs,
void qcow2_free_snapshots(BlockDriverState *bs);
int qcow2_read_snapshots(BlockDriverState *bs, Error **errp);
+int qcow2_write_snapshots(BlockDriverState *bs);
/* qcow2-cache.c functions */
Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables,