dirty-bitmap.h (5deb6cbd1fae10197623a74b0734a468ec80c609) | dirty-bitmap.h (ef9041a7b8c46001c8c44eab3eac9920739d9b36) |
---|---|
1#ifndef BLOCK_DIRTY_BITMAP_H 2#define BLOCK_DIRTY_BITMAP_H 3 4#include "qapi/qapi-types-block-core.h" 5#include "qemu/hbitmap.h" 6 7typedef enum BitmapCheckFlags { 8 BDRV_BITMAP_BUSY = 1, --- 82 unchanged lines hidden (view full) --- 91int64_t bdrv_get_dirty_count(BdrvDirtyBitmap *bitmap); 92void bdrv_dirty_bitmap_truncate(BlockDriverState *bs, int64_t bytes); 93bool bdrv_dirty_bitmap_readonly(const BdrvDirtyBitmap *bitmap); 94bool bdrv_has_readonly_bitmaps(BlockDriverState *bs); 95bool bdrv_dirty_bitmap_get_autoload(const BdrvDirtyBitmap *bitmap); 96bool bdrv_dirty_bitmap_get_persistence(BdrvDirtyBitmap *bitmap); 97bool bdrv_dirty_bitmap_inconsistent(const BdrvDirtyBitmap *bitmap); 98bool bdrv_has_changed_persistent_bitmaps(BlockDriverState *bs); | 1#ifndef BLOCK_DIRTY_BITMAP_H 2#define BLOCK_DIRTY_BITMAP_H 3 4#include "qapi/qapi-types-block-core.h" 5#include "qemu/hbitmap.h" 6 7typedef enum BitmapCheckFlags { 8 BDRV_BITMAP_BUSY = 1, --- 82 unchanged lines hidden (view full) --- 91int64_t bdrv_get_dirty_count(BdrvDirtyBitmap *bitmap); 92void bdrv_dirty_bitmap_truncate(BlockDriverState *bs, int64_t bytes); 93bool bdrv_dirty_bitmap_readonly(const BdrvDirtyBitmap *bitmap); 94bool bdrv_has_readonly_bitmaps(BlockDriverState *bs); 95bool bdrv_dirty_bitmap_get_autoload(const BdrvDirtyBitmap *bitmap); 96bool bdrv_dirty_bitmap_get_persistence(BdrvDirtyBitmap *bitmap); 97bool bdrv_dirty_bitmap_inconsistent(const BdrvDirtyBitmap *bitmap); 98bool bdrv_has_changed_persistent_bitmaps(BlockDriverState *bs); |
99BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BlockDriverState *bs, 100 BdrvDirtyBitmap *bitmap); | 99 100BdrvDirtyBitmap *bdrv_dirty_bitmap_first(BlockDriverState *bs); 101BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BdrvDirtyBitmap *bitmap); 102#define FOR_EACH_DIRTY_BITMAP(bs, bitmap) \ 103for (bitmap = bdrv_dirty_bitmap_first(bs); bitmap; \ 104 bitmap = bdrv_dirty_bitmap_next(bitmap)) 105 |
101char *bdrv_dirty_bitmap_sha256(const BdrvDirtyBitmap *bitmap, Error **errp); 102int64_t bdrv_dirty_bitmap_next_zero(BdrvDirtyBitmap *bitmap, uint64_t offset, 103 uint64_t bytes); 104bool bdrv_dirty_bitmap_next_dirty_area(BdrvDirtyBitmap *bitmap, 105 uint64_t *offset, uint64_t *bytes); 106BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap_locked(BdrvDirtyBitmap *bitmap, 107 Error **errp); 108 109#endif | 106char *bdrv_dirty_bitmap_sha256(const BdrvDirtyBitmap *bitmap, Error **errp); 107int64_t bdrv_dirty_bitmap_next_zero(BdrvDirtyBitmap *bitmap, uint64_t offset, 108 uint64_t bytes); 109bool bdrv_dirty_bitmap_next_dirty_area(BdrvDirtyBitmap *bitmap, 110 uint64_t *offset, uint64_t *bytes); 111BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap_locked(BdrvDirtyBitmap *bitmap, 112 Error **errp); 113 114#endif |