block: Keep "driver" in bs->options
commit62392ebb09fc6e87626aa151a616f24c4e921493
authorKevin Wolf <kwolf@redhat.com>
Fri, 24 Apr 2015 14:38:02 +0000 (24 16:38 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2015 13:34:42 +0000 (18 14:34 +0100)
tree73b81aeb64aaed9d26772b41d0d4a5f24cfe1a87
parent4cdd01d32ee6fe04f8d909bfd3708be6864873a2
block: Keep "driver" in bs->options

Instead of passing a separate drv argument to bdrv_open_common(), just
make sure that a "driver" option is set in the QDict. This also means
that a "driver" entry is consistently present in bs->options now.

This is another step towards keeping all options in the QDict (which is
the represenation of the blockdev-add QMP command).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c