dirty-bitmap.c (1e638301604ab8e05c54bee59584c7cd81ebe4d2) dirty-bitmap.c (ef9041a7b8c46001c8c44eab3eac9920739d9b36)
1/*
2 * Block Dirty Bitmap
3 *
4 * Copyright (c) 2016-2017 Red Hat. Inc
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 837 unchanged lines hidden (view full) ---

846 if (bm->persistent && !bm->readonly && !bm->skip_store) {
847 return true;
848 }
849 }
850
851 return false;
852}
853
1/*
2 * Block Dirty Bitmap
3 *
4 * Copyright (c) 2016-2017 Red Hat. Inc
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 837 unchanged lines hidden (view full) ---

846 if (bm->persistent && !bm->readonly && !bm->skip_store) {
847 return true;
848 }
849 }
850
851 return false;
852}
853
854BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BlockDriverState *bs,
855 BdrvDirtyBitmap *bitmap)
854BdrvDirtyBitmap *bdrv_dirty_bitmap_first(BlockDriverState *bs)
856{
855{
857 return bitmap == NULL ? QLIST_FIRST(&bs->dirty_bitmaps) :
858 QLIST_NEXT(bitmap, list);
856 return QLIST_FIRST(&bs->dirty_bitmaps);
859}
860
857}
858
859BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BdrvDirtyBitmap *bitmap)
860{
861 return QLIST_NEXT(bitmap, list);
862}
863
861char *bdrv_dirty_bitmap_sha256(const BdrvDirtyBitmap *bitmap, Error **errp)
862{
863 return hbitmap_sha256(bitmap->bitmap, errp);
864}
865
866int64_t bdrv_dirty_bitmap_next_zero(BdrvDirtyBitmap *bitmap, uint64_t offset,
867 uint64_t bytes)
868{

--- 91 unchanged lines hidden ---
864char *bdrv_dirty_bitmap_sha256(const BdrvDirtyBitmap *bitmap, Error **errp)
865{
866 return hbitmap_sha256(bitmap->bitmap, errp);
867}
868
869int64_t bdrv_dirty_bitmap_next_zero(BdrvDirtyBitmap *bitmap, uint64_t offset,
870 uint64_t bytes)
871{

--- 91 unchanged lines hidden ---