|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH RFC v11 6/6] qcow2: Add falloc and full preallocation option |
Date: | Thu, 03 Jul 2014 22:35:27 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 02.07.2014 10:17, Hu Tao wrote:
This adds preallocation=falloc and preallocation=full mode to qcow2 image creation. preallocation=full allocates disk space by writing zeros to disk to ensure disk space in any cases. preallocation=falloc likes preallocation=full, but allocates disk space by posix_fallocate(). Signed-off-by: Hu Tao <address@hidden> --- block/qcow2.c | 29 ++++++++++++++++++++++++- tests/qemu-iotests/082.out | 54 +++++++++++++++++++++++----------------------- 2 files changed, 55 insertions(+), 28 deletions(-)
Ah, I missed something: You'll need to fix the output of test 049 as well ("Invalid preallocation mode: '1234'" -> "invalid parameter value: 1234").
Max
[Prev in Thread] | Current Thread | [Next in Thread] |