[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH 01/22] block: Add two dirty bitmap getters

From: Vladimir Sementsov-Ogievskiy
Subject: Re: [Qemu-block] [PATCH 01/22] block: Add two dirty bitmap getters
Date: Tue, 15 Mar 2016 23:08:43 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 15.03.2016 23:04, Vladimir Sementsov-Ogievskiy wrote:
From: Fam Zheng <address@hidden>

For dirty bitmap users to get the size and the name of a

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: John Snow <address@hidden>
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>

it's an accidental s.o.b., actually there are no changes by me.

  block/dirty-bitmap.c         | 10 ++++++++++
  include/block/dirty-bitmap.h |  2 ++
  2 files changed, 12 insertions(+)

diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c
index 556e1d1..45cfa3b 100644
--- a/block/dirty-bitmap.c
+++ b/block/dirty-bitmap.c
@@ -97,6 +97,16 @@ BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState 
      return bitmap;
+int64_t bdrv_dirty_bitmap_size(const BdrvDirtyBitmap *bitmap)
+    return bitmap->size;
+const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap)
+    return bitmap->name;
  bool bdrv_dirty_bitmap_frozen(BdrvDirtyBitmap *bitmap)
      return bitmap->successor;
diff --git a/include/block/dirty-bitmap.h b/include/block/dirty-bitmap.h
index 80afe60..4dc8750 100644
--- a/include/block/dirty-bitmap.h
+++ b/include/block/dirty-bitmap.h
@@ -29,6 +29,8 @@ uint32_t bdrv_get_default_bitmap_granularity(BlockDriverState 
  uint32_t bdrv_dirty_bitmap_granularity(BdrvDirtyBitmap *bitmap);
  bool bdrv_dirty_bitmap_enabled(BdrvDirtyBitmap *bitmap);
  bool bdrv_dirty_bitmap_frozen(BdrvDirtyBitmap *bitmap);
+const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap);
+int64_t bdrv_dirty_bitmap_size(const BdrvDirtyBitmap *bitmap);
  DirtyBitmapStatus bdrv_dirty_bitmap_status(BdrvDirtyBitmap *bitmap);
  int bdrv_get_dirty(BlockDriverState *bs, BdrvDirtyBitmap *bitmap,
                     int64_t sector);

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]