From: Hu Tao <hutao@cn.fujitsu.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>,
qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: [Qemu-devel] [PATCH RFC v11 0/6] qcow2, raw: add preallocation=full and preallocation=falloc
Date: Wed, 2 Jul 2014 16:17:27 +0800 [thread overview]
Message-ID: <cover.1404287261.git.hutao@cn.fujitsu.com> (raw)
Kevin,
This is v11 series for you to check how the series depends on Max's
minimal_blob_size(). I'm aware that you rejected the calculation of
metadata size, but posting this series so that you can comment on it.
This series depends on patches 1-3 of Max's series 'qemu-img: Implement
commit like QMP'.
Option preallocation=full preallocates disk space for image by writing
zeros to disk, this ensures disk space in any cases.
Option preallocation=falloc preallocates disk space by calling
posix_fallocate(). This is faster than preallocation=full.
The series is also at https://github.com/taohu/qemu/commits/preallocation-v11
for you to check out.
changes to v10:
- PreallocMode is moved from file qapi-schema.json to qapi/block-core.json
- introdues preallocation=falloc, no changes to preallocation=metadata
- using minimal_blob_size() to calculate metadata size for qcow2
- indentation fix in file blockdev.c
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 falloc and full preallocation option
qcow2: Add falloc and full preallocation option
block/qcow2.c | 54 ++++++++++++++++++++++++++++---------
block/raw-posix.c | 66 +++++++++++++++++++++++++++++++++++++++-------
block/raw-win32.c | 6 ++---
blockdev.c | 30 +++++----------------
include/qapi/util.h | 17 ++++++++++++
qapi/Makefile.objs | 1 +
qapi/block-core.json | 17 ++++++++++++
qapi/qapi-util.c | 32 ++++++++++++++++++++++
tests/qemu-iotests/082.out | 54 ++++++++++++++++++-------------------
tests/qemu-iotests/096 | 64 ++++++++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/096.out | 14 ++++++++++
tests/qemu-iotests/group | 1 +
12 files changed, 280 insertions(+), 76 deletions(-)
create mode 100644 include/qapi/util.h
create mode 100644 qapi/qapi-util.c
create mode 100755 tests/qemu-iotests/096
create mode 100644 tests/qemu-iotests/096.out
--
1.9.3
next reply other threads:[~2014-07-02 8:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 8:17 Hu Tao [this message]
2014-07-02 8:17 ` [Qemu-devel] [PATCH RFC v11 1/6] block: round up file size to nearest sector Hu Tao
2014-07-02 13:29 ` [Qemu-devel] [PATCH for-2.1? " Eric Blake
2014-07-02 8:17 ` [Qemu-devel] [PATCH RFC v11 2/6] raw, qcow2: don't convert file size to sector size Hu Tao
2014-07-03 20:28 ` Eric Blake
2014-07-02 8:17 ` [Qemu-devel] [PATCH RFC v11 3/6] rename parse_enum_option to qapi_enum_parse and make it public Hu Tao
2014-07-03 20:29 ` Eric Blake
2014-07-02 8:17 ` [Qemu-devel] [PATCH RFC v11 4/6] qapi: introduce PreallocMode and a new PreallocMode full Hu Tao
2014-07-03 20:00 ` Max Reitz
2014-07-02 8:17 ` [Qemu-devel] [PATCH RFC v11 5/6] raw-posix: Add falloc and full preallocation option Hu Tao
2014-07-03 20:10 ` Max Reitz
2014-07-02 8:17 ` [Qemu-devel] [PATCH RFC v11 6/6] qcow2: " Hu Tao
2014-07-03 20:30 ` Max Reitz
2014-07-03 20:35 ` Max Reitz
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.1404287261.git.hutao@cn.fujitsu.com \
--to=hutao@cn.fujitsu.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--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 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.