qcow2: Add falloc and full preallocation option

Enterprise / Virtualization / QEMU - Hu Tao [cn.fujitsu.com] - 12 September 2014 08:43 UTC

preallocation=falloc allocates disk space by posix_fallocate(), preallocation=full allocates disk space by writing zeros to disk. Both modes imply preallocation=metadata.

0e4271b qcow2: Add falloc and full preallocation option
block/qcow2.c | 63 +++++++++++++++++++++++++++++++++++++-------
qemu-doc.texi | 8 +++---
qemu-img.texi | 8 +++---
tests/qemu-iotests/082.out | 54 ++++++++++++++++++-------------------
4 files changed, 90 insertions(+), 43 deletions(-)

Upstream: git.qemu.org


  • Share