| /openbmc/qemu/block/ |
| H A D | gluster.c | 758 static void qemu_gluster_parse_flags(int bdrv_flags, int *open_flags) in qemu_gluster_parse_flags() 760 assert(open_flags != NULL); in qemu_gluster_parse_flags() 762 *open_flags |= O_BINARY; in qemu_gluster_parse_flags() 765 *open_flags |= O_RDWR; 767 *open_flags |= O_RDONLY; 771 *open_flags |= O_DIRECT; 806 int open_flags = 0; in qemu_gluster_open() 862 qemu_gluster_parse_flags(bdrv_flags, &open_flags); in qemu_gluster_open() 864 s->fd = glfs_open(s->glfs, gconf->path, open_flags); in qemu_gluster_open() 872 open_flags in qemu_gluster_open() 749 qemu_gluster_parse_flags(int bdrv_flags,int * open_flags) qemu_gluster_parse_flags() argument 797 int open_flags = 0; qemu_gluster_open() local 901 int open_flags = 0; qemu_gluster_reopen_prepare() local [all...] |
| H A D | file-posix.c | 163 int open_flags; member 203 int open_flags; member 387 if ((bs->open_flags & BDRV_O_NOCACHE) != 0 && !dio_byte_aligned(s->fd)) { in raw_needs_alignment() 536 static void raw_parse_flags(int bdrv_flags, int *open_flags, bool has_writers) in raw_parse_flags() argument 539 assert(open_flags != NULL); in raw_parse_flags() 541 *open_flags |= O_BINARY; in raw_parse_flags() 542 *open_flags &= ~O_ACCMODE; in raw_parse_flags() 551 *open_flags |= O_RDWR; in raw_parse_flags() 553 *open_flags |= O_RDONLY; in raw_parse_flags() 559 *open_flags | in raw_parse_flags() 617 raw_open_common(BlockDriverState * bs,QDict * options,int bdrv_flags,int open_flags,bool device,Error ** errp) raw_open_common() argument 1066 raw_reconfigure_getfd(BlockDriverState * bs,int flags,int * open_flags,uint64_t perm,Error ** errp) raw_reconfigure_getfd() argument 3866 int open_flags; raw_check_perm() local [all...] |
| H A D | nfs.c | 409 int flags, int open_flags, Error **errp) in nfs_client_open() argument 459 if (open_flags & BDRV_O_NOCACHE) { in nfs_client_open() 480 if (open_flags & BDRV_O_NOCACHE) { in nfs_client_open() 584 int flags, int open_flags, Error **errp) in nfs_client_open_qdict() argument 595 ret = nfs_client_open(client, opts, flags, open_flags, errp); in nfs_client_open_qdict() 610 bs->open_flags, errp); in nfs_file_open() 730 !(bs->open_flags & BDRV_O_NOCACHE)) { in nfs_co_get_allocated_file_size()
|
| H A D | copy-on-read.c | 122 if (!(bs->open_flags & BDRV_O_INACTIVE)) { in cor_child_perm()
|
| H A D | parallels-ext.c | 178 assert(!(bs->open_flags & BDRV_O_RDWR)); in parallels_load_bitmap()
|
| H A D | io.c | 1061 if (bs->open_flags & BDRV_O_NO_FLUSH) { in bdrv_driver_pwritev() 1197 skip_write = (bs->open_flags & BDRV_O_INACTIVE); in bdrv_co_do_copy_on_readv() 1343 assert((bs->open_flags & BDRV_O_NO_IO) == 0); in bdrv_aligned_preadv() 1870 if (!(bs->open_flags & BDRV_O_UNMAP)) { in bdrv_co_do_pwrite_zeroes() 1976 assert(!(bs->open_flags & BDRV_O_INACTIVE)); in bdrv_co_write_req_prepare() 1977 assert((bs->open_flags & BDRV_O_NO_IO) == 0); in bdrv_co_write_req_prepare() 3057 if (bs->open_flags & BDRV_O_NO_FLUSH) { in bdrv_co_flush() 3163 if (!(bs->open_flags & BDRV_O_UNMAP)) { in bdrv_co_pdiscard()
|
| H A D | block-backend.c | 909 if ((bs->open_flags & BDRV_O_INACTIVE) && blk_can_inactivate(blk)) { in blk_insert_bs() 2205 return blk->root_state.open_flags & BDRV_O_RDWR; in blk_supports_write_perm() 2296 return blk->root_state.open_flags; in blk_get_flags() 2633 blk->root_state.open_flags = blk->root->bs->open_flags; in blk_update_root_state() 2654 return blk->root_state.open_flags; in blk_get_open_flags_from_root_state()
|
| H A D | qapi.c | 74 .direct = !!(bs->open_flags & BDRV_O_NOCACHE), in bdrv_block_device_info() 75 .no_flush = !!(bs->open_flags & BDRV_O_NO_FLUSH), in bdrv_block_device_info()
|
| H A D | snapshot.c | 300 open_ret = drv->bdrv_open(bs, options, bs->open_flags, &local_err); in bdrv_snapshot_goto()
|
| H A D | parallels.c | 1437 if ((bs->open_flags & BDRV_O_RDWR) && !(bs->open_flags & BDRV_O_INACTIVE)) { in parallels_close()
|
| 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 | iscsi.c | 459 static int iscsi_allocmap_init(IscsiLun *iscsilun, int open_flags) in iscsi_allocmap_free() 473 if (open_flags & BDRV_O_NOCACHE) { in iscsi_allocmap_init() 2162 iscsi_allocmap_init(iscsilun, bs->open_flags); in iscsi_co_truncate() 463 iscsi_allocmap_init(IscsiLun * iscsilun,int open_flags) iscsi_allocmap_init() argument
|
| H A D | file-win32.c | 489 if (bs->open_flags & BDRV_O_TEMPORARY) { in raw_close()
|
| H A D | vmdk.c | 1265 ret = vmdk_open_sparse(bs, extent_file, bs->open_flags, buf, in vmdk_parse_extents() 1279 ret = vmdk_open_se_sparse(bs, extent_file, bs->open_flags, errp); in vmdk_parse_extents()
|
| H A D | qed.c | 1591 ret = bdrv_qed_do_open(bs, NULL, bs->open_flags, errp); in bdrv_qed_co_invalidate_cache()
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-block-iothread.c | 254 c->bs->open_flags |= BDRV_O_UNMAP; in test_sync_op_pdiscard() 259 c->bs->open_flags &= ~BDRV_O_UNMAP; in test_sync_op_pdiscard() 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()
|
| /openbmc/qemu/ |
| H A D | block.c | 280 return !(bs->open_flags & BDRV_O_RDWR); in bdrv_is_read_only() 297 if (!read_only && !(bs->open_flags & BDRV_O_ALLOW_RDWR) && in bdrv_can_set_read_only() 324 if (!(bs->open_flags & BDRV_O_RDWR)) { in bdrv_apply_auto_read_only() 327 if (!(bs->open_flags & BDRV_O_AUTO_RDONLY)) { in bdrv_apply_auto_read_only() 336 bs->open_flags &= ~BDRV_O_RDWR; in bdrv_apply_auto_read_only() 1102 int open_flags, in bdrv_parse_detect_zeroes() argument 1118 !(open_flags & BDRV_O_UNMAP)) in bdrv_parse_detect_zeroes() 1226 assert(bs->open_flags & BDRV_O_INACTIVE); in bdrv_child_cb_inactivate() 1276 parent->open_flags &= ~BDRV_O_NO_BACKING; in bdrv_backing_attach() 1557 int open_flags 1545 int open_flags = flags; bdrv_open_flags() local 1649 bdrv_open_driver(BlockDriverState * bs,BlockDriver * drv,const char * node_name,QDict * options,int open_flags,Error ** errp) bdrv_open_driver() argument 1868 int ret, open_flags; bdrv_open_common() local [all...] |
| H A D | blockdev.c | 589 blk_rs->open_flags = bdrv_flags | (read_only ? 0 : BDRV_O_RDWR); in blockdev_init() 1475 flags = state->old_bs->open_flags; in external_snapshot_action() 1711 flags = bs->open_flags | BDRV_O_RDWR; in drive_backup_action() 3013 flags = bs->open_flags | BDRV_O_RDWR; in qmp_drive_mirror()
|
| H A D | qemu-io-cmds.c | 2402 int flags = bs->open_flags; in reopen_f()
|
| /openbmc/qemu/include/standard-headers/linux/ |
| H A D | fuse.h | 793 uint32_t open_flags; /* FUSE_OPEN_... */ 800 uint32_t open_flags; /* FUSE_OPEN_... */ 805 uint32_t open_flags; 787 uint32_t open_flags; /* FUSE_OPEN_... */ global() member 794 uint32_t open_flags; /* FUSE_OPEN_... */ global() member 799 uint32_t open_flags; global() member
|
| /openbmc/qemu/include/block/ |
| H A D | block_int-common.h | 1109 int open_flags; /* flags used to open the file, re-used for re-open */ 1295 int open_flags; 1097 int open_flags; /* flags used to open the file, re-used for re-open */ global() member 1283 int open_flags; global() member
|
| /openbmc/qemu/hw/9pfs/ |
| H A D | 9p.h | 279 int open_flags; member
|
| H A D | 9p.c | 266 err = v9fs_co_open(pdu, f, f->open_flags); in v9fs_reopen_fid() 2117 fidp->open_flags = flags; in v9fs_open() 2188 fidp->open_flags = flags; in v9fs_lcreate() 2992 fidp->open_flags = omode_to_uflags(mode); in v9fs_create() 2993 if (fidp->open_flags & O_EXCL) { in v9fs_create()
|
| /openbmc/qemu/include/hw/xen/ |
| H A D | xen_native.h | 134 struct xentoollog_logger *logger, unsigned int open_flags) in xendevicemodel_open() argument
|
| /openbmc/qemu/linux-user/ |
| H A D | strace.c | 1088 UNUSED static const struct flags open_flags[] = { 1664 print_flags(open_flags, flags, last); in print_syscall_prologue() 1082 UNUSED static const struct flags open_flags[] = { global() variable
|