From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0XUZ-00070N-I0 for qemu-devel@nongnu.org; Thu, 13 Sep 2018 15:41:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0XUT-0004bW-Rn for qemu-devel@nongnu.org; Thu, 13 Sep 2018 15:41:27 -0400 From: Max Reitz References: <56133002-7a79-bf6a-8835-fba043638224@redhat.com> Message-ID: <81bba910-3e33-376d-f490-151fcccd4322@redhat.com> Date: Thu, 13 Sep 2018 21:41:05 +0200 MIME-Version: 1.0 In-Reply-To: <56133002-7a79-bf6a-8835-fba043638224@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RxZvUWGtvP522kv9v2AklVoMMc8Ed3Rbi" Subject: Re: [Qemu-devel] Can I only commit from active image to corresponding range of its backing file by qemu cmd? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , lampahome , QEMU Developers , Qemu-block , Markus Armbruster This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RxZvUWGtvP522kv9v2AklVoMMc8Ed3Rbi From: Max Reitz To: Eric Blake , lampahome , QEMU Developers , Qemu-block , Markus Armbruster Message-ID: <81bba910-3e33-376d-f490-151fcccd4322@redhat.com> Subject: Re: [Qemu-devel] Can I only commit from active image to corresponding range of its backing file by qemu cmd? References: <56133002-7a79-bf6a-8835-fba043638224@redhat.com> In-Reply-To: <56133002-7a79-bf6a-8835-fba043638224@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 13.09.18 20:37, Max Reitz wrote: [...] > Or, we would have to use backing=3Dnull, but for some reason that doesn= 't > work. I'll have to investigate. Turns out this was fixed in e59a0cf17b1b9932b65e6fc25d6856976f5e4831. (Why does Fedora still have only qemu 2.11?) > So rebase will need to do: >=20 > $ qemu-img rebase -u -b '' img.003 >=20 > $ qemu-img convert -O qcow2 \ > "json:{'driver':'raw','offset':0,'size':1048576,\ > 'file':{'driver':'qcow2',\ > 'file':{'driver':'file','filename':'img.003'}}}" \ > "json:{'driver':'null-co','size':2097152}" \ > img.003.commit.000 >=20 > $ qemu-img convert -O qcow2 \ > "json:{'driver':'null-co','size':1048576}" \ > "json:{'driver':'raw','offset':1048576,'size':2097152,\ > 'file':{'driver':'qcow2',\ > 'file':{'driver':'file','filename':'img.003'}}}" \ > img.003.nocommit So starting with 2.12, putting a "'backing':null" behind "'driver':'qcow2," will work just as well as rebasing img.003. Max --RxZvUWGtvP522kv9v2AklVoMMc8Ed3Rbi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEkb62CjDbPohX0Rgp9AfbAGHVz0AFAluavVEACgkQ9AfbAGHV z0BS0QgAlvef2mOTrreyyva0GJI5LHhJQBRFKwOl/xmeWM9ScRr+sHBSW0NswXAi aVOhkC+Dchte1baWBUzPcraNUI+FwwZ/8+ozIVk6N13y6KtOQdGw9yHp3TY7Hfzh LrFxLQbsy0OcjMQHuVkt8Qpw8T/2qPfuKzSO9H1TSS+E0i6BKuG/Z7Rq6uzhaCGV i+SNYxJzju0boE7Cg+GBakz9AcNBudSFydUe87FBkOgzm5LfB1xtWC0986HaM1EI fdm0ZUCZ03E9V4MFSEjOsaSwrfbTsRdng+arqFBaThHEtG0SGHc0T90ALE6ssSSp BQnnCCuJtN4pj3X1hIJ5IJe8It8n/A== =meu5 -----END PGP SIGNATURE----- --RxZvUWGtvP522kv9v2AklVoMMc8Ed3Rbi--