| 1 | --- |
| 2 | features: |
| 3 | - | |
| 4 | The format_inspector module has been imported from the projects that were |
| 5 | using it. They had effectively maintained in-tree forks of the original |
| 6 | code from glance. This code has been imported (from Nova) into oslo.utils |
| 7 | under imageutils for common use. A refactoring of how the safety check |
| 8 | works was done to facilitate the ability to surface fine-grained |
| 9 | information about individual checks, as needed by some projects, as well |
| 10 | as a few other generalizing aspects, which are detailed in the following. |
| 11 | - | |
| 12 | A gpt/mbr format inspector was added, which should reduce the number of |
| 13 | disk images that are detected as "raw". This furthers the goal of trying |
| 14 | to avoid using "raw" for both "anything we don't recognize" and "exact |
| 15 | image of a physical disk". |
| 16 | - | |
| 17 | The glance-centric InfoWrapper from the imported code has been replaced |
| 18 | with InspectWrapper, which natively runs multiple (default: all) inspector |
| 19 | classes in parallel. This is identical to what detect_file_format() did, |
| 20 | but in a stream-friendly way, and detect_file_format() now uses this |
| 21 | internally. Users of the glance-based code moving to the oslo |
| 22 | implemenation should switch to using the InspectWrapper going forward. |