Home
last modified time | relevance | path

Searched refs:BDRV_OPT_READ_ONLY (Results 1 – 6 of 6) sorted by relevance

/qemu/include/block/
H A Dblock-common.h256 #define BDRV_OPT_READ_ONLY "read-only" macro
/qemu/
H A Dblockdev.c581 read_only = qemu_opt_get_bool(opts, BDRV_OPT_READ_ONLY, false); in blockdev_init()
603 qdict_set_default_str(bs_opts, BDRV_OPT_READ_ONLY, in blockdev_init()
673 qdict_set_default_str(bs_opts, BDRV_OPT_READ_ONLY, "off"); in bds_tree_init()
754 .name = BDRV_OPT_READ_ONLY,
819 { "readonly", BDRV_OPT_READ_ONLY }, in drive_new()
880 read_only |= qemu_opt_get_bool(legacy_opts, BDRV_OPT_READ_ONLY, false); in drive_new()
888 qdict_put_str(bs_opts, BDRV_OPT_READ_ONLY, read_only ? "on" : "off"); in drive_new()
3605 .name = BDRV_OPT_READ_ONLY,
H A Dblock.c1253 qdict_copy_default(child_options, parent_options, BDRV_OPT_READ_ONLY); in bdrv_temp_snapshot_options()
1410 qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "on"); in bdrv_inherited_options()
1569 if (!qemu_opt_get_bool_del(opts, BDRV_OPT_READ_ONLY, false)) { in update_flags_from_options()
1588 if (!qdict_haskey(options, BDRV_OPT_READ_ONLY)) { in update_options_from_flags()
1589 qdict_put_bool(options, BDRV_OPT_READ_ONLY, !(flags & BDRV_O_RDWR)); in update_options_from_flags()
1805 .name = BDRV_OPT_READ_ONLY,
3840 qdict_set_default_str(qdict, BDRV_OPT_READ_ONLY, "off"); in bdrv_open_blockdev_ref()
4022 if (g_strcmp0(qdict_get_try_str(options, BDRV_OPT_READ_ONLY), "on") && in bdrv_open_inherit()
4023 !qdict_get_try_bool(options, BDRV_OPT_READ_ONLY, false)) { in bdrv_open_inherit()
4034 qdict_del(options, BDRV_OPT_READ_ONLY); in bdrv_open_inherit()
[all …]
H A Dqemu-io-cmds.c2476 if (qdict_haskey(opts, BDRV_OPT_READ_ONLY)) { in reopen_f()
2478 error_report("Cannot set both -r/-w and '" BDRV_OPT_READ_ONLY "'"); in reopen_f()
2483 qdict_put_bool(opts, BDRV_OPT_READ_ONLY, !(flags & BDRV_O_RDWR)); in reopen_f()
/qemu/block/
H A Dreplication.c384 qdict_put_bool(opts, BDRV_OPT_READ_ONLY, !writable); in reopen_backing_file()
391 qdict_put_bool(opts, BDRV_OPT_READ_ONLY, !writable); in reopen_backing_file()
H A Dvvfat.c3152 qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off"); in vvfat_qcow_options()