qemublocktest: Add test for creating a qcow2 on top of an luks-encrypted qcow2

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-08-20 13:25:19 +02:00
parent 15ab655835
commit ca444a2eb2
3 changed files with 17 additions and 0 deletions

View File

@ -1216,6 +1216,7 @@ mymain(void)
TEST_IMAGE_CREATE("qcow2-backing-raw", "raw");
TEST_IMAGE_CREATE("qcow2-backing-raw-nbd", "raw-nbd");
TEST_IMAGE_CREATE("qcow2-backing-luks", "luks-noopts");
TEST_IMAGE_CREATE("qcow2-backing-qcow2luks", "qcow2-luks-noopts");
TEST_IMAGE_CREATE("qcow2-luks-encopts-backing", "qcow2");
TEST_IMAGE_CREATE("qcow2-backing-raw-slice", "raw-slice");
TEST_IMAGE_CREATE("qcow2-backing-qcow2-slice", "qcow2-slice");

View File

@ -0,0 +1,15 @@
protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 8589934590,
"backing-file": "/var/lib/libvirt/images/i.qcow2",
"backing-fmt": "qcow2"
}

View File

@ -0,0 +1 @@
qcow2.xml