From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDTOY-0003Rw-44 for qemu-devel@nongnu.org; Wed, 12 Feb 2014 01:34:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDTOS-00017i-4A for qemu-devel@nongnu.org; Wed, 12 Feb 2014 01:34:06 -0500 Received: from victor.provo.novell.com ([137.65.250.26]:59649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDTOR-00017T-Sh for qemu-devel@nongnu.org; Wed, 12 Feb 2014 01:34:00 -0500 From: Chunyan Liu Date: Wed, 12 Feb 2014 14:33:24 +0800 Message-Id: <1392186806-10418-25-git-send-email-cyliu@suse.com> In-Reply-To: <1392186806-10418-1-git-send-email-cyliu@suse.com> References: <1392186806-10418-1-git-send-email-cyliu@suse.com> Subject: [Qemu-devel] [PATCH v20 24/26] vvfat.c: replace QEMUOptionParameter with QemuOpts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Dong Xu Wang , Chunyan Liu , stefanha@redhat.com vvfat.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vvfat.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index c59cbdb..81733bc 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2910,7 +2910,7 @@ static BlockDriver vvfat_write_target = { static int enable_write_target(BDRVVVFATState *s) { BlockDriver *bdrv_qcow; - QEMUOptionParameter *options; + QemuOpts *opts; Error *local_err = NULL; int ret; int size = sector2cluster(s, s->sector_count); @@ -2925,11 +2925,11 @@ static int enable_write_target(BDRVVVFATState *s) } bdrv_qcow = bdrv_find_format("qcow"); - options = parse_option_parameters("", bdrv_qcow->create_options, NULL); - set_option_parameter_int(options, BLOCK_OPT_SIZE, s->sector_count * 512); - set_option_parameter(options, BLOCK_OPT_BACKING_FILE, "fat:"); + opts = qemu_opts_create(bdrv_qcow->create_opts, NULL, 0, &error_abort); + qemu_opt_set_number(opts, BLOCK_OPT_SIZE, s->sector_count * 512); + qemu_opt_set(opts, BLOCK_OPT_BACKING_FILE, "fat:"); - ret = bdrv_create(bdrv_qcow, s->qcow_filename, options, NULL, &local_err); + ret = bdrv_create(bdrv_qcow, s->qcow_filename, NULL, opts, &local_err); if (ret < 0) { qerror_report_err(local_err); error_free(local_err); -- 1.6.0.2