From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxXrV-0006Hn-Ek for qemu-devel@nongnu.org; Thu, 19 Jun 2014 04:38:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxXrM-0006EL-Ce for qemu-devel@nongnu.org; Thu, 19 Jun 2014 04:38:25 -0400 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:33298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxXrL-0006EB-VL for qemu-devel@nongnu.org; Thu, 19 Jun 2014 04:38:16 -0400 Received: by mail-we0-f171.google.com with SMTP id q58so1977624wes.2 for ; Thu, 19 Jun 2014 01:38:15 -0700 (PDT) Date: Thu, 19 Jun 2014 16:37:56 +0800 From: Stefan Hajnoczi Message-ID: <20140619083756.GQ21236@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0pkK7MCEo5hACTvx" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v6 for 2.1 10/10] block: add QAPI command to allow live backing file change List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: kwolf@redhat.com, benoit.canet@irqsave.net, pkrempa@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com --0pkK7MCEo5hACTvx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 17, 2014 at 05:53:58PM -0400, Jeff Cody wrote: > This allows a user to make a live change to the backing file recorded in > an open image. >=20 > The image file to modify can be specified 2 ways: >=20 > 1) image filename > 2) image node-name >=20 > Note: this does not cause the backing file itself to be reopened; it > merely changes the backing filename in the image file structure, and > in internal BDS structures. >=20 > It is the responsibility of the user to pass a filename string that > can be resolved when the image chain is reopened, and the filename > string is not validated. >=20 > A good analogy for this command is that it is a live version of > 'qemu-img rebase -u', with respect to changing the backing file string. >=20 > Reviewed-by: Eric Blake > Signed-off-by: Jeff Cody > --- > blockdev.c | 102 +++++++++++++++++++++++++++++++++++++++++++++= ++++++ > qapi/block-core.json | 60 ++++++++++++++++++++++++++++++ > qmp-commands.hx | 74 +++++++++++++++++++++++++++++++++++++ > 3 files changed, 236 insertions(+) Reviewed-by: Stefan Hajnoczi --0pkK7MCEo5hACTvx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJToqFkAAoJEJykq7OBq3PIQgkH+QEwI6j8r4GEAM1aGcUQTWP0 sZvxrVdeVMKLu3pNXC+7zzQ1iSWJCHcETckNiwxkLkxt73S+cN5YcZiyrA6Em0XB y4MXhmEqb6jDNDyn1n0rbvjfl4SF2TsopxihtinuMlX+6O35YuM+rU01otahx8Xv 5bajYY/R+Dn3z0Usr6njPxKAUMS+O61qsRO57ilH+SRZ7uAI5lw1TGGiM3Ijb95Q LJzL3aTWLR+WtsIvw6tyXmPLnymPR+VqnWBNpwKAeVthaW0T+QVYocjmTZFdW+3I 9B2g5d8t7tqQMouaZGkWMenE4dacRr615Vf+P3NmuLIL+2F/6eID9NJT4pJfDYQ= =A9Z3 -----END PGP SIGNATURE----- --0pkK7MCEo5hACTvx--