[libvirt PATCH] storage_util: fix qemu-img sparse allocation

Michal Privoznik mprivozn at redhat.com
Tue Aug 25 14:23:45 UTC 2020


On 8/25/20 3:16 PM, Pavel Hrdina wrote:
> Commit <c9ec7088c7a3f4cd26bb471f1f243931fff6f4f9> introduced a support
> to fully allocate qcow2 images when <allocation> matches <capacity> but
> it doesn't work as expected.
> 
> The issue is that info.size_arg is in KB but the info.allocation
> introduced by the mentioned commit is in B. This results in using
> "preallocation=falloc," in cases where "preallocation=metadata," should
> be used.
> 
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
>   src/storage/storage_util.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Ooops.

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal




More information about the libvir-list mailing list