From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URnM7-0006f6-6r for qemu-devel@nongnu.org; Mon, 15 Apr 2013 13:38:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URnM2-0003BH-CP for qemu-devel@nongnu.org; Mon, 15 Apr 2013 13:38:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URnM2-0003BA-3F for qemu-devel@nongnu.org; Mon, 15 Apr 2013 13:38:10 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3FHc9RU008959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Apr 2013 13:38:09 -0400 Message-ID: <516C3B00.9080105@redhat.com> Date: Mon, 15 Apr 2013 11:38:08 -0600 From: Eric Blake MIME-Version: 1.0 References: <1365799688-19918-1-git-send-email-kwolf@redhat.com> <1365799688-19918-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1365799688-19918-3-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2HSKCHRVMLGDTDBQOJIGA" Subject: Re: [Qemu-devel] [PATCH 02/15] block: Add driver-specific options for backing files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2HSKCHRVMLGDTDBQOJIGA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04/12/2013 02:47 PM, Kevin Wolf wrote: > Options starting in "backing." are passed to the backing file now. If > you don't need to specify the filename for the backing file, you can ad= d > it on the command line instead of in the image file: >=20 > $ qemu-nbd -t /tmp/test.img > $ qemu-img create -f qcow2 empty.qcow2 1G > $ qemu-system-x86_64 -drive file=3Dempty.qcow2,backing.file.driver=3Dnb= d,\ > backing.file.host=3Dlocalhost So effectively empty.qcow2 is booted as though it had an explicit nbd://localhost in its backing metadata? Looks interesting! >=20 > Note that this doesn't override the backing filename from the image. If= > the image has one, this will fail because NBD doesn't want the options > and a filename at the same time. >=20 > Signed-off-by: Kevin Wolf > --- > block.c | 27 +++++++++++++++++++++++---- > block/mirror.c | 2 +- > include/block/block.h | 2 +- > 3 files changed, 25 insertions(+), 6 deletions(-) Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2HSKCHRVMLGDTDBQOJIGA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJRbDsAAAoJEKeha0olJ0NqHHoH/AvywmaigWcggoy/wgHXpjam +gy8MHQL0rqZ1lutatZaKyj49gao9bzXbDKlNUx2Lv2ND/TKczw8lC2/bQ9IvoaO e/NM4zY7DNovz7eC2RlH4M8HumLmkYffjjqQdofMwb1+nx7enyT/5owKROw2zHR9 kYDfGF7Sv6azgvnUoet7j+X69cN1LbvV1YT9HUOer2LXZWVKM7KdLPNMm/SAGL3N DmBW7XmBchI3wIIllhCu+OFt0PsFoAXd1sdooI/vYf7HE4iIwWVD12e5c80alpKm rrcXpZX7DunBIk2A0AgQTkgrXortZ1A/t6SMQo7tqqxZwwBgr4qmdJUyI6cyPfk= =jWdD -----END PGP SIGNATURE----- ------enig2HSKCHRVMLGDTDBQOJIGA--