gluster.c (235e59cf03ed75d0ce96c97343194ed11c146231) | gluster.c (af175e85f92c870386ad74f466e29537b79611d3) |
---|---|
1/* 2 * GlusterFS backend for QEMU 3 * 4 * Copyright (C) 2012 Bharata B Rao <bharata@linux.vnet.ibm.com> 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 * --- 797 unchanged lines hidden (view full) --- 806static int qemu_gluster_open(BlockDriverState *bs, QDict *options, 807 int bdrv_flags, Error **errp) 808{ 809 BDRVGlusterState *s = bs->opaque; 810 int open_flags = 0; 811 int ret = 0; 812 BlockdevOptionsGluster *gconf = NULL; 813 QemuOpts *opts; | 1/* 2 * GlusterFS backend for QEMU 3 * 4 * Copyright (C) 2012 Bharata B Rao <bharata@linux.vnet.ibm.com> 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 * --- 797 unchanged lines hidden (view full) --- 806static int qemu_gluster_open(BlockDriverState *bs, QDict *options, 807 int bdrv_flags, Error **errp) 808{ 809 BDRVGlusterState *s = bs->opaque; 810 int open_flags = 0; 811 int ret = 0; 812 BlockdevOptionsGluster *gconf = NULL; 813 QemuOpts *opts; |
814 Error *local_err = NULL; | |
815 const char *filename, *logfile; 816 817 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort); | 814 const char *filename, *logfile; 815 816 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort); |
818 if (!qemu_opts_absorb_qdict(opts, options, &local_err)) { 819 error_propagate(errp, local_err); | 817 if (!qemu_opts_absorb_qdict(opts, options, errp)) { |
820 ret = -EINVAL; 821 goto out; 822 } 823 824 filename = qemu_opt_get(opts, GLUSTER_OPT_FILENAME); 825 826 s->debug = qemu_opt_get_number(opts, GLUSTER_OPT_DEBUG, 827 GLUSTER_DEBUG_DEFAULT); --- 850 unchanged lines hidden --- | 818 ret = -EINVAL; 819 goto out; 820 } 821 822 filename = qemu_opt_get(opts, GLUSTER_OPT_FILENAME); 823 824 s->debug = qemu_opt_get_number(opts, GLUSTER_OPT_DEBUG, 825 GLUSTER_DEBUG_DEFAULT); --- 850 unchanged lines hidden --- |