From: Kevin Wolf <kwolf@redhat.com>
To: qemu-block@nongnu.org
Cc: kwolf@redhat.com, pl@kamp.de, qemu-devel@nongnu.org,
stefanha@redhat.com, mreitz@redhat.com
Subject: [Qemu-devel] [PATCH v2 0/3] qemu-img convert: Rewrite copying logic
Date: Thu, 19 Mar 2015 13:33:30 +0100 [thread overview]
Message-ID: <1426768413-31079-1-git-send-email-kwolf@redhat.com> (raw)
See the commit message of patch 2 for the background.
v2:
- Rebased. Commit f1d3cd79 changed many bdrv_* calls to blk_* calls.
This version tries to keep those conversions and use BlockBackend
where qemu.git master does or where it makes sense. Added patch 1 to
get blk_write_zeroes().
- Renamed s->out_backing as s->target_has_backing [Max]
- convert_iteration_sectors(): Limit n to BDRV_REQUEST_MAX_SECTORS
instead of INT_MAX [Max]
- convert_read(): Fixed sector number for image concatenation [Max]
- Fixed -S 0 for full allocation [Max, Peter]
- Leave has_zero_init = false instead of failing the conversion if
bdrv_make_zero() returns an error [Max]
- Set has_zero_init = true instead of 1 [Max]
- Don't ignore error returns in a final blk_write_compressed() [Max]
- Removed TODO comment after deciding that no change is needed
- Many added tests
Kevin Wolf (3):
block-backend: Expose bdrv_write_zeroes()
qemu-img convert: Rewrite copying logic
qemu-iotests: Some qemu-img convert tests
block/block-backend.c | 11 +
include/sysemu/block-backend.h | 2 +
qemu-img.c | 516 +++++++++++++++++++++++++----------------
tests/qemu-iotests/122 | 223 ++++++++++++++++++
tests/qemu-iotests/122.out | 209 +++++++++++++++++
tests/qemu-iotests/group | 1 +
6 files changed, 756 insertions(+), 206 deletions(-)
create mode 100755 tests/qemu-iotests/122
create mode 100644 tests/qemu-iotests/122.out
--
1.8.3.1
next reply other threads:[~2015-03-19 12:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 12:33 Kevin Wolf [this message]
2015-03-19 12:33 ` [Qemu-devel] [PATCH v2 1/3] block-backend: Expose bdrv_write_zeroes() Kevin Wolf
2015-03-19 13:27 ` Max Reitz
2015-03-19 12:33 ` [Qemu-devel] [PATCH v2 2/3] qemu-img convert: Rewrite copying logic Kevin Wolf
2015-03-19 13:53 ` Max Reitz
2015-03-19 12:33 ` [Qemu-devel] [PATCH v2 3/3] qemu-iotests: Some qemu-img convert tests Kevin Wolf
2015-03-19 14:44 ` Max Reitz
2015-03-19 14:44 ` Max Reitz
2015-04-02 9:53 ` [Qemu-devel] [PATCH v2 0/3] qemu-img convert: Rewrite copying logic Kevin Wolf
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=1426768413-31079-1-git-send-email-kwolf@redhat.com \
--to=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).