mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
qemu 2.9 returns an extra layer in the backing data if a block job is active. Add a test case to see whether our code properly detects and ignores such layer. The test data was prepared by creating a backing chain of qcow2 images (with qemu-img and with libvirt's snapshot feature). One of the layers was then merged back by doing a block-commit: virsh blockcommit VM hda --top /var/lib/libvirt/images/b and then a block-copy job was started and kept in synchronized phase: virsh blockcopy VM hda /tmp/tgt.img --transient job Reviewed-by: Eric Blake <eblake@redhat.com>
27 lines
820 B
Plaintext
27 lines
820 B
Plaintext
drive-ide0-0-0
|
|
filename : '/var/lib/libvirt/images/d.1499152698'
|
|
format node : '#block179'
|
|
format drv : 'qcow2'
|
|
storage node: '#block042'
|
|
storage drv : 'file'
|
|
filename : '/var/lib/libvirt/images/d.1499152668'
|
|
format node : '#block312'
|
|
format drv : 'qcow2'
|
|
storage node: '#block259'
|
|
storage drv : 'file'
|
|
filename : '/var/lib/libvirt/images/d'
|
|
format node : '#block551'
|
|
format drv : 'qcow2'
|
|
storage node: '#block449'
|
|
storage drv : 'file'
|
|
filename : '/var/lib/libvirt/images/c'
|
|
format node : '#block717'
|
|
format drv : 'qcow2'
|
|
storage node: '#block618'
|
|
storage drv : 'file'
|
|
filename : '/var/lib/libvirt/images/a'
|
|
format node : '#block901'
|
|
format drv : 'raw'
|
|
storage node: '#block846'
|
|
storage drv : 'file'
|