提交 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
...@@ -1005,13 +1005,14 @@ static int hdev_create(const char *filename, QEMUOptionParameter *options) ...@@ -1005,13 +1005,14 @@ static int hdev_create(const char *filename, QEMUOptionParameter *options)
} }
static BlockDriver bdrv_host_device = { static BlockDriver bdrv_host_device = {
.format_name = "host_device", .format_name = "host_device",
.instance_size = sizeof(BDRVRawState), .instance_size = sizeof(BDRVRawState),
.bdrv_probe_device = hdev_probe_device, .bdrv_probe_device = hdev_probe_device,
.bdrv_open = hdev_open, .bdrv_open = hdev_open,
.bdrv_close = raw_close, .bdrv_close = raw_close,
.bdrv_create = hdev_create, .bdrv_create = hdev_create,
.bdrv_flush = raw_flush, .create_options = raw_create_options,
.bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv, .bdrv_aio_readv = raw_aio_readv,
.bdrv_aio_writev = raw_aio_writev, .bdrv_aio_writev = raw_aio_writev,
...@@ -1106,6 +1107,7 @@ static BlockDriver bdrv_host_floppy = { ...@@ -1106,6 +1107,7 @@ static BlockDriver bdrv_host_floppy = {
.bdrv_open = floppy_open, .bdrv_open = floppy_open,
.bdrv_close = raw_close, .bdrv_close = raw_close,
.bdrv_create = hdev_create, .bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_flush = raw_flush, .bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv, .bdrv_aio_readv = raw_aio_readv,
...@@ -1187,6 +1189,7 @@ static BlockDriver bdrv_host_cdrom = { ...@@ -1187,6 +1189,7 @@ static BlockDriver bdrv_host_cdrom = {
.bdrv_open = cdrom_open, .bdrv_open = cdrom_open,
.bdrv_close = raw_close, .bdrv_close = raw_close,
.bdrv_create = hdev_create, .bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_flush = raw_flush, .bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv, .bdrv_aio_readv = raw_aio_readv,
...@@ -1307,6 +1310,7 @@ static BlockDriver bdrv_host_cdrom = { ...@@ -1307,6 +1310,7 @@ static BlockDriver bdrv_host_cdrom = {
.bdrv_open = cdrom_open, .bdrv_open = cdrom_open,
.bdrv_close = raw_close, .bdrv_close = raw_close,
.bdrv_create = hdev_create, .bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_flush = raw_flush, .bdrv_flush = raw_flush,
.bdrv_aio_readv = raw_aio_readv, .bdrv_aio_readv = raw_aio_readv,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册