Lines Matching refs:bs_opts
479 static BlockBackend *blockdev_init(const char *file, QDict *bs_opts, in blockdev_init() argument
502 id = qdict_get_try_str(bs_opts, "id"); in blockdev_init()
508 if (!qemu_opts_absorb_qdict(opts, bs_opts, errp)) { in blockdev_init()
513 qdict_del(bs_opts, "id"); in blockdev_init()
526 qdict_extract_subqdict(bs_opts, &interval_dict, "stats-intervals."); in blockdev_init()
552 if (qdict_haskey(bs_opts, "driver")) { in blockdev_init()
556 qdict_put_str(bs_opts, "driver", buf); in blockdev_init()
584 if ((!file || !*file) && !qdict_size(bs_opts)) { in blockdev_init()
592 qobject_unref(bs_opts); in blockdev_init()
601 qdict_set_default_str(bs_opts, BDRV_OPT_CACHE_DIRECT, "off"); in blockdev_init()
602 qdict_set_default_str(bs_opts, BDRV_OPT_CACHE_NO_FLUSH, "off"); in blockdev_init()
603 qdict_set_default_str(bs_opts, BDRV_OPT_READ_ONLY, in blockdev_init()
605 qdict_set_default_str(bs_opts, BDRV_OPT_AUTO_READ_ONLY, "on"); in blockdev_init()
612 blk = blk_new_open(file, NULL, bs_opts, bdrv_flags, errp); in blockdev_init()
658 qobject_unref(bs_opts); in blockdev_init()
663 BlockDriverState *bds_tree_init(QDict *bs_opts, Error **errp) in bds_tree_init() argument
671 qdict_set_default_str(bs_opts, BDRV_OPT_CACHE_DIRECT, "off"); in bds_tree_init()
672 qdict_set_default_str(bs_opts, BDRV_OPT_CACHE_NO_FLUSH, "off"); in bds_tree_init()
673 qdict_set_default_str(bs_opts, BDRV_OPT_READ_ONLY, "off"); in bds_tree_init()
679 return bdrv_open(NULL, NULL, bs_opts, bdrv_flags, errp); in bds_tree_init()
781 QDict *bs_opts; in drive_new() local
856 bs_opts = qdict_new(); in drive_new()
857 qemu_opts_to_qdict(all_opts, bs_opts); in drive_new()
861 if (!qemu_opts_absorb_qdict(legacy_opts, bs_opts, errp)) { in drive_new()
888 qdict_put_str(bs_opts, BDRV_OPT_READ_ONLY, read_only ? "on" : "off"); in drive_new()
889 qdict_put_str(bs_opts, "copy-on-read", copy_on_read ? "on" : "off"); in drive_new()
959 qdict_put_str(bs_opts, "id", new_id); in drive_new()
969 qemu_opt_set(devopts, "drive", qdict_get_str(bs_opts, "id"), in drive_new()
978 qemu_opt_set(devopts, "drive", qdict_get_str(bs_opts, "id"), in drive_new()
992 qdict_put_str(bs_opts, "werror", werror); in drive_new()
1002 qdict_put_str(bs_opts, "rerror", rerror); in drive_new()
1006 blk = blockdev_init(filename, bs_opts, errp); in drive_new()
1007 bs_opts = NULL; in drive_new()
1035 qobject_unref(bs_opts); in drive_new()