Searched refs:BDRV_OPT_READ_ONLY (Results 1 – 6 of 6) sorted by relevance
/openbmc/qemu/include/block/ |
H A D | block-common.h | 256 #define BDRV_OPT_READ_ONLY "read-only" macro
|
/openbmc/qemu/ |
H A D | blockdev.c | 581 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 D | block.c | 1253 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() 1803 .name = BDRV_OPT_READ_ONLY, 3857 qdict_set_default_str(qdict, BDRV_OPT_READ_ONLY, "off"); in bdrv_open_blockdev_ref() 4043 if (g_strcmp0(qdict_get_try_str(options, BDRV_OPT_READ_ONLY), "on") && in bdrv_open_inherit() 4044 !qdict_get_try_bool(options, BDRV_OPT_READ_ONLY, false)) { in bdrv_open_inherit() 4055 qdict_del(options, BDRV_OPT_READ_ONLY); in bdrv_open_inherit() [all …]
|
H A D | qemu-io-cmds.c | 2476 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()
|
/openbmc/qemu/block/ |
H A D | replication.c | 384 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 D | vvfat.c | 3151 qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off"); in vvfat_qcow_options()
|