Lines Matching refs:BlockDriverState

80 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_nb_sectors(BlockDriverState *bs);
81 int64_t coroutine_mixed_fn bdrv_nb_sectors(BlockDriverState *bs);
83 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_getlength(BlockDriverState *bs);
84 int64_t co_wrapper_mixed_bdrv_rdlock bdrv_getlength(BlockDriverState *bs);
87 bdrv_co_get_allocated_file_size(BlockDriverState *bs);
90 bdrv_get_allocated_file_size(BlockDriverState *bs);
93 BlockDriverState *in_bs, Error **errp);
96 bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
99 bdrv_co_delete_file_noerr(BlockDriverState *bs);
107 bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf);
110 int coroutine_fn GRAPH_RDLOCK bdrv_co_flush(BlockDriverState *bs);
116 int coroutine_fn GRAPH_RDLOCK bdrv_co_zone_report(BlockDriverState *bs,
120 int coroutine_fn GRAPH_RDLOCK bdrv_co_zone_mgmt(BlockDriverState *bs,
123 int coroutine_fn GRAPH_RDLOCK bdrv_co_zone_append(BlockDriverState *bs,
128 bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs);
131 bdrv_co_block_status(BlockDriverState *bs, int64_t offset, int64_t bytes,
132 int64_t *pnum, int64_t *map, BlockDriverState **file);
134 bdrv_block_status(BlockDriverState *bs, int64_t offset, int64_t bytes,
135 int64_t *pnum, int64_t *map, BlockDriverState **file);
138 bdrv_co_block_status_above(BlockDriverState *bs, BlockDriverState *base,
140 int64_t *map, BlockDriverState **file);
142 bdrv_block_status_above(BlockDriverState *bs, BlockDriverState *base,
144 int64_t *map, BlockDriverState **file);
147 bdrv_co_is_allocated(BlockDriverState *bs, int64_t offset, int64_t bytes,
150 bdrv_is_allocated(BlockDriverState *bs, int64_t offset,
154 bdrv_co_is_allocated_above(BlockDriverState *top, BlockDriverState *base,
158 bdrv_is_allocated_above(BlockDriverState *bs, BlockDriverState *base,
163 bdrv_co_is_zero_fast(BlockDriverState *bs, int64_t offset, int64_t bytes);
166 bdrv_apply_auto_read_only(BlockDriverState *bs, const char *errmsg,
169 bool bdrv_is_read_only(BlockDriverState *bs);
170 bool bdrv_is_writable(BlockDriverState *bs);
171 bool bdrv_is_sg(BlockDriverState *bs);
172 int bdrv_get_flags(BlockDriverState *bs);
174 bool coroutine_fn GRAPH_RDLOCK bdrv_co_is_inserted(BlockDriverState *bs);
175 bool co_wrapper_bdrv_rdlock bdrv_is_inserted(BlockDriverState *bs);
178 bdrv_co_lock_medium(BlockDriverState *bs, bool locked);
181 bdrv_co_eject(BlockDriverState *bs, bool eject_flag);
183 const char *bdrv_get_format_name(BlockDriverState *bs);
185 bool GRAPH_RDLOCK bdrv_supports_compressed_writes(BlockDriverState *bs);
186 const char *bdrv_get_node_name(const BlockDriverState *bs);
189 bdrv_get_device_name(const BlockDriverState *bs);
192 bdrv_get_device_or_node_name(const BlockDriverState *bs);
195 bdrv_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi);
198 bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi);
201 bdrv_get_specific_info(BlockDriverState *bs, Error **errp);
203 BlockStatsSpecific *bdrv_get_specific_stats(BlockDriverState *bs);
204 void bdrv_round_to_subclusters(BlockDriverState *bs,
209 void bdrv_get_backing_filename(BlockDriverState *bs,
213 bdrv_co_change_backing_file(BlockDriverState *bs, const char *backing_file,
217 bdrv_change_backing_file(BlockDriverState *bs, const char *backing_file,
220 int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf,
223 int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,
230 size_t bdrv_min_mem_align(BlockDriverState *bs);
232 size_t bdrv_opt_mem_align(BlockDriverState *bs);
233 void *qemu_blockalign(BlockDriverState *bs, size_t size);
234 void *qemu_blockalign0(BlockDriverState *bs, size_t size);
235 void *qemu_try_blockalign(BlockDriverState *bs, size_t size);
236 void *qemu_try_blockalign0(BlockDriverState *bs, size_t size);
238 void bdrv_enable_copy_on_read(BlockDriverState *bs);
239 void bdrv_disable_copy_on_read(BlockDriverState *bs);
242 bdrv_co_debug_event(BlockDriverState *bs, BlkdebugEvent event);
245 bdrv_debug_event(BlockDriverState *bs, BlkdebugEvent event);
266 AioContext *bdrv_get_aio_context(BlockDriverState *bs);
279 AioContext *coroutine_fn bdrv_co_enter(BlockDriverState *bs);
285 void coroutine_fn bdrv_co_leave(BlockDriverState *bs, AioContext *old_ctx);
290 bdrv_co_can_store_new_dirty_bitmap(BlockDriverState *bs, const char *name,
293 bdrv_can_store_new_dirty_bitmap(BlockDriverState *bs, const char *name,
352 BlockDriverState *bs_ = (bs); \
357 void bdrv_drain(BlockDriverState *bs);
364 bdrv_check(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix);
368 bdrv_invalidate_cache(BlockDriverState *bs, Error **errp);
370 int co_wrapper_mixed_bdrv_rdlock bdrv_flush(BlockDriverState *bs);
376 bdrv_readv_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
379 bdrv_writev_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
415 bdrv_drain_poll(BlockDriverState *bs, BdrvChild *ignore_parent,
432 void bdrv_drained_begin(BlockDriverState *bs);
440 void bdrv_do_drained_begin_quiesce(BlockDriverState *bs, BdrvChild *parent);
453 void bdrv_drained_end(BlockDriverState *bs);