]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: extract preallocation calculation function
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 5 Jul 2017 12:57:32 +0000 (13:57 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:00 +0000 (17:45 +0200)
commit95c67e3bd747b119aa0a902778e1c20fd7fded7f
tree2f1616a041c8ea47370f016a8fbb4b9a262788fd
parenta843a22a82e0b2bf5841af8a074066ea1d18997a
qcow2: extract preallocation calculation function

Calculating the preallocated image size will be needed to implement
.bdrv_measure().  Extract the code out into a separate function.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20170705125738.8777-4-stefanha@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c