]> git.proxmox.com Git - qemu.git/commit - block.c
block: Introduce .bdrv_parse_filename callback
authorKevin Wolf <kwolf@redhat.com>
Fri, 15 Mar 2013 17:47:22 +0000 (18:47 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Mar 2013 16:51:32 +0000 (17:51 +0100)
commit6963a30d82413bea36c7545137b090b284cc2b18
treef4258be2af81298342b01f359790ea10ba5f856c
parentf53a1febcd9d887149ac1429880a3f2fdb2c117f
block: Introduce .bdrv_parse_filename callback

If a driver needs structured data and not just a string, it can provide
a .bdrv_parse_filename callback now that parses the command line string
into separate options. Keeping this separate from .bdrv_open_filename
ensures that the preferred way of directly specifying the options always
works as well if parsing the string works.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
block/nbd.c
include/block/block_int.h