mirror of https://gitee.com/openkylin/libvirt.git
qemublocktest: Add 'basic' tests for backup bitmap handling
The 'basic' case is just a single backing store layer containing the bitmaps so we just copy the bitmaps over to the backup bitmap. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
e0d8d989e2
commit
8c6e2da25e
|
@ -1263,6 +1263,10 @@ mymain(void)
|
|||
|
||||
TEST_BACKUP_BITMAP_CALCULATE("empty", bitmapSourceChain, "a", "empty");
|
||||
|
||||
TEST_BACKUP_BITMAP_CALCULATE("basic-flat", bitmapSourceChain, "current", "basic");
|
||||
TEST_BACKUP_BITMAP_CALCULATE("basic-intermediate", bitmapSourceChain, "d", "basic");
|
||||
TEST_BACKUP_BITMAP_CALCULATE("basic-deep", bitmapSourceChain, "a", "basic");
|
||||
|
||||
#define TEST_CHECKPOINT_DELETE(testname, delbmp, named) \
|
||||
do { \
|
||||
checkpointdeletedata.name = testname; \
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
"type": "block-dirty-bitmap-add",
|
||||
"data": {
|
||||
"node": "target_node",
|
||||
"name": "target-bitmap-name",
|
||||
"persistent": false,
|
||||
"disabled": true,
|
||||
"granularity": 65536
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "block-dirty-bitmap-merge",
|
||||
"data": {
|
||||
"node": "target_node",
|
||||
"target": "target-bitmap-name",
|
||||
"bitmaps": [
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
"type": "block-dirty-bitmap-add",
|
||||
"data": {
|
||||
"node": "target_node",
|
||||
"name": "target-bitmap-name",
|
||||
"persistent": false,
|
||||
"disabled": true,
|
||||
"granularity": 65536
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "block-dirty-bitmap-merge",
|
||||
"data": {
|
||||
"node": "target_node",
|
||||
"target": "target-bitmap-name",
|
||||
"bitmaps": [
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "current"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
"type": "block-dirty-bitmap-add",
|
||||
"data": {
|
||||
"node": "target_node",
|
||||
"name": "target-bitmap-name",
|
||||
"persistent": false,
|
||||
"disabled": true,
|
||||
"granularity": 65536
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "block-dirty-bitmap-merge",
|
||||
"data": {
|
||||
"node": "target_node",
|
||||
"target": "target-bitmap-name",
|
||||
"bitmaps": [
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "d"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue