block: implement bdrv_new_open_driver_opts()
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 20 Sep 2021 11:55:34 +0000 (14:55 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 6 Oct 2021 08:25:55 +0000 (10:25 +0200)
commit621d17378a40509757d5e03eb1c2f5305ff76df3
tree35c92a181977a75bf5e2b5fd90bd90c9d6e3fd3f
parentd1bbd965bd96028b0f5a8e3dc01b37f1f8ae4456
block: implement bdrv_new_open_driver_opts()

Add version of bdrv_new_open_driver() that supports QDict options.
We'll use it in further commit.

Simply add one more argument to bdrv_new_open_driver() is worse, as
there are too many invocations of bdrv_new_open_driver() to update
then.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210920115538.264372-2-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
include/block/block.h