abs_srcdir "/virstoragetestdata/images/qcow2_qcow2-auto.qcow2",
VIR_STORAGE_FILE_QCOW2, EXP_PASS);
+ /* QCOW2 with protocol recorded inside the 'backing file format field */
+ TEST_CHAIN("qcow2-protocol-backing-file",
+ abs_srcdir "/virstoragetestdata/images/qcow2-protocol-backing-file.qcow2",
+ VIR_STORAGE_FILE_QCOW2, EXP_PASS);
+ TEST_CHAIN("qcow2-protocol-backing-nbd",
+ abs_srcdir "/virstoragetestdata/images/qcow2-protocol-backing-nbd.qcow2",
+ VIR_STORAGE_FILE_QCOW2, EXP_FAIL);
+
/* Qcow2 file with missing backing file but specified type */
TEST_CHAIN("qcow2-qcow2_missing",
abs_srcdir "/virstoragetestdata/images/qcow2_qcow2-missing.qcow2",
--- /dev/null
+path:ABS_SRCDIR/virstoragetestdata/images/qcow2-protocol-backing-file.qcow2
+backingStoreRaw: raw
+backingStoreRawFormat: <null>(-1)
+capacity: 1024
+encryption: 0
+relPath:<null>
+type:file
+format:qcow2
+protocol:none
+hostname:<null>
+
+path:ABS_SRCDIR/virstoragetestdata/images/raw
+backingStoreRaw: <null>
+backingStoreRawFormat: none(0)
+capacity: 0
+encryption: 0
+relPath:raw
+type:file
+format:raw
+protocol:none
+hostname:<null>