]> xenbits.xensource.com Git - libvirt.git/commit
qemu: migration: Pre-create QCOW2 images for non-shared storage with 0 allocation
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Sep 2024 12:16:58 +0000 (14:16 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Oct 2024 10:57:02 +0000 (12:57 +0200)
commit165b30e06a6d14e8719c82af290d3b20e4cbc462
treeeac762a497cf2ba117b513fbd648093d368bceb6
parent54109db8265198b98c0bd4c148fff442d37d53b5
qemu: migration: Pre-create QCOW2 images for non-shared storage with 0 allocation

Specify that the <allocation> parameter for the newly-created qcow2
image is 0 so that only metadata gets preallocated. Otherwise the
storage driver code instructs qemu to use 'fallocate' preallocation mode
and considers the image fully allocated.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_migration.c