On 09/24/2013 06:27 AM, Benoît Canet wrote: > Some drivers will have driver specifics options but no filename. > This new bool allow the block layer to treat them correctly. > > The .bdrv_needs_filename is set in drivers not having .bdrv_parse_filename and > not having .bdrv_open. > > The first exception to this rule will be the quorum driver. > > Signed-off-by: Benoit Canet <ben...@irqsave.net> > ---
> +++ b/include/block/block_int.h > @@ -73,6 +73,11 @@ struct BlockDriver { > /* Any driver implementing this callback is expected to be able to handle > * NULL file names in its .bdrv_open() implementation */ > void (*bdrv_parse_filename)(const char *filename, QDict *options, Error > **errp); > + /* Drivers not implementing bdrv_parse_filename nor bdrv_open should have > + * this field set to true excepted the ones only defined by their childs > bs. > + * An example of the last type will be the quorum block driver. Grammar: Drivers not implementing ... set to true, except ones that are defined only by their child's bs. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature