]> git.proxmox.com Git - qemu.git/commit
qcow2: Save disk size in snapshot header
authorKevin Wolf <kwolf@redhat.com>
Wed, 11 Apr 2012 14:33:50 +0000 (16:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 20 Apr 2012 13:57:27 +0000 (15:57 +0200)
commit90b277593df873d3a2480f002e2eb5fe1f8e5277
treeedea32b742ffcbfb8308e84abcaab635fad46399
parent4fabffc11234d0587a213418574095e036110cd2
qcow2: Save disk size in snapshot header

This allows that different snapshots of an image can have different
sizes, which is a requirement for enabling image resizing even with
images that have internal snapshots.

We don't do the actual support for it now, but make sure that the
additional field is present and not completely ignored in all version 3
images. When trying to load a snapshot of different size, it returns
an error.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-snapshot.c
block/qcow2.h