diff options
| author | Max Reitz | 2017-06-13 22:20:55 +0200 |
|---|---|---|
| committer | Max Reitz | 2017-07-11 17:45:01 +0200 |
| commit | dc5f690b97ccdffa79fe7169bb26b0ebf06688bf (patch) | |
| tree | cb7ba74b70e9e8ddcd164a6b03082fb8c69386aa /scripts | |
| parent | block: Add PreallocMode to blk_truncate() (diff) | |
| download | qemu-dc5f690b97ccdffa79fe7169bb26b0ebf06688bf.tar.gz qemu-dc5f690b97ccdffa79fe7169bb26b0ebf06688bf.tar.xz qemu-dc5f690b97ccdffa79fe7169bb26b0ebf06688bf.zip | |
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
