From: Hu Tao <hutao@cn.fujitsu.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, Peter Lieven <pl@kamp.de>,
Markus Armbruster <armbru@redhat.com>,
Max Reitz <mreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
y-goto@jp.fujitsu.com
Subject: [Qemu-devel] [PATCH v10 0/6] qemu-img: add preallocation=full
Date: Thu, 12 Jun 2014 11:54:21 +0800 [thread overview]
Message-ID: <cover.1402544517.git.hutao@cn.fujitsu.com> (raw)
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
next reply other threads:[~2014-06-12 3:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 3:54 Hu Tao [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1402544517.git.hutao@cn.fujitsu.com \
--to=hutao@cn.fujitsu.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=y-goto@jp.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).