diff options
author | Max Reitz <mreitz@redhat.com> | 2017-06-13 22:20:55 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2017-07-11 17:45:01 +0200 |
commit | dc5f690b97ccdffa79fe7169bb26b0ebf06688bf (patch) | |
tree | cb7ba74b70e9e8ddcd164a6b03082fb8c69386aa /block/file-posix.c | |
parent | 3a691c50f10344b052ad70a4d0ed935276ccca3c (diff) | |
download | qemu-dc5f690b97ccdffa79fe7169bb26b0ebf06688bf.zip qemu-dc5f690b97ccdffa79fe7169bb26b0ebf06688bf.tar.gz qemu-dc5f690b97ccdffa79fe7169bb26b0ebf06688bf.tar.bz2 |
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 'block/file-posix.c')
0 files changed, 0 insertions, 0 deletions