From: "Andreas Färber" <afaerber@suse.de>
To: Brad Campbell <brad@fnarfbargle.com>
Cc: kwolf@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RESEND] [PATCH] Properly use backing file argument to git-img convert
Date: Mon, 03 Sep 2012 16:23:57 +0200 [thread overview]
Message-ID: <5044BD7D.3000706@suse.de> (raw)
In-Reply-To: <1346658419-13829-1-git-send-email-brad@fnarfbargle.com>
Am 03.09.2012 09:46, schrieb Brad Campbell:
> Converting to an image with an output backing file would write out the contents
> of the source image whether or not it was already contained in the new backing
> file. This commit ensures that the source file is checked against the new
> backing file and output is only allocated if it obsoletes or extends data
> already in the supplied backing file.
>
>
> Signed-off-by: Brad Campbell <brad@fnarfbargle.com>
For a resend it would've been nice to get the typos out, I'm sure you
mean qemu-img. :) And it would be nice to have that marked as the topic
then so that it's easily recognized ("qemu-img: Bla bla").
> ---
> qemu-img.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++-------------
> 1 files changed, 57 insertions(+), 17 deletions(-)
>
> diff --git a/qemu-img.c b/qemu-img.c
> index c8a70ff..3fb6cbf 100644
> --- a/qemu-img.c
> +++ b/qemu-img.c
> @@ -629,11 +629,12 @@ static int img_convert(int argc, char **argv)
> int progress = 0, flags;
> const char *fmt, *out_fmt, *cache, *out_baseimg, *out_filename;
> BlockDriver *drv, *proto_drv;
> - BlockDriverState **bs = NULL, *out_bs = NULL;
> + BlockDriverState **bs = NULL, *out_bs = NULL, *out_bf = NULL;
> int64_t total_sectors, nb_sectors, sector_num, bs_offset;
> - uint64_t bs_sectors;
> + uint64_t bf_sectors, bs_sectors;
> uint8_t * buf = NULL;
> const uint8_t *buf1;
> + uint8_t * bf_buf = NULL;
Should be *bf_buf despite the * buf line above (checkpatch.pl sometimes
mixes up multiplication and declaration of pointer variables).
> BlockDriverInfo bdi;
> QEMUOptionParameter *param = NULL, *create_options = NULL;
> QEMUOptionParameter *out_baseimg_param;
[snip]
Note that the merge window for v1.3 is not yet open so you'll have to be
a bit patient before seeing your patch in qemu.git.
http://wiki.qemu.org/Planning/1.2
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2012-09-03 14:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 7:46 [Qemu-devel] [RESEND] [PATCH] Properly use backing file argument to git-img convert Brad Campbell
2012-09-03 14:23 ` Andreas Färber [this message]
2012-09-04 2:31 ` [Qemu-devel] [RESEND] [PATCH] Properly use backing file argument to qemu-img convert Brad Campbell
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=5044BD7D.3000706@suse.de \
--to=afaerber@suse.de \
--cc=brad@fnarfbargle.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).