]> git.proxmox.com Git - mirror_qemu.git/commit
block/qcow2: Metadata preallocation for truncate
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Jun 2017 20:21:02 +0000 (22:21 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:02 +0000 (17:45 +0200)
commit95b98f343b054e100a905181cd140c653c80cbad
treee4ccb479cdfe2d26ddefe76f8079974f852aff50
parent652fecd0058de7d90609c347bfdbeff76ef817a6
block/qcow2: Metadata preallocation for truncate

We can support PREALLOC_MODE_METADATA by invoking preallocate() in
qcow2_truncate().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170613202107.10125-12-mreitz@redhat.com
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c