This series implements full image preallocation to create a non-sparse image file at creation time, both for raw and qcow2 format. The purpose is to avoid performance deterioration of the guest cause by sparse image.
v7: - fix qemu-iotests fail case 082. Hu Tao (4): qapi: introduce PreallocMode and a new PreallocMode full. raw, qcow2: don't convert file size to sector size raw-posix: Add full image preallocation option qcow2: Add full image preallocation option block/qcow2.c | 91 ++++++++++++++++++++++++++++++++++++++++------ block/raw-posix.c | 45 ++++++++++++++++++----- block/raw-win32.c | 4 +- qapi-schema.json | 14 +++++++ tests/qemu-iotests/082.out | 54 +++++++++++++-------------- 5 files changed, 159 insertions(+), 49 deletions(-) -- 1.8.5.2.229.g4448466