Skip to content

Conversation

@andreia-oca
Copy link
Contributor

This PR partially solves this issue.

  • Allow the QCow2 constructor to accept a Path object for `fh
  • If a backing file is detected, automatically attempt to open it relative to fh path's.

Note: Providing a Qcow2 image with a backing file will work only if the fh is passed as a Path obj.

- Allow the QCow2 constructor to accept a Path object for fh
- If a backing file is detected, automatically attempt to open it relative to fh path's.

Note: Providing a Qcow2 image with a backing file will work only if the fh is passed as a Path obj.

Signed-off-by: Andreia Ocanoaia <andreia.ocanoaia@gmail.com>
@codecov
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

❌ Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.06%. Comparing base (1ef8168) to head (3dd5e76).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dissect/hypervisor/disk/qcow2.py 25.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #52      +/-   ##
==========================================
+ Coverage   65.94%   66.06%   +0.12%     
==========================================
  Files          24       24              
  Lines        2079     2066      -13     
==========================================
- Hits         1371     1365       -6     
+ Misses        708      701       -7     
Flag Coverage Δ
unittests 66.06% <25.00%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

andreia-oca and others added 5 commits August 4, 2025 11:14
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Signed-off-by: Andreia Ocanoaia <andreia.ocanoaia@gmail.com>
@andreia-oca andreia-oca requested a review from Schamper August 6, 2025 10:41
@Schamper Schamper merged commit f9bdad9 into fox-it:main Aug 12, 2025
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants