commit f32d5b8ad865113d499a36f7507a085f583514f9
Author: Dan Smith <email address hidden>
Date: Tue Apr 16 10:29:10 2024 -0700
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 4860024286256b028fabc5ed50274934c3dfdd8a)
Reviewed: https:/ /review. opendev. org/c/openstack /glance/ +/923305 /opendev. org/openstack/ glance/ commit/ f32d5b8ad865113 d499a36f7507a08 5f583514f9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: unmaintained/zed
commit f32d5b8ad865113 d499a36f7507a08 5f583514f9
Author: Dan Smith <email address hidden>
Date: Tue Apr 16 10:29:10 2024 -0700
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: Iaf86b525397d41 bd116999cabe095 4a0a7efac65 a7a219cb498e03d 5c81dbbbb7) 97dfeceb424e539 43fd090483) 61087e1494d19dd bcf9db0a38) 28fabc5ed502749 34c3dfdd8a)
Related-Bug: #2059809
(cherry picked from commit ae536bb394793c9
(cherry picked from commit 2eba54e08211060
(cherry picked from commit 89dbbc838d606f4
(cherry picked from commit 4860024286256b0