Received: from eggs.gnu.org ([2001:4830:134:3::10]:52957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfmJU-0002hd-Cu for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:30:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfmJT-0006kG-Ag for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:30:24 -0400 Date: Wed, 8 Apr 2015 10:30:13 +0100 From: Stefan Hajnoczi Message-ID: <20150408093013.GD28835@stefanha-thinkpad.redhat.com> References: <1428411796-2852-1-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J5MfuwkIyy7RmF4Q" Content-Disposition: inline In-Reply-To: <1428411796-2852-1-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH for-2.3 v2] qcow2: Fix header update with overridden backing file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: mjt@tls.msk.ru, qemu-devel@nongnu.org, qemu-block@nongnu.org --J5MfuwkIyy7RmF4Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Fix this and add a test case for it. >=20 > Reported-by: Michael Tokarev > Signed-off-by: Kevin Wolf > --- > v2: > - Now freeing instead of leaking the new strings in qcow2_close() >=20 > 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 --J5MfuwkIyy7RmF4Q Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVJPUlAAoJEJykq7OBq3PIH8gIALhzEmiTeKIOxEJHNkzlwFhU 50vJxTtAaj23F5poR4eh6wXjUrIdtWDyoBs+g66CtrDEGQBHj8JFm8GgzTjhB95m i4cd39EAc6duTgci9DPnw7sKXudp/CiC10058EeMXASQghhKVzRrovRbOdZhit4K dydQtX6jVtvIlaJqIG3a9TsV0PDoZ3FnRKgO1VJK8iS5rANfK5t22XMpwNU04Fzs xXfjS+Ij520f8rfuRuC+9YM7N2J5aGYMRRoKEKCBiWnhbMaYppG1iumR6GRCbwgr Vz1cKdcTmIzXq9w7ktAPsmjJmuKsWJDeXQFx01+NR4hm8k6hX7NMwvwncvaU5LQ= =NuoU -----END PGP SIGNATURE----- --J5MfuwkIyy7RmF4Q--