]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Keep unknown extra snapshot data
authorMax Reitz <mreitz@redhat.com>
Fri, 11 Oct 2019 15:28:02 +0000 (17:28 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 28 Oct 2019 10:52:57 +0000 (11:52 +0100)
commitfcf9a6b7288154677f6ee9c5f345c4275170e97d
treebf28894f61b5baffaba246f6883d6f5baa5936d7
parentecf6c7c0c1e5e6883f0e245a7b47101b69dc8235
qcow2: Keep unknown extra snapshot data

The qcow2 specification says to ignore unknown extra data fields in
snapshot table entries.  Currently, we discard it whenever we update the
image, which is a bit different from "ignore".

This patch makes the qcow2 driver keep all unknown extra data fields
when updating an image's snapshot table.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20191011152814.14791-5-mreitz@redhat.com
[mreitz: Adjusted comments as proposed by Eric]
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-snapshot.c
block/qcow2.h