From: Max Reitz <mreitz@redhat.com>
To: Reda Sallahi <fullmanet@gmail.com>, qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org, Kevin Wolf <kwolf@redhat.com>,
Fam Zheng <famz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v5] qemu-img: add skip option to dd
Date: Wed, 10 Aug 2016 18:29:34 +0200 [thread overview]
Message-ID: <4d64e0b8-8bbf-8516-af47-45099ef11a2d@redhat.com> (raw)
In-Reply-To: <20160810141609.32727-1-fullmanet@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1645 bytes --]
On 10.08.2016 16:16, Reda Sallahi wrote:
> This adds the skip option which allows qemu-img dd to skip a number of blocks
> before copying the input.
>
> A test case was added to test the skip option.
>
> Signed-off-by: Reda Sallahi <fullmanet@gmail.com>
> ---
> Depends on:
> [PATCH v9] qemu-img: add the 'dd' subcommand
>
> Changes from v4:
> * Rebase.
> Changes from v3:
> * Change write command to the test image in the test case.
> Changes from v2:
> * Delete a tab that sneaked in (test case 160).
> Changes from v1:
> * Change test case output.
>
> qemu-img-cmds.hx | 4 +--
> qemu-img.c | 50 ++++++++++++++++++++++++++++----
> qemu-img.texi | 4 ++-
> tests/qemu-iotests/160 | 72 ++++++++++++++++++++++++++++++++++++++++++++++
> tests/qemu-iotests/160.out | 51 ++++++++++++++++++++++++++++++++
> tests/qemu-iotests/group | 1 +
> 6 files changed, 174 insertions(+), 8 deletions(-)
> create mode 100755 tests/qemu-iotests/160
> create mode 100644 tests/qemu-iotests/160.out
[...]
> diff --git a/qemu-img.c b/qemu-img.c
> index 034baf7..3adec86 100644
> --- a/qemu-img.c
> +++ b/qemu-img.c
[...]
> @@ -4049,9 +4078,20 @@ static int img_dd(int argc, char **argv)
[...]
> - for (in_pos = 0, out_pos = 0; in_pos < size; block_count++) {
> + for (out_pos = 0; in_pos < size; block_count++) {
*whistle* /me hopes nobody will notice that block_count is absolutely
unused apart from this place...
Anyway, thanks, I've applied this patch to my block-next branch:
https://github.com/XanClic/qemu/commits/block-next
Max
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 498 bytes --]
prev parent reply other threads:[~2016-08-10 16:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-10 14:16 [Qemu-devel] [PATCH v5] qemu-img: add skip option to dd Reda Sallahi
2016-08-10 16:29 ` Max Reitz [this message]
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=4d64e0b8-8bbf-8516-af47-45099ef11a2d@redhat.com \
--to=mreitz@redhat.com \
--cc=famz@redhat.com \
--cc=fullmanet@gmail.com \
--cc=kwolf@redhat.com \
--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).