Let QCow2Container init to pass fh directly as Path#1160
Let QCow2Container init to pass fh directly as Path#1160Schamper merged 3 commits intofox-it:mainfrom
Conversation
|
@andreia-oca thank you for your contribution! As this is your first code contribution, please read the following Contributor License Agreement (CLA). If you agree with the CLA, please reply with the following information:
Contributor License Agreement
Contribution License AgreementThis Contribution License Agreement ("Agreement") governs your Contribution(s) (as defined below) and conveys certain license rights to Fox-IT B.V. ("Fox-IT") for your Contribution(s) to Fox-IT"s open source Dissect project. This Agreement covers any and all Contributions that you ("You" or "Your"), now or in the future, Submit (as defined below) to this project. This Agreement is between Fox-IT B.V. and You and takes effect when you click an “I Accept” button, check box presented with these terms, otherwise accept these terms or, if earlier, when You Submit a Contribution.
|
|
@DissectBot agree |
|
I've piggy backed on this PR to fix compatibility with the upcoming changes in fox-it/dissect.hypervisor#61. |
Pass the original `fh` parameter directly to QCow2 constructor, relying on QCow2 to handle Path or file-like objects. This allows QCow2 to automatically resolve backing files if they are required. Signed-off-by: Andreia Ocanoaia <andreia.ocanoaia@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1160 +/- ##
=======================================
Coverage ? 80.29%
=======================================
Files ? 374
Lines ? 33086
Branches ? 0
=======================================
Hits ? 26568
Misses ? 6518
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #1160 will not alter performanceComparing Summary
|
That's great, thanks for looking into it :D |
This PR is related to this PR.
Pass the original
fhparameter directly to QCow2 constructor, relying on QCow2 to handle Path or file-like objects.This allows QCow2 to automatically resolve backing files if they are required.
The change can be end2end tested by attempting to run
target-infoortarget-queryon a qcow2 snapshot with a backing-file.I've tested against a standalone qcow2 image to check if backwards comp is maintained and against a qcow2 snapshot with a backing-file.
Fixes #1154