Home
last modified time | relevance | path

Searched refs:BlockDriverState (Results 26 – 50 of 123) sorted by relevance

12345

/qemu/block/
H A Dblkverify.c28 BlockDriverState *bs;
112 static int blkverify_open(BlockDriverState *bs, QDict *options, int flags, in blkverify_open()
150 static void blkverify_close(BlockDriverState *bs) in blkverify_close()
161 blkverify_co_getlength(BlockDriverState *bs) in blkverify_co_getlength()
196 blkverify_co_prwv(BlockDriverState *bs, BlkverifyRequest *r, uint64_t offset, in blkverify_co_prwv()
232 blkverify_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkverify_co_preadv()
261 blkverify_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkverify_co_pwritev()
277 blkverify_recurse_can_replace(BlockDriverState *bs, in blkverify_recurse_can_replace()
278 BlockDriverState *to_replace) in blkverify_recurse_can_replace()
291 static void GRAPH_RDLOCK blkverify_refresh_filename(BlockDriverState *bs) in blkverify_refresh_filename()
[all …]
H A Dcopy-before-write.h39 BlockDriverState *bdrv_cbw_append(BlockDriverState *source,
40 BlockDriverState *target,
45 void bdrv_cbw_drop(BlockDriverState *bs);
H A Dreplication.c139 static void replication_close(BlockDriverState *bs) in replication_close()
183 replication_co_getlength(BlockDriverState *bs) in replication_co_getlength()
404 BlockDriverState *top_bs; in backup_job_cleanup()
419 BlockDriverState *bs = opaque; in backup_job_completed()
431 check_top_bs(BlockDriverState *top_bs, BlockDriverState *bs) in check_top_bs()
453 BlockDriverState *bs = rs->opaque; in replication_start()
455 BlockDriverState *top_bs; in replication_start()
612 BlockDriverState *bs = rs->opaque; in replication_do_checkpoint()
632 BlockDriverState *bs = rs->opaque; in replication_get_error()
648 BlockDriverState *bs = opaque; in replication_done()
[all …]
H A Dcrypto.c66 BlockDriverState *bs = opaque; in block_crypto_read_func()
89 BlockDriverState *bs = opaque; in block_crypto_write_func()
169 BlockDriverState *bs = NULL; in block_crypto_co_format_luks_payload()
451 static void block_crypto_close(BlockDriverState *bs) in block_crypto_close()
604 block_crypto_co_getlength(BlockDriverState *bs) in block_crypto_co_getlength()
690 static int block_crypto_open_luks(BlockDriverState *bs, in block_crypto_open_luks()
704 BlockDriverState *hdr_bs = NULL; in block_crypto_co_create_luks()
705 BlockDriverState *bs = NULL; in block_crypto_co_create_luks()
790 BlockDriverState *bs = NULL; in block_crypto_co_create_opts_luks()
925 block_crypto_amend_cleanup(BlockDriverState *bs) in block_crypto_amend_cleanup()
[all …]
H A Dblkio.c234 BlockDriverState *bs = opaque; in blkio_completion_fd_read()
279 BlockDriverState *bs = opaque; in blkio_completion_fd_poll()
299 static void blkio_attach_aio_context(BlockDriverState *bs, in blkio_attach_aio_context()
310 static void blkio_detach_aio_context(BlockDriverState *bs) in blkio_detach_aio_context()
335 static void blkio_submit_io(BlockDriverState *bs) in blkio_submit_io()
360 blkio_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkio_co_preadv()
442 static int coroutine_fn blkio_co_flush(BlockDriverState *bs) in blkio_co_flush()
458 static int coroutine_fn blkio_co_pwrite_zeroes(BlockDriverState *bs, in blkio_co_pwrite_zeroes()
501 blkio_mem_region_from_host(BlockDriverState *bs, in blkio_mem_region_from_host()
917 static void blkio_close(BlockDriverState *bs) in blkio_close()
[all …]
H A Dwrite-threshold.c21 uint64_t bdrv_write_threshold_get(const BlockDriverState *bs) in bdrv_write_threshold_get()
26 void bdrv_write_threshold_set(BlockDriverState *bs, uint64_t threshold_bytes) in bdrv_write_threshold_set()
35 BlockDriverState *bs; in qmp_block_set_write_threshold()
46 void bdrv_write_threshold_check_write(BlockDriverState *bs, int64_t offset, in bdrv_write_threshold_check_write()
H A Ddirty-bitmap.c34 BlockDriverState *bs;
64 static inline void bdrv_dirty_bitmaps_lock(BlockDriverState *bs) in bdrv_dirty_bitmaps_lock()
69 static inline void bdrv_dirty_bitmaps_unlock(BlockDriverState *bs) in bdrv_dirty_bitmaps_unlock()
99 BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, in bdrv_create_dirty_bitmap()
359 BlockDriverState *bs = bitmap->bs; in bdrv_release_dirty_bitmap()
372 void bdrv_release_named_dirty_bitmaps(BlockDriverState *bs) in bdrv_release_named_dirty_bitmaps()
406 bdrv_supports_persistent_dirty_bitmap(BlockDriverState *bs) in bdrv_supports_persistent_dirty_bitmap()
452 BlockDirtyInfoList *bdrv_query_dirty_bitmaps(BlockDriverState *bs) in bdrv_query_dirty_bitmaps()
702 bool bdrv_has_readonly_bitmaps(BlockDriverState *bs) in bdrv_has_readonly_bitmaps()
714 bool bdrv_has_named_bitmaps(BlockDriverState *bs) in bdrv_has_named_bitmaps()
[all …]
H A Dblklogwrites.c167 static int blk_log_writes_open(BlockDriverState *bs, QDict *options, int flags, in blk_log_writes_open()
295 static void blk_log_writes_close(BlockDriverState *bs) in blk_log_writes_close()
307 blk_log_writes_co_getlength(BlockDriverState *bs) in blk_log_writes_co_getlength()
312 static void blk_log_writes_child_perm(BlockDriverState *bs, BdrvChild *c, in blk_log_writes_child_perm()
328 static void blk_log_writes_refresh_limits(BlockDriverState *bs, Error **errp) in blk_log_writes_refresh_limits()
335 blk_log_writes_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blk_log_writes_co_preadv()
342 BlockDriverState *bs;
352 BlockDriverState *bs;
470 blk_log_writes_co_log(BlockDriverState *bs, uint64_t offset, uint64_t bytes, in blk_log_writes_co_log()
559 blk_log_writes_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, in blk_log_writes_co_pwrite_zeroes()
[all …]
H A Dfile-posix.c184 static int fd_open(BlockDriverState *bs) in fd_open()
195 static int64_t raw_getlength(BlockDriverState *bs);
198 BlockDriverState *bs;
233 static int cdrom_reopen(BlockDriverState *bs);
358 static bool raw_needs_alignment(BlockDriverState *bs) in raw_needs_alignment()
2606 static void raw_close(BlockDriverState *bs) in raw_close()
2689 static int64_t raw_getlength(BlockDriverState *bs) in raw_getlength()
3638 BlockDriverState *bs, int64_t offset, in raw_co_pwrite_zeroes()
3840 raw_co_copy_range_to(BlockDriverState *bs, in raw_co_copy_range_to()
4063 static bool hdev_is_sg(BlockDriverState *bs) in hdev_is_sg()
[all …]
H A Dblkdebug.c634 blkdebug_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkdebug_co_preadv()
655 blkdebug_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkdebug_co_pwritev()
756 BlockDriverState **file) in blkdebug_co_block_status()
774 static void blkdebug_close(BlockDriverState *bs) in blkdebug_close()
791 static void suspend_request(BlockDriverState *bs, BlkdebugRule *rule) in suspend_request()
841 blkdebug_co_debug_event(BlockDriverState *bs, BlkdebugEvent event) in blkdebug_co_debug_event()
927 static int blkdebug_debug_resume(BlockDriverState *bs, const char *tag) in blkdebug_debug_resume()
934 static int blkdebug_debug_remove_breakpoint(BlockDriverState *bs, in blkdebug_debug_remove_breakpoint()
972 blkdebug_co_getlength(BlockDriverState *bs) in blkdebug_co_getlength()
1010 static void blkdebug_refresh_limits(BlockDriverState *bs, Error **errp) in blkdebug_refresh_limits()
[all …]
H A Dparallels.c181 static int mark_used(BlockDriverState *bs, unsigned long *bitmap, in mark_used()
243 static void parallels_free_used_bitmap(BlockDriverState *bs) in parallels_free_used_bitmap()
251 allocate_clusters(BlockDriverState *bs, int64_t sector_num, in allocate_clusters()
387 parallels_co_flush_to_os(BlockDriverState *bs) in parallels_co_flush_to_os()
421 BlockDriverState **file) in parallels_co_block_status()
594 static void parallels_check_unclean(BlockDriverState *bs, in parallels_check_unclean()
922 static void parallels_collect_statistics(BlockDriverState *bs, in parallels_collect_statistics()
954 parallels_co_check(BlockDriverState *bs, BdrvCheckResult *res, in parallels_co_check()
999 BlockDriverState *bs; in parallels_co_create()
1100 BlockDriverState *bs = NULL; in parallels_co_create_opts()
[all …]
H A Dblock-backend.c427 BlockDriverState *bs; in blk_new_open()
597 BlockDriverState *bs, *old_bs; in bdrv_next()
784 bool bdrv_has_blk(BlockDriverState *bs) in bdrv_has_blk()
1324 BlockDriverState *bs; in blk_co_do_preadv_part()
1399 BlockDriverState *bs; in blk_co_do_pwritev_part()
1648 BlockDriverState *bs = blk_bs(blk); in blk_co_nb_sectors()
1666 BlockDriverState *bs = blk_bs(blk); in blk_nb_sectors()
2064 BlockDriverState *bs = blk_bs(blk); in blk_drain()
2139 BlockDriverState *bs = blk_bs(blk); in send_qmp_error_event()
2187 BlockDriverState *bs = blk_bs(blk); in blk_supports_write_perm()
[all …]
H A Dqcow2-cache.c123 Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables, in qcow2_cache_create()
167 qcow2_cache_flush_dependency(BlockDriverState *bs, Qcow2Cache *c) in qcow2_cache_flush_dependency()
183 qcow2_cache_entry_flush(BlockDriverState *bs, Qcow2Cache *c, int i) in qcow2_cache_entry_flush()
240 int qcow2_cache_write(BlockDriverState *bs, Qcow2Cache *c) in qcow2_cache_write()
259 int qcow2_cache_flush(BlockDriverState *bs, Qcow2Cache *c) in qcow2_cache_flush()
273 int qcow2_cache_set_dependency(BlockDriverState *bs, Qcow2Cache *c, in qcow2_cache_set_dependency()
301 int qcow2_cache_empty(BlockDriverState *bs, Qcow2Cache *c) in qcow2_cache_empty()
324 qcow2_cache_do_get(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset, in qcow2_cache_do_get()
406 int qcow2_cache_get(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset, in qcow2_cache_get()
412 int qcow2_cache_get_empty(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset, in qcow2_cache_get_empty()
H A Dmirror.c44 BlockDriverState *mirror_top_bs;
45 BlockDriverState *base;
46 BlockDriverState *base_overlay;
51 BlockDriverState *to_replace;
485 BlockDriverState *source; in mirror_iteration()
670 BlockDriverState *src; in mirror_exit_common()
671 BlockDriverState *target_bs; in mirror_exit_common()
672 BlockDriverState *mirror_top_bs; in mirror_exit_common()
842 BlockDriverState *bs; in mirror_dirty_init()
930 BlockDriverState *bs; in mirror_run()
[all …]
H A Dqcow2-bitmap.c103 static inline bool can_write(BlockDriverState *bs) in can_write()
108 static int GRAPH_RDLOCK update_header_sync(BlockDriverState *bs) in update_header_sync()
160 check_constraints_on_bitmap(BlockDriverState *bs, const char *name, in check_constraints_on_bitmap()
207 clear_bitmap_table(BlockDriverState *bs, uint64_t *bitmap_table, in clear_bitmap_table()
225 bitmap_table_load(BlockDriverState *bs, Qcow2BitmapTable *tb, in bitmap_table_load()
264 free_bitmap_clusters(BlockDriverState *bs, Qcow2BitmapTable *tb) in free_bitmap_clusters()
342 BdrvDirtyBitmap *load_bitmap(BlockDriverState *bs, in load_bitmap()
837 update_ext_header_and_dir_in_place(BlockDriverState *bs, in update_ext_header_and_dir_in_place()
967 qcow2_load_dirty_bitmaps(BlockDriverState *bs, in qcow2_load_dirty_bitmaps()
1097 bool qcow2_get_bitmap_info_list(BlockDriverState *bs, in qcow2_get_bitmap_info_list()
[all …]
H A Dfile-win32.c46 BlockDriverState *bs;
151 static BlockAIOCB *paio_submit(BlockDriverState *bs, HANDLE hfile, in paio_submit()
212 static void raw_detach_aio_context(BlockDriverState *bs) in raw_detach_aio_context()
221 static void raw_attach_aio_context(BlockDriverState *bs, in raw_attach_aio_context()
231 static void raw_probe_alignment(BlockDriverState *bs, Error **errp) in raw_probe_alignment()
334 static int raw_open(BlockDriverState *bs, QDict *options, int flags, in raw_open()
441 static BlockAIOCB *raw_aio_preadv(BlockDriverState *bs, in raw_aio_preadv()
456 static BlockAIOCB *raw_aio_pwritev(BlockDriverState *bs, in raw_aio_pwritev()
471 static BlockAIOCB *raw_aio_flush(BlockDriverState *bs, in raw_aio_flush()
478 static void raw_close(BlockDriverState *bs) in raw_close()
[all …]
H A Dqcow2.c103 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_read_func()
126 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_init_func()
165 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_write_func()
510 int qcow2_mark_dirty(BlockDriverState *bs) in qcow2_mark_dirty()
840 BlockDriverState *bs = opaque; in cache_clean_timer_cb()
1908 BlockDriverState *bs;
2264 BlockDriverState *bs;
3503 BlockDriverState *bs = NULL; in qcow2_co_create()
3504 BlockDriverState *data_bs = NULL; in qcow2_co_create()
3888 BlockDriverState *bs = NULL; in qcow2_co_create_opts()
[all …]
H A Dnvme.c951 static void nvme_close(BlockDriverState *bs) in nvme_close()
1021 static uint32_t nvme_get_blocksize(BlockDriverState *bs) in nvme_get_blocksize()
1238 static inline bool nvme_qiov_aligned(BlockDriverState *bs, in nvme_qiov_aligned()
1256 static coroutine_fn int nvme_co_prw(BlockDriverState *bs, in nvme_co_prw()
1293 static coroutine_fn int nvme_co_preadv(BlockDriverState *bs, in nvme_co_preadv()
1301 static coroutine_fn int nvme_co_pwritev(BlockDriverState *bs, in nvme_co_pwritev()
1309 static coroutine_fn int nvme_co_flush(BlockDriverState *bs) in nvme_co_flush()
1401 static int coroutine_fn nvme_co_pdiscard(BlockDriverState *bs, in nvme_co_pdiscard()
1517 static void nvme_refresh_filename(BlockDriverState *bs) in nvme_refresh_filename()
1546 static void nvme_detach_aio_context(BlockDriverState *bs) in nvme_detach_aio_context()
[all …]
H A Dquorum.c105 BlockDriverState *bs;
118 BlockDriverState *bs;
164 static QuorumAIOCB *coroutine_fn quorum_aio_get(BlockDriverState *bs, in quorum_aio_get()
768 quorum_co_getlength(BlockDriverState *bs) in quorum_co_getlength()
829 quorum_recurse_can_replace(BlockDriverState *bs, BlockDriverState *to_replace) in quorum_recurse_can_replace()
926 static void quorum_refresh_flags(BlockDriverState *bs) in quorum_refresh_flags()
1055 static void quorum_close(BlockDriverState *bs) in quorum_close()
1070 quorum_add_child(BlockDriverState *bs, BlockDriverState *child_bs, Error **errp) in quorum_add_child()
1190 static char *quorum_dirname(BlockDriverState *bs, Error **errp) in quorum_dirname()
1200 static void quorum_child_perm(BlockDriverState *bs, BdrvChild *c, in quorum_child_perm()
[all …]
H A Dnfs.c70 BlockDriverState *bs;
263 static int coroutine_fn nfs_co_preadv(BlockDriverState *bs, int64_t offset, in nfs_co_preadv()
346 static int coroutine_fn nfs_co_flush(BlockDriverState *bs) in nfs_co_flush()
368 static void nfs_detach_aio_context(BlockDriverState *bs) in nfs_detach_aio_context()
377 static void nfs_attach_aio_context(BlockDriverState *bs, in nfs_attach_aio_context()
409 static void nfs_file_close(BlockDriverState *bs) in nfs_file_close()
608 static int nfs_file_open(BlockDriverState *bs, QDict *options, int flags, in nfs_file_open()
706 static int nfs_has_zero_init(BlockDriverState *bs) in nfs_has_zero_init()
760 nfs_file_co_truncate(BlockDriverState *bs, int64_t offset, bool exact, in nfs_file_co_truncate()
822 static void nfs_refresh_filename(BlockDriverState *bs) in nfs_refresh_filename()
[all …]
/qemu/tests/unit/
H A Dtest-bdrv-drain.c43 BlockDriverState *bs = opaque; in sleep_in_drain_begin()
188 BlockDriverState *bs, *backing; in test_setup()
482 BlockDriverState *bs;
527 BlockDriverState *bs; in test_iothread_common()
632 BlockDriverState *bs;
1141 BlockDriverState *parent_b;
1143 BlockDriverState *c;
1388 BlockDriverState *bs; in test_set_aio_context()
1417 BlockDriverState *bs;
1659 BlockDriverState *chain[3]; in test_drop_intermediate_poll()
[all …]
/qemu/include/block/
H A Dqapi.h33 bdrv_block_device_info(BlockBackend *blk, BlockDriverState *bs,
37 bdrv_query_snapshot_info_list(BlockDriverState *bs,
41 bdrv_query_image_info(BlockDriverState *bs, ImageInfo **p_info, bool flat,
44 bdrv_query_block_graph_info(BlockDriverState *bs, BlockGraphInfo **p_info,
H A Dwrite-threshold.h26 void bdrv_write_threshold_set(BlockDriverState *bs, uint64_t threshold_bytes);
34 uint64_t bdrv_write_threshold_get(const BlockDriverState *bs);
42 void bdrv_write_threshold_check_write(BlockDriverState *bs, int64_t offset,
/qemu/
H A Dblockdev.c316 BlockDriverState *bs;
488 BlockDriverState *bs; in blockdev_init()
693 BlockDriverState *bdrv_next_monitor_owned(BlockDriverState *bs) in bdrv_next_monitor_owned()
1041 BlockDriverState *bs; in qmp_get_root_bs()
1128 BlockDriverState *bs; in qmp_blockdev_snapshot_delete_internal_sync()
1188 BlockDriverState *bs;
1206 BlockDriverState *bs; in internal_snapshot_action()
1570 BlockDriverState *bs;
1594 BlockDriverState *bs; in drive_backup_action()
1760 BlockDriverState *bs;
[all …]
/qemu/include/sysemu/
H A Dblock-backend-global-state.h28 blk_new_with_bs(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm,
32 blk_co_new_with_bs(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm,
60 int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp);
61 int blk_replace_bs(BlockBackend *blk, BlockDriverState *new_bs, Error **errp);
62 bool GRAPH_RDLOCK bdrv_has_blk(BlockDriverState *bs);
63 bool GRAPH_RDLOCK bdrv_is_root_node(BlockDriverState *bs);

12345