Searched refs:bdrv_flags (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/block/ |
H A D | qapi-sysemu.c | 318 int bdrv_flags; in qmp_blockdev_change_medium() local 333 bdrv_flags = blk_get_open_flags_from_root_state(blk); in qmp_blockdev_change_medium() 334 bdrv_flags &= ~(BDRV_O_TEMPORARY | BDRV_O_SNAPSHOT | BDRV_O_NO_BACKING | in qmp_blockdev_change_medium() 346 bdrv_flags &= ~BDRV_O_RDWR; in qmp_blockdev_change_medium() 350 bdrv_flags |= BDRV_O_RDWR; in qmp_blockdev_change_medium() 365 medium_bs = bdrv_open(filename, NULL, options, bdrv_flags, errp); in qmp_blockdev_change_medium()
|
H A D | gluster.c | 749 static void qemu_gluster_parse_flags(int bdrv_flags, int *open_flags) in qemu_gluster_parse_flags() argument 755 if (bdrv_flags & BDRV_O_RDWR) { in qemu_gluster_parse_flags() 761 if ((bdrv_flags & BDRV_O_NOCACHE)) { in qemu_gluster_parse_flags() 794 int bdrv_flags, Error **errp) in qemu_gluster_open() argument 853 qemu_gluster_parse_flags(bdrv_flags, &open_flags); in qemu_gluster_open()
|
H A D | file-posix.c | 512 static void raw_parse_flags(int bdrv_flags, int *open_flags, bool has_writers) in raw_parse_flags() argument 520 if (bdrv_flags & BDRV_O_AUTO_RDONLY) { in raw_parse_flags() 522 } else if (bdrv_flags & BDRV_O_RDWR) { in raw_parse_flags() 534 if ((bdrv_flags & BDRV_O_NOCACHE)) { in raw_parse_flags() 593 int bdrv_flags, int open_flags, in raw_open_common() argument 619 if (bdrv_flags & BDRV_O_NATIVE_AIO) { in raw_open_common() 622 } else if (bdrv_flags & BDRV_O_IO_URING) { in raw_open_common() 688 raw_parse_flags(bdrv_flags, &s->open_flags, false); in raw_open_common() 817 if (filename && (bdrv_flags & BDRV_O_TEMPORARY)) { in raw_open_common()
|
H A D | ssh.c | 841 static int ssh_open(BlockDriverState *bs, QDict *options, int bdrv_flags, in ssh_open() argument 852 if (bdrv_flags & BDRV_O_RDWR) { in ssh_open()
|
/openbmc/qemu/ |
H A D | blockdev.c | 380 static void extract_common_blockdev_options(QemuOpts *opts, int *bdrv_flags, in extract_common_blockdev_options() argument 387 if (bdrv_flags) { in extract_common_blockdev_options() 389 *bdrv_flags |= BDRV_O_COPY_ON_READ; in extract_common_blockdev_options() 393 if (bdrv_parse_aio(aio, bdrv_flags) < 0) { in extract_common_blockdev_options() 483 int bdrv_flags = 0; in blockdev_init() local 535 extract_common_blockdev_options(opts, &bdrv_flags, &throttling_group, &cfg, in blockdev_init() 578 bdrv_flags |= BDRV_O_SNAPSHOT; in blockdev_init() 589 blk_rs->open_flags = bdrv_flags | (read_only ? 0 : BDRV_O_RDWR); in blockdev_init() 606 assert((bdrv_flags & BDRV_O_CACHE_MASK) == 0); in blockdev_init() 609 bdrv_flags |= BDRV_O_INACTIVE; in blockdev_init() [all …]
|