From: Kevin Wolf <kwolf@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: jcody@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] block: introduce bdrv_swap, implement bdrv_append on top of it
Date: Wed, 04 Jul 2012 12:30:25 +0200 [thread overview]
Message-ID: <4FF41B41.6030809@redhat.com> (raw)
In-Reply-To: <1339685702-10176-3-git-send-email-pbonzini@redhat.com>
Am 14.06.2012 16:55, schrieb Paolo Bonzini:
> +/*
> + * Add new bs contents at the top of an image chain while the chain is
> + * live, while keeping required fields on the top layer.
> + *
> + * This will modify the BlockDriverState fields, and swap contents
> + * between bs_new and bs_top. Both bs_new and bs_top are modified.
> + *
> + * bs_new is required to be anonymous.
> + *
> + * This function does not create any image files.
> + */
> +void bdrv_append(BlockDriverState *bs_new, BlockDriverState *bs_top)
> +{
> + bdrv_swap(bs_new, bs_top);
> +
> + /* The contents of 'tmp' will become bs_top, as we are
> + * swapping bs_new and bs_top contents. */
This comment looks outdated, there's not tmp in this function.
Kevin
next prev parent reply other threads:[~2012-07-04 10:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 14:55 [Qemu-devel] [PATCH 0/2] introduce bdrv_swap, implement bdrv_append on top Paolo Bonzini
2012-06-14 14:55 ` [Qemu-devel] [PATCH 1/2] block: copy over job and dirty bitmap fields in bdrv_append Paolo Bonzini
2012-06-14 14:55 ` [Qemu-devel] [PATCH 2/2] block: introduce bdrv_swap, implement bdrv_append on top of it Paolo Bonzini
2012-07-04 10:30 ` Kevin Wolf [this message]
2012-06-15 9:38 ` [Qemu-devel] [PATCH 0/2] introduce bdrv_swap, implement bdrv_append on top Kevin Wolf
2012-06-15 9:42 ` Paolo Bonzini
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=4FF41B41.6030809@redhat.com \
--to=kwolf@redhat.com \
--cc=jcody@redhat.com \
--cc=pbonzini@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 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.