[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/15] iotests: Check dirty bitmap statistics in 124
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 04/15] iotests: Check dirty bitmap statistics in 124 |
Date: |
Tue, 1 Aug 2017 16:46:21 +0200 |
From: Eric Blake <address@hidden>
We had a bug for multiple releases where dirty-bitmap count was
documented in bytes but reported in sectors; enhance the testsuite
to add coverage of DirtyBitmapInfo to ensure we do not regress again.
Signed-off-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: John Snow <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/qemu-iotests/124 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124
index d0d2c2bfb0..8e76e62f93 100644
--- a/tests/qemu-iotests/124
+++ b/tests/qemu-iotests/124
@@ -336,7 +336,12 @@ class TestIncrementalBackup(TestIncrementalBackupBase):
(('0xab', 0, 512),
('0xfe', '16M', '256k'),
('0x64', '32736k', '64k')))
-
+ # Check the dirty bitmap stats
+ result = self.vm.qmp('query-block')
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/name', 'bitmap0')
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/count', 458752)
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/granularity',
65536)
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/status', 'active')
# Prepare a cluster_size=128k backup target without a backing file.
(target, _) = bitmap0.new_target()
--
2.13.3
- [Qemu-devel] [PULL 00/15] Block layer patches for 2.10.0-rc1, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 03/15] iotests: Redirect stderr to stdout in 186, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 02/15] iotests: Fix test 156, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 06/15] block: fix dangling bs->explicit_options in block.c, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 04/15] iotests: Check dirty bitmap statistics in 124,
Kevin Wolf <=
- [Qemu-devel] [PULL 05/15] iotests: Add test of recent fix to 'qemu-img measure', Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 07/15] block: fix leaks in bdrv_open_driver(), Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 09/15] qemu-iotests: Remove blkdebug.conf after tests, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 13/15] qemu-iotests/063: Fix leaked image, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 10/15] qemu-iotests/141: Fix image cleanup, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 11/15] qemu-iotests/153: Fix leaked scratch images, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 08/15] qemu-iotests/041: Fix leaked scratch images, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 12/15] qemu-iotests/162: Fix leaked temporary files, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 15/15] block/qapi: Remove redundant NULL check to silence Coverity, Kevin Wolf, 2017/08/01
- [Qemu-devel] [PULL 14/15] qemu-iotests/059: Fix leaked image files, Kevin Wolf, 2017/08/01