Lines Matching refs:BlockDriverState
307 BlockDriverState *bs;
644 static inline bool GRAPH_RDLOCK has_data_file(BlockDriverState *bs) in has_data_file()
650 static inline bool data_file_is_raw(BlockDriverState *bs) in data_file_is_raw()
713 qcow2_get_cluster_type(BlockDriverState *bs, uint64_t l2_entry) in qcow2_get_cluster_type()
747 QCow2SubclusterType qcow2_get_subcluster_type(BlockDriverState *bs, in qcow2_get_subcluster_type()
837 int GRAPH_RDLOCK qcow2_mark_dirty(BlockDriverState *bs);
838 int GRAPH_RDLOCK qcow2_mark_corrupt(BlockDriverState *bs);
839 int GRAPH_RDLOCK qcow2_update_header(BlockDriverState *bs);
842 qcow2_signal_corruption(BlockDriverState *bs, bool fatal, int64_t offset,
846 int qcow2_validate_table(BlockDriverState *bs, uint64_t offset,
852 int coroutine_fn GRAPH_RDLOCK qcow2_refcount_init(BlockDriverState *bs);
853 void qcow2_refcount_close(BlockDriverState *bs);
855 int GRAPH_RDLOCK qcow2_get_refcount(BlockDriverState *bs, int64_t cluster_index,
859 qcow2_update_cluster_refcount(BlockDriverState *bs, int64_t cluster_index,
864 qcow2_refcount_area(BlockDriverState *bs, uint64_t offset,
870 qcow2_alloc_clusters(BlockDriverState *bs, uint64_t size);
873 qcow2_alloc_clusters_at(BlockDriverState *bs, uint64_t offset,
876 int64_t coroutine_fn GRAPH_RDLOCK qcow2_alloc_bytes(BlockDriverState *bs, int size);
877 void GRAPH_RDLOCK qcow2_free_clusters(BlockDriverState *bs,
881 qcow2_free_any_cluster(BlockDriverState *bs, uint64_t l2_entry,
885 qcow2_update_snapshot_refcount(BlockDriverState *bs, int64_t l1_table_offset,
888 int GRAPH_RDLOCK qcow2_flush_caches(BlockDriverState *bs);
889 int GRAPH_RDLOCK qcow2_write_caches(BlockDriverState *bs);
890 int coroutine_fn qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res,
893 void GRAPH_RDLOCK qcow2_process_discards(BlockDriverState *bs, int ret);
896 qcow2_check_metadata_overlap(BlockDriverState *bs, int ign, int64_t offset,
899 qcow2_pre_write_overlap_check(BlockDriverState *bs, int ign, int64_t offset,
902 int coroutine_fn qcow2_inc_refcounts_imrt(BlockDriverState *bs, BdrvCheckResult *res,
908 qcow2_change_refcount_order(BlockDriverState *bs, int refcount_order,
911 int coroutine_fn GRAPH_RDLOCK qcow2_shrink_reftable(BlockDriverState *bs);
914 qcow2_get_last_cluster(BlockDriverState *bs, int64_t size);
917 qcow2_detect_metadata_preallocation(BlockDriverState *bs);
921 qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size, bool exact_size);
924 qcow2_shrink_l1_table(BlockDriverState *bs, uint64_t max_size);
926 int GRAPH_RDLOCK qcow2_write_l1_entry(BlockDriverState *bs, int l1_index);
931 qcow2_get_host_offset(BlockDriverState *bs, uint64_t offset,
936 qcow2_alloc_host_offset(BlockDriverState *bs, uint64_t offset,
941 qcow2_alloc_compressed_cluster_offset(BlockDriverState *bs, uint64_t offset,
944 qcow2_parse_compressed_l2_entry(BlockDriverState *bs, uint64_t l2_entry,
948 qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2Meta *m);
951 qcow2_alloc_cluster_abort(BlockDriverState *bs, QCowL2Meta *m);
954 qcow2_cluster_discard(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
958 qcow2_subcluster_zeroize(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
962 qcow2_expand_zero_clusters(BlockDriverState *bs,
968 qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info);
971 qcow2_snapshot_goto(BlockDriverState *bs, const char *snapshot_id);
974 qcow2_snapshot_delete(BlockDriverState *bs, const char *snapshot_id,
978 qcow2_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab);
981 qcow2_snapshot_load_tmp(BlockDriverState *bs, const char *snapshot_id,
984 void qcow2_free_snapshots(BlockDriverState *bs);
986 qcow2_read_snapshots(BlockDriverState *bs, Error **errp);
987 int GRAPH_RDLOCK qcow2_write_snapshots(BlockDriverState *bs);
990 qcow2_check_read_snapshot_table(BlockDriverState *bs, BdrvCheckResult *result,
994 qcow2_check_fix_snapshot_table(BlockDriverState *bs, BdrvCheckResult *result,
999 qcow2_cache_create(BlockDriverState *bs, int num_tables, unsigned table_size);
1004 int GRAPH_RDLOCK qcow2_cache_flush(BlockDriverState *bs, Qcow2Cache *c);
1005 int GRAPH_RDLOCK qcow2_cache_write(BlockDriverState *bs, Qcow2Cache *c);
1006 int GRAPH_RDLOCK qcow2_cache_set_dependency(BlockDriverState *bs, Qcow2Cache *c,
1011 int GRAPH_RDLOCK qcow2_cache_empty(BlockDriverState *bs, Qcow2Cache *c);
1014 qcow2_cache_get(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset,
1018 qcow2_cache_get_empty(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset,
1027 qcow2_check_bitmaps_refcounts(BlockDriverState *bs, BdrvCheckResult *res,
1032 qcow2_load_dirty_bitmaps(BlockDriverState *bs, bool *header_updated,
1036 qcow2_get_bitmap_info_list(BlockDriverState *bs,
1039 int GRAPH_RDLOCK qcow2_reopen_bitmaps_rw(BlockDriverState *bs, Error **errp);
1040 int GRAPH_RDLOCK qcow2_reopen_bitmaps_ro(BlockDriverState *bs, Error **errp);
1043 qcow2_truncate_bitmaps_check(BlockDriverState *bs, Error **errp);
1046 qcow2_store_persistent_dirty_bitmaps(BlockDriverState *bs, bool release_stored,
1050 qcow2_co_can_store_new_dirty_bitmap(BlockDriverState *bs, const char *name,
1054 qcow2_co_remove_persistent_dirty_bitmap(BlockDriverState *bs, const char *name,
1057 bool qcow2_supports_persistent_dirty_bitmap(BlockDriverState *bs);
1058 uint64_t qcow2_get_persistent_dirty_bitmap_size(BlockDriverState *bs,
1062 qcow2_co_compress(BlockDriverState *bs, void *dest, size_t dest_size,
1065 qcow2_co_decompress(BlockDriverState *bs, void *dest, size_t dest_size,
1068 qcow2_co_encrypt(BlockDriverState *bs, uint64_t host_offset,
1071 qcow2_co_decrypt(BlockDriverState *bs, uint64_t host_offset,