1. 22 6月, 2020 1 次提交
  2. 13 12月, 2019 2 次提交
    • P
      tests: qemublock: Add test case for detecting bitmaps as we create snapshots · 0b27b655
      Peter Krempa 提交于
      Add test data gathered from a run of qemu after creating bitmaps and
      snapshots together in various combinations.
      
      The following sequence of commands was used to achieve the
      configuration:
      
      virsh checkpoint-create-as VM --name a
      virsh snapshot-create-as VM --disk-only
      virsh snapshot-create-as VM --disk-only
      virsh checkpoint-create-as VM --name b
      virsh checkpoint-create-as VM --name c
      virsh snapshot-create-as VM --disk-only
      virsh checkpoint-create-as VM --name d
      virsh snapshot-create-as VM --disk-only
      virsh checkpoint-create-as VM --name current
      
      Note that VM was restarted after these operations to allow renumbering
      of the bitmaps in a more human-readable way.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      0b27b655
    • P
      tests: qemublock: Add test for bitmap detection · 9aac9d5b
      Peter Krempa 提交于
      Test the extraction of data about changed block tracking bitmaps. The
      first test case adds a simple scenario of multiple bitmaps in one layer.
      
      The test data will be also later reused for testing the code that
      determines which bitmaps to merge for an incremental backup.
      
      The sequence of bitmaps was created by the libvirt checkpoint API with
      the following sequence of commands:
      
      virsh checkpoint-create-as VM --name a
      virsh checkpoint-create-as VM --name b
      virsh checkpoint-create-as VM --name c
      virsh checkpoint-create-as VM --name d
      virsh checkpoint-create-as VM --name current
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      9aac9d5b