]> Git Repo - qemu.git/commit - block/qcow2-snapshot.c
qcow2: Keep unknown extra snapshot data
authorMax Reitz <[email protected]>
Fri, 11 Oct 2019 15:28:02 +0000 (17:28 +0200)
committerMax Reitz <[email protected]>
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-id: 20191011152814[email protected]
[mreitz: Adjusted comments as proposed by Eric]
Signed-off-by: Max Reitz <[email protected]>
block/qcow2-snapshot.c
block/qcow2.h
This page took 0.02265 seconds and 4 git commands to generate.