Files
glance/glance
Dan Smith f32d5b8ad8 Extend format_inspector for QCOW safety
This adds two properties to the QcowInspector that makes it able to
indicate whether the file specifies a backing_file or data_file in the
header. Both conditions are considered unsafe for our usage. To
ease checking of this condition, a classmethod is added that takes
a local filename and digests just enough of the file to assert that
both conditions are false.

Change-Id: Iaf86b525397d41bd116999cabe0954a0a7efac65
Related-Bug: #2059809
(cherry picked from commit ae536bb394793c9a7a219cb498e03d5c81dbbbb7)
(cherry picked from commit 2eba54e0821106097dfeceb424e53943fd090483)
(cherry picked from commit 89dbbc838d606f461087e1494d19ddbcf9db0a38)
(cherry picked from commit 4860024286)
2024-07-12 12:47:13 +00:00
..
2022-01-27 16:37:11 +00:00
2022-09-06 04:10:47 +00:00
2022-09-01 01:52:43 +05:30
2022-02-03 09:55:50 -08:00
2021-03-02 19:41:57 +00:00
2020-03-27 14:11:08 -05:00
2021-12-21 13:01:56 +00:00
2019-09-20 05:17:58 +00:00