From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, qemu-block@nongnu.org
Cc: mjt@tls.msk.ru, qemu-devel@nongnu.org, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH for-2.3 v2] qcow2: Fix header update with overridden backing file
Date: Tue, 07 Apr 2015 09:08:07 -0600 [thread overview]
Message-ID: <5523F2D7.50704@redhat.com> (raw)
In-Reply-To: <1428411796-2852-1-git-send-email-kwolf@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]
On 04/07/2015 07:03 AM, Kevin Wolf wrote:
> In recent qemu versions, it is possible to override the backing file
> name and format that is stored in the image file with values given at
> runtime. In such cases, the temporary override could end up in the
> image header if the qcow2 header was updated, while obviously correct
> behaviour would be to leave the on-disk backing file path/format
> unchanged.
>
> Fix this and add a test case for it.
>
> Reported-by: Michael Tokarev <mjt@tls.msk.ru>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> v2:
> - Now freeing instead of leaking the new strings in qcow2_close()
>
> block/qcow2.c | 29 ++++++++++----
> block/qcow2.h | 6 +++
> tests/qemu-iotests/130 | 95 ++++++++++++++++++++++++++++++++++++++++++++++
> tests/qemu-iotests/130.out | 43 +++++++++++++++++++++
> tests/qemu-iotests/group | 1 +
> 5 files changed, 167 insertions(+), 7 deletions(-)
> create mode 100755 tests/qemu-iotests/130
> create mode 100644 tests/qemu-iotests/130.out
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-04-07 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-07 13:03 [Qemu-devel] [PATCH for-2.3 v2] qcow2: Fix header update with overridden backing file Kevin Wolf
2015-04-07 15:08 ` Eric Blake [this message]
2015-04-08 9:30 ` Stefan Hajnoczi
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=5523F2D7.50704@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mjt@tls.msk.ru \
--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).