qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v8 0/4] qemu-img: add preallocation=full
@ 2014-04-09  7:12 Hu Tao
  2014-04-09  7:12 ` [Qemu-devel] [PATCH v8 1/4] qapi: introduce PreallocMode and a new PreallocMode full Hu Tao
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Hu Tao @ 2014-04-09  7:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Stefan Hajnoczi

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.

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          | 63 ++++++++++++++++++++++++++----
 block/raw-win32.c          |  4 +-
 qapi-schema.json           | 14 +++++++
 tests/qemu-iotests/082.out | 54 +++++++++++++-------------
 5 files changed, 182 insertions(+), 48 deletions(-)

-- 
1.8.5.2.229.g4448466

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-06 12:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09  7:12 [Qemu-devel] [PATCH v8 0/4] qemu-img: add preallocation=full Hu Tao
2014-04-09  7:12 ` [Qemu-devel] [PATCH v8 1/4] qapi: introduce PreallocMode and a new PreallocMode full Hu Tao
2014-04-09 17:04   ` Eric Blake
2014-04-09  7:12 ` [Qemu-devel] [PATCH v8 2/4] raw, qcow2: don't convert file size to sector size Hu Tao
2014-04-09  7:12 ` [Qemu-devel] [PATCH v8 3/4] raw-posix: Add full image preallocation option Hu Tao
2014-04-09  7:12 ` [Qemu-devel] [PATCH v8 4/4] qcow2: " Hu Tao
2014-05-06 12:19 ` [Qemu-devel] [PATCH v8 0/4] qemu-img: add preallocation=full Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).