From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhmEj-0007sH-PK for qemu-devel@nongnu.org; Tue, 06 May 2014 16:45:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhmEc-0006fH-6x for qemu-devel@nongnu.org; Tue, 06 May 2014 16:45:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhmEb-0006dF-Uz for qemu-devel@nongnu.org; Tue, 06 May 2014 16:45:06 -0400 Message-ID: <536949CE.90203@redhat.com> Date: Tue, 06 May 2014 14:45:02 -0600 From: Eric Blake MIME-Version: 1.0 References: <1399408159-19118-1-git-send-email-mreitz@redhat.com> In-Reply-To: <1399408159-19118-1-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="afFEGSkERwpv44MxQsnihBQ6BULsgsbCt" Subject: Re: [Qemu-devel] [PATCH v2 0/4] block: Allow JSON filenames List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , =?UTF-8?B?QmVub8OudCBDYW5ldA==?= , Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --afFEGSkERwpv44MxQsnihBQ6BULsgsbCt Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/06/2014 02:29 PM, Max Reitz wrote: > This series acts as some kind of alternative or v5 to the "block/json: > Add JSON protocol driver" series. It makes bdrv_open() parse filenames > prefixed by "json:" as JSON objects (discarding the prefix beforehand) > and then use the resulting QDict as the options for the block device to= > be opened with a NULL filename. >=20 > The purpose of this is that it may sometimes be desirable to specify > options for a block device where only a filename can be given, e.g., fo= r > backing files. Using this should obviously be the exception, but it is > nice to have if actually needed. >=20 >=20 > After having written this series, I do indeed agree that it is much > nicer than the old version of having a dedicated "virtual" block driver= > for this purpose. >=20 > Patches 1 and 2 are taken directly from the block/json v3, patch 4 has > been enriched by an additional scenario (options given directly and > through the filename) and its comments have been adapted to the new > implementation. Series: Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --afFEGSkERwpv44MxQsnihBQ6BULsgsbCt 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTaUnOAAoJEKeha0olJ0Nqut8IAJB28A9N3YPSGRihHQnAA2QR TFV+3aiGM+7lcM98+c7QxF7hLKN1lCesbwdHQpSQX8L6/6JNS/L7BRzug+Wv2UoE v6LPkkjIGCRHSSaGvNqrpWgEZ2YYPaXexiQmx41PLa53ag0WYmhHGhrvqLoa6HaV 9VviBsDxAVu3oWx15ha/rvyh2zedXvBR8DZcn8eaLGZnbkP6b2V5dPRntE2G2Bp4 Z7FwGnKRd+Z5hvQzkDyVDMFTDc51Vf9KgFZnFO19kP9ww4E130e4n2l1kHHHsCgQ fgJPdEZog1FbasfbVUqOcySLOwnV+UfUzCMbPf93TBXGHErGwYAzaYi4fhAdZ6o= =UGNS -----END PGP SIGNATURE----- --afFEGSkERwpv44MxQsnihBQ6BULsgsbCt--