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. > > 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., for > backing files. Using this should obviously be the exception, but it is > nice to have if actually needed. > > > 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. > > 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 <[email protected]> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
