]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Write v3-compliant snapshot list on upgrade
authorMax Reitz <mreitz@redhat.com>
Fri, 11 Oct 2019 15:28:05 +0000 (17:28 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 28 Oct 2019 10:53:52 +0000 (11:53 +0100)
commit0a85af351d90e1ae9e06b3bb5290ddf2d5d8b950
tree9ac39111d54c62ab5c7f54a2779d1d733a24668e
parent722efb0c7c6ae62a9a34d7b256cb9cc8612bda5b
qcow2: Write v3-compliant snapshot list on upgrade

qcow2 v3 requires every snapshot table entry to have two extra data
fields: The 64-bit VM state size, and the virtual disk size.  Both are
optional for v2 images, so they may not be present.

qcow2_upgrade() therefore should update the snapshot table to ensure all
entries have these extra data fields.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1727347
Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20191011152814.14791-8-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c