/openbmc/qemu/tests/unit/ |
H A D | test-block-iothread.c | 294 c->bs->open_flags &= ~BDRV_O_RDWR; in test_sync_op_truncate() 299 c->bs->open_flags |= BDRV_O_RDWR; in test_sync_op_truncate() 348 c->bs->open_flags &= ~BDRV_O_RDWR; in test_sync_op_flush() 353 c->bs->open_flags |= BDRV_O_RDWR; in test_sync_op_flush() 366 bs->open_flags &= ~BDRV_O_RDWR; in test_sync_op_blk_flush() 371 bs->open_flags |= BDRV_O_RDWR; in test_sync_op_blk_flush() 477 bs = bdrv_new_open_driver(&bdrv_test, "base", BDRV_O_RDWR, &error_abort); in test_sync_op() 558 bs = bdrv_new_open_driver(&bdrv_test, "base", BDRV_O_RDWR, &error_abort); in test_attach_blockjob() 628 bs_a = bdrv_new_open_driver(&bdrv_test, "bs_a", BDRV_O_RDWR, &error_abort); in test_propagate_basic() 632 bs_b = bdrv_new_open_driver(&bdrv_test, "bs_b", BDRV_O_RDWR, &error_abort); in test_propagate_basic() [all …]
|
H A D | test-bdrv-drain.c | 191 bs = bdrv_new_open_driver(&bdrv_test, "test-node", BDRV_O_RDWR, in test_setup() 382 bs = bdrv_new_open_driver(&bdrv_test, "test-node", BDRV_O_RDWR, in test_nested() 432 bs_a = bdrv_new_open_driver(&bdrv_test, "test-node-a", BDRV_O_RDWR, in test_graph_change_drain_all() 448 bs_b = bdrv_new_open_driver(&bdrv_test, "test-node-b", BDRV_O_RDWR, in test_graph_change_drain_all() 547 bs = bdrv_new_open_driver(&bdrv_test, "test-node", BDRV_O_RDWR, in test_iothread_common() 727 src = bdrv_new_open_driver(&bdrv_test, "source", BDRV_O_RDWR, in test_blockjob_common_drain_node() 730 BDRV_O_RDWR, &error_abort); in test_blockjob_common_drain_node() 732 BDRV_O_RDWR, &error_abort); in test_blockjob_common_drain_node() 761 target = bdrv_new_open_driver(&bdrv_test, "target", BDRV_O_RDWR, in test_blockjob_common_drain_node() 1041 bs = bdrv_new_open_driver(&bdrv_test_top_driver, "top", BDRV_O_RDWR, in do_test_delete_by_drain() [all …]
|
H A D | test-replication.c | 149 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 153 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 155 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 157 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 189 blk = blk_new_open(NULL, NULL, qdict, BDRV_O_RDWR, &error_abort); in start_primary() 305 blk = blk_new_open(NULL, NULL, qdict, BDRV_O_RDWR, &error_abort); in start_secondary() 331 blk = blk_new_open(NULL, NULL, qdict, BDRV_O_RDWR, &error_abort); in start_secondary()
|
H A D | test-bdrv-graph-mod.c | 69 return bdrv_new_open_driver(&bdrv_no_perm, name, BDRV_O_RDWR, &error_abort); in no_perm_node() 75 BDRV_O_RDWR, &error_abort); in pass_through_node() 81 BDRV_O_RDWR, &error_abort); in exclusive_writer_node() 352 bdrv_new_open_driver(&bdrv_write_to_selected, "ws", BDRV_O_RDWR, in test_parallel_perm_update()
|
H A D | test-image-locking.c | 43 blk = blk_new_open(path, NULL, options, BDRV_O_RDWR, &local_err); in open_image()
|
/openbmc/qemu/ |
H A D | qemu-io.c | 239 flags |= BDRV_O_RDWR; in open_f() 649 flags |= BDRV_O_RDWR; in main()
|
H A D | qemu-img.c | 769 flags |= BDRV_O_RDWR; in img_check() 1035 flags = BDRV_O_RDWR | BDRV_O_UNMAP; in img_commit() 2681 flags = s.min_sparse ? (BDRV_O_RDWR | BDRV_O_UNMAP) : BDRV_O_RDWR; in img_convert() 3390 bdrv_oflags = BDRV_O_RDWR; in img_snapshot() 3421 bdrv_oflags &= ~BDRV_O_RDWR; /* no need for RW */ in img_snapshot() 3640 flags = BDRV_O_RDWR | (unsafe ? BDRV_O_NO_BACKING : 0); in img_rebase() 3655 assert((src_flags & BDRV_O_RDWR) == 0); in img_rebase() 4146 BDRV_O_RDWR | BDRV_O_RESIZE, false, quiet, in img_resize() 4334 flags = BDRV_O_RDWR; in img_amend() 4636 flags |= BDRV_O_RDWR; in img_bench() [all …]
|
H A D | block.c | 280 return !(bs->open_flags & BDRV_O_RDWR); in bdrv_is_read_only() 324 if (!(bs->open_flags & BDRV_O_RDWR)) { in bdrv_apply_auto_read_only() 336 bs->open_flags &= ~BDRV_O_RDWR; in bdrv_apply_auto_read_only() 668 BDRV_O_RDWR | BDRV_O_RESIZE, errp); in bdrv_co_create_opts_simple() 1559 *flags &= ~(BDRV_O_CACHE_MASK | BDRV_O_RDWR | BDRV_O_AUTO_RDONLY); in update_flags_from_options() 1570 *flags |= BDRV_O_RDWR; in update_flags_from_options() 1589 qdict_put_bool(options, BDRV_OPT_READ_ONLY, !(flags & BDRV_O_RDWR)); in update_options_from_flags() 1888 if (bs->force_share && (bs->open_flags & BDRV_O_RDWR)) { in bdrv_open_common() 2180 return (flags & (BDRV_O_RDWR | BDRV_O_INACTIVE)) == BDRV_O_RDWR; in bdrv_is_writable_after_reopen() 4045 flags |= (BDRV_O_RDWR | BDRV_O_ALLOW_RDWR); in bdrv_open_inherit() [all …]
|
H A D | qemu-nbd.c | 585 int flags = BDRV_O_RDWR; in main() 718 flags &= ~BDRV_O_RDWR; in main()
|
H A D | qemu-io-cmds.c | 2428 flags &= ~BDRV_O_RDWR; in reopen_f() 2436 flags |= BDRV_O_RDWR; in reopen_f() 2460 if (!(flags & BDRV_O_RDWR)) { in reopen_f() 2483 qdict_put_bool(opts, BDRV_OPT_READ_ONLY, !(flags & BDRV_O_RDWR)); in reopen_f()
|
H A D | blockdev.c | 589 blk_rs->open_flags = bdrv_flags | (read_only ? 0 : BDRV_O_RDWR); in blockdev_init() 1642 flags = bs->open_flags | BDRV_O_RDWR; in drive_backup_action() 2940 flags = bs->open_flags | BDRV_O_RDWR; in qmp_drive_mirror()
|
/openbmc/qemu/block/ |
H A D | parallels.c | 1126 BDRV_O_RDWR | BDRV_O_RESIZE | BDRV_O_PROTOCOL, errp); in parallels_co_create_opts() 1335 if (flags & BDRV_O_RDWR) { in parallels_open() 1351 if ((flags & BDRV_O_RDWR) && !(flags & BDRV_O_INACTIVE)) { in parallels_open() 1394 if ((flags & (BDRV_O_CHECK | BDRV_O_INACTIVE)) || !(flags & BDRV_O_RDWR)) { in parallels_open() 1433 if ((bs->open_flags & BDRV_O_RDWR) && !(bs->open_flags & BDRV_O_INACTIVE)) { in parallels_close()
|
H A D | qapi-sysemu.c | 346 bdrv_flags &= ~BDRV_O_RDWR; in qmp_blockdev_change_medium() 350 bdrv_flags |= BDRV_O_RDWR; in qmp_blockdev_change_medium()
|
H A D | nfs.c | 616 (flags & BDRV_O_RDWR) ? O_RDWR : O_RDONLY, in nfs_file_open() 795 if (state->flags & BDRV_O_RDWR && bdrv_is_read_only(state->bs)) { in nfs_reopen_prepare() 807 if (!(state->flags & BDRV_O_RDWR)) { in nfs_reopen_prepare()
|
H A D | replication.c | 173 if ((bs->open_flags & (BDRV_O_INACTIVE | BDRV_O_RDWR)) == BDRV_O_RDWR) { in replication_child_perm()
|
H A D | parallels-ext.c | 178 assert(!(bs->open_flags & BDRV_O_RDWR)); in parallels_load_bitmap()
|
H A D | stream.c | 343 cor_filter_bs = bdrv_insert_node(bs, opts, BDRV_O_RDWR, errp); in stream_start()
|
H A D | commit.c | 505 commit_top_bs = bdrv_new_open_driver(&bdrv_commit_top, NULL, BDRV_O_RDWR, in bdrv_commit()
|
H A D | preallocate.c | 248 if ((reopen_state->flags & BDRV_O_RDWR) == 0) { in preallocate_reopen_prepare()
|
H A D | copy-before-write.c | 559 int flags = BDRV_O_RDWR | (discard_source ? BDRV_O_CBW_DISCARD_SOURCE : 0); in bdrv_cbw_append()
|
H A D | qcow2.c | 1466 if ((flags & BDRV_O_RDWR) && !(flags & BDRV_O_CHECK)) { in qcow2_do_open() 2008 if ((state->flags & BDRV_O_RDWR) == 0) { in qcow2_reopen_prepare() 2064 if (state->flags & BDRV_O_RDWR) { in qcow2_reopen_commit_post() 3789 BDRV_O_RDWR | BDRV_O_RESIZE | BDRV_O_NO_FLUSH, in qcow2_co_create() 3880 BDRV_O_RDWR | BDRV_O_NO_BACKING | BDRV_O_NO_IO, in qcow2_co_create() 3963 BDRV_O_RDWR | BDRV_O_RESIZE | BDRV_O_PROTOCOL, errp); in qcow2_co_create_opts() 3978 BDRV_O_RDWR | BDRV_O_RESIZE | BDRV_O_PROTOCOL, in qcow2_co_create_opts()
|
H A D | iscsi.c | 1926 if (iscsilun->type == TYPE_DISK && (flags & BDRV_O_RDWR) && in iscsi_open() 1934 flags &= ~BDRV_O_RDWR; in iscsi_open() 2122 if (state->flags & BDRV_O_RDWR && iscsilun->write_protected) { in iscsi_reopen_prepare()
|
H A D | blkio.c | 808 if (!(flags & BDRV_O_RDWR)) { in blkio_open()
|
H A D | file-win32.c | 270 if (flags & BDRV_O_RDWR) { in raw_parse_flags()
|
/openbmc/qemu/include/block/ |
H A D | block-common.h | 223 #define BDRV_O_RDWR 0x0002 macro
|