[PATCH 0/9] Re-think the stance towards image format probing

Peter Krempa posted 9 patches 4 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1581959449.git.pkrempa@redhat.com
src/util/virstoragefile.c | 231 ++++++++++++++++++--------------------
tests/Makefile.am         |  13 ++-
tests/qemublockprobe.c    | 130 +++++++++++++++++++++
3 files changed, 251 insertions(+), 123 deletions(-)
create mode 100644 tests/qemublockprobe.c
[PATCH 0/9] Re-think the stance towards image format probing
Posted by Peter Krempa 4 years, 2 months ago
Few recent changes broke wrong, but apparently widely used
configurations as used didn't really record the image format into the
image.

It turns out we can safely probe the image format in few limited
circumstances which on the other hand should fix the majority of the
problems. Please see patch 8/9 for further explanation.

Peter Krempa (9):
  util: storagefile: Drop image format probing by file suffix
  virStorageFileGetMetadataRecurse: Remove impossible error report
  virStorageFileGetMetadataRecurse: Shuffle around assignment of backing
    chain depth
  virStorageFileGetMetadataRecurse: Expect NULL src->path
  virStorageFileGetMetadataRecurse: Use virHashHasEntry instead of fake
    pointers
  virStorageFileGetMetadataRecurse: Extract storage access
  virStorageFileGetMetadataRecurse: Remove 'cleanup' label
  virStorageFileGetMetadataRecurse: Allow format probing under special
    circumstances
  WIP: Add tool for probing images

 src/util/virstoragefile.c | 231 ++++++++++++++++++--------------------
 tests/Makefile.am         |  13 ++-
 tests/qemublockprobe.c    | 130 +++++++++++++++++++++
 3 files changed, 251 insertions(+), 123 deletions(-)
 create mode 100644 tests/qemublockprobe.c

-- 
2.24.1