提交 0b4ce02e 编写于 作者: K Kevin Wolf 提交者: Anthony Liguori

block/raw: Add create_options for host_device

Today host_devices have a create function, so they also need a create_options
field to prevent qemu-img from complaining.
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 850810d0
......@@ -1011,6 +1011,7 @@ static BlockDriver bdrv_host_device = {
.bdrv_open = hdev_open,
.bdrv_close = raw_close,
.bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv,
......@@ -1106,6 +1107,7 @@ static BlockDriver bdrv_host_floppy = {
.bdrv_open = floppy_open,
.bdrv_close = raw_close,
.bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv,
......@@ -1187,6 +1189,7 @@ static BlockDriver bdrv_host_cdrom = {
.bdrv_open = cdrom_open,
.bdrv_close = raw_close,
.bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv,
......@@ -1307,6 +1310,7 @@ static BlockDriver bdrv_host_cdrom = {
.bdrv_open = cdrom_open,
.bdrv_close = raw_close,
.bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册