[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V9 0/4] qemu-img: add preallocation=full
From: |
Chen Fan |
Subject: |
[Qemu-devel] [PATCH V9 0/4] qemu-img: add preallocation=full |
Date: |
Tue, 27 May 2014 16:22:54 +0800 |
From: Hu Tao <address@hidden>
The purpose of this series is to use posix_fallocate() when creating
img file to ensure there are disk space for it which is way fast than
acturally writing to disk. But this only works in file system level.
For cases like thin provisioning, an option full preallocation is
added to write zeros to storage to ensure disk space.
changes to v8 are mainly address Eric's comments, as:
- round up image file size to nearest sector size
- dont' blindly lose error info
- target for 2.1 rather than 2.0
- and, rebase to latest git tree
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 | 95 ++++++++++++++++++++++++++++++++++++++++------
block/raw-posix.c | 64 +++++++++++++++++++++++++++----
block/raw-win32.c | 5 ++-
qapi-schema.json | 14 +++++++
tests/qemu-iotests/082.out | 54 +++++++++++++-------------
5 files changed, 184 insertions(+), 48 deletions(-)
--
1.9.3
- [Qemu-devel] [PATCH V9 0/4] qemu-img: add preallocation=full,
Chen Fan <=
[Qemu-devel] [PATCH V9 2/4] raw, qcow2: don't convert file size to sector size, Chen Fan, 2014/05/27