diff options
author | Chunyan Liu <cyliu@suse.com> | 2014-06-05 17:21:11 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-06-16 17:23:21 +0800 |
commit | c282e1fdf7ec9659c7f320123be397477a359d01 (patch) | |
tree | 4e76122536c52b1093da8647839039627d1f596c /block/qcow.c | |
parent | fec9921f0a331716c898d1f823682de2ecfa3d2a (diff) | |
download | qemu-c282e1fdf7ec9659c7f320123be397477a359d01.tar.gz qemu-c282e1fdf7ec9659c7f320123be397477a359d01.tar.bz2 qemu-c282e1fdf7ec9659c7f320123be397477a359d01.zip |
cleanup QEMUOptionParameter
Now that all backend drivers are using QemuOpts, remove all
QEMUOptionParameter related codes.
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Signed-off-by: Chunyan Liu <cyliu@suse.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qcow.c')
-rw-r--r-- | block/qcow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/qcow.c b/block/qcow.c index bcacfb852f..1f2bac8a5f 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -712,7 +712,7 @@ static int qcow_create(const char *filename, QemuOpts *opts, Error **errp) flags |= BLOCK_FLAG_ENCRYPT; } - ret = bdrv_create_file(filename, NULL, opts, &local_err); + ret = bdrv_create_file(filename, opts, &local_err); if (ret < 0) { error_propagate(errp, local_err); goto cleanup; @@ -939,7 +939,7 @@ static BlockDriver bdrv_qcow = { .bdrv_open = qcow_open, .bdrv_close = qcow_close, .bdrv_reopen_prepare = qcow_reopen_prepare, - .bdrv_create2 = qcow_create, + .bdrv_create = qcow_create, .bdrv_has_zero_init = bdrv_has_zero_init_1, .bdrv_co_readv = qcow_co_readv, |