diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-10-01 12:35:49 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 14:20:34 -0500 |
commit | 0b4ce02eb25e2aa85097d717040f0e1f83908593 (patch) | |
tree | bec8c3c8e9911797bdda554cd1d078ea095c8761 /block | |
parent | 850810d01b45e6ce99ac6696773e967890db2937 (diff) |
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: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/raw-posix.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/block/raw-posix.c b/block/raw-posix.c index f612340fa4..20b37a732c 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -1005,13 +1005,14 @@ static int hdev_create(const char *filename, QEMUOptionParameter *options) } static BlockDriver bdrv_host_device = { - .format_name = "host_device", - .instance_size = sizeof(BDRVRawState), - .bdrv_probe_device = hdev_probe_device, - .bdrv_open = hdev_open, - .bdrv_close = raw_close, + .format_name = "host_device", + .instance_size = sizeof(BDRVRawState), + .bdrv_probe_device = hdev_probe_device, + .bdrv_open = hdev_open, + .bdrv_close = raw_close, .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_writev = raw_aio_writev, @@ -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, |