qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: mjt@tls.msk.ru, qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-2.3 v2] qcow2: Fix header update with overridden backing file
Date: Wed, 8 Apr 2015 10:30:13 +0100	[thread overview]
Message-ID: <20150408093013.GD28835@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1428411796-2852-1-git-send-email-kwolf@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

On Tue, Apr 07, 2015 at 03:03:16PM +0200, 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

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

      parent reply	other threads:[~2015-04-08  9:30 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
2015-04-08  9:30 ` Stefan Hajnoczi [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=20150408093013.GD28835@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-block@nongnu.org \
    --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).