All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v10 0/6] qemu-img: add preallocation=full
@ 2014-06-12  3:54 Hu Tao
  2014-06-12  3:54 ` [Qemu-devel] [PATCH v10 1/6] block: round up file size to nearest sector Hu Tao
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Hu Tao @ 2014-06-12  3:54 UTC (permalink / raw)
  To: qemu-devel
  Cc: kwolf, Peter Lieven, Markus Armbruster, Max Reitz,
	Stefan Hajnoczi, y-goto

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.

note: there are two false positives of checkpatch.pl to patch 01.

changes to v9:

 - use ROUND_UP to do round up
 - split the round up into its own patch and add test case
 - new patch rename parse_enum_option to qapi_enum_parse and make it public
 - reuse qapi_enum_parse

Hu Tao (6):
  block: round up file size to nearest sector
  raw, qcow2: don't convert file size to sector size
  rename parse_enum_option to qapi_enum_parse and make it public
  qapi: introduce PreallocMode and a new PreallocMode full.
  raw-posix: Add full image preallocation option
  qcow2: Add full image preallocation option

 block/qcow2.c              | 102 ++++++++++++++++++++++++++++++++++++++-------
 block/raw-posix.c          |  61 +++++++++++++++++++++++----
 block/raw-win32.c          |   4 +-
 blockdev.c                 |  22 +---------
 include/qapi/util.h        |  17 ++++++++
 qapi-schema.json           |  14 +++++++
 qapi/Makefile.objs         |   2 +-
 qapi/qapi-util.c           |  32 ++++++++++++++
 tests/qemu-iotests/082.out |  54 ++++++++++++------------
 tests/qemu-iotests/093     |  64 ++++++++++++++++++++++++++++
 tests/qemu-iotests/093.out |  14 +++++++
 tests/qemu-iotests/group   |   1 +
 12 files changed, 313 insertions(+), 74 deletions(-)
 create mode 100644 include/qapi/util.h
 create mode 100644 qapi/qapi-util.c
 create mode 100755 tests/qemu-iotests/093
 create mode 100644 tests/qemu-iotests/093.out

-- 
1.9.3

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

end of thread, other threads:[~2014-06-25  6:06 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12  3:54 [Qemu-devel] [PATCH v10 0/6] qemu-img: add preallocation=full Hu Tao
2014-06-12  3:54 ` [Qemu-devel] [PATCH v10 1/6] block: round up file size to nearest sector Hu Tao
2014-06-14 18:51   ` Max Reitz
2014-06-12  3:54 ` [Qemu-devel] [PATCH v10 2/6] raw, qcow2: don't convert file size to sector size Hu Tao
2014-06-14 19:00   ` Max Reitz
2014-06-12  3:54 ` [Qemu-devel] [PATCH v10 3/6] rename parse_enum_option to qapi_enum_parse and make it public Hu Tao
2014-06-14 19:07   ` Max Reitz
2014-06-17  2:36     ` Hu Tao
2014-06-12  3:54 ` [Qemu-devel] [PATCH v10 4/6] qapi: introduce PreallocMode and a new PreallocMode full Hu Tao
2014-06-14 19:17   ` Max Reitz
2014-06-25  5:46     ` Hu Tao
2014-06-12  3:54 ` [Qemu-devel] [PATCH v10 5/6] raw-posix: Add full image preallocation option Hu Tao
2014-06-14 19:38   ` Max Reitz
2014-06-25  6:04     ` Hu Tao
2014-06-12  3:54 ` [Qemu-devel] [PATCH v10 6/6] qcow2: " Hu Tao
2014-06-14 20:37   ` Max Reitz
2014-06-20  8:25     ` Hu Tao
2014-06-20 18:37       ` Max Reitz
2014-06-25  5:41         ` Hu Tao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.