commit 58a9e15a8de420756c13323f70ec7d28f5496b49
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.
Reviewed: https:/ /review. opendev. org/c/openstack /glance/ +/923249 /opendev. org/openstack/ glance/ commit/ 58a9e15a8de4207 56c13323f70ec7d 28f5496b49
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 58a9e15a8de4207 56c13323f70ec7d 28f5496b49
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
Related-Bug: #2059809