]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Expose PreallocMode for resizing
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Jun 2017 20:20:55 +0000 (22:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:01 +0000 (17:45 +0200)
commitdc5f690b97ccdffa79fe7169bb26b0ebf06688bf
treecb7ba74b70e9e8ddcd164a6b03082fb8c69386aa
parent3a691c50f10344b052ad70a4d0ed935276ccca3c
qemu-img: Expose PreallocMode for resizing

Add a --preallocation command line option to qemu-img resize which can
be used to set the PreallocMode parameter of blk_truncate().

While touching this code, fix the fact that we did not handle errors
returned by blk_getlength().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170613202107.10125-5-mreitz@redhat.com
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c
qemu-img.texi