On 03/03/2014 08:28 AM, Max Reitz wrote: > This series adds a passthrough JSON protocol block driver. Its filenames > are JSON objects prefixed by "json:". The objects are used as options > for opening another block device which will be the child of the JSON > device. Regarding this child device, the JSON driver behaves nearly the > same as raw_bsd in that it is just a passthrough driver. The only > difference is probably that the JSON driver identifies itself as a block > filter, in contrast to raw_bsd. > > The purpose of this driver 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.
I like the idea! It will be more work for libvirt to actually understand how a json: protocol is actually interpreted if it encounters a qcow2 file with a json: backing file, but it does open up possibilities that are hard to encode in any other sane way. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature