libvirt/tests/virstoragetestdata/images
Peter Krempa 6fe9e35610 virstoragetest: Add test cases for QCOW2 files with a protocol name as backing file format
QEMU allows and in cases where you omit the not-strictly-needed 'raw'
driver on top of raw images automatically uses the protocol name inside
of the 'backing file format' field of the qcow2 image.

Libvirt expects only format names in that field.

Add example images showing this scenario, which will be fixed later.

The qcow2 image files in this commit were formatted as:

  qemu-img create -f qcow2 -F nbd -b  nbd+tcp://example.org:6000/blah -u qcow2-protocol-backing-nbd.qcow2 10M

and

  qemu-img create -f qcow2 -F file -b raw  qcow2-protocol-backing-file.qcow2

thus using 'nbd' and 'file' as backing format respectively.

(note that '-b raw' refers to the file in the example image folder)

To satisfy the test, note that the NBD image is also rejected as we
can't probe it, thus such configuration would not work.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2023-11-27 10:12:34 +01:00
..
sub
loop-1.qcow2
loop-2.qcow2
loop-self.qcow2
qcow2
qcow2_nbd-raw.qcow2
qcow2_qcow2-auto_qcow2-auto.qcow2
qcow2_qcow2-auto.qcow2
qcow2_qcow2-missing.qcow2
qcow2_qcow2-qcow2_qcow2-auto.qcow2
qcow2_qcow2-qcow2_raw-auto.qcow2
qcow2_qcow2-qcow2-symlink_raw-raw-reldir.qcow2
qcow2_raw-auto.qcow2
qcow2_raw-raw-relative.qcow2
qcow2_raw-raw-reldir.qcow2
qcow2-protocol-backing-file.qcow2
qcow2-protocol-backing-nbd.qcow2
qed_raw-raw-relative
raw