Patch 1 adds an counter-example test and patch 2 then fixes the bug.
Peter Krempa (2):
virstoragetest: Add example of a qcow2 image with a backing image
pointing to a data_file without 'backing_format'
virStorageSourceGetMetadataRecurse: Fix format probing exception for
images with 'data_file'
src/storage_file/storage_source.c | 3 ++-
tests/virstoragetest.c | 7 ++++++-
.../images/qcow2_datafile-auto.qcow2 | Bin 0 -> 196616 bytes
3 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 tests/virstoragetestdata/images/qcow2_datafile-auto.qcow2
--
2.55.0