Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of volumes at offset 0 #443

Merged
merged 5 commits into from
Nov 16, 2023
Merged

Fix handling of volumes at offset 0 #443

merged 5 commits into from
Nov 16, 2023

Conversation

Schamper
Copy link
Member

As part of this fix I've introduced a __type__ attribute to the VolumeSystem class. It's purpose is similar to Filesystem.__fstype__ - being able to do some sort of type-check if you can't do a isinstance() check due to lazy importing.

In fact, I probably want to add it to Container too, and perhaps rename Filesystem.__fstype__ to Filesystem.__type__ - of course with the necessary deprecation warning and period.

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (9bd96d5) 74.31% compared to head (d297bd8) 74.35%.

Files Patch % Lines
dissect/target/volume.py 60.00% 2 Missing ⚠️
dissect/target/volumes/bde.py 0.00% 1 Missing ⚠️
dissect/target/volumes/luks.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #443      +/-   ##
==========================================
+ Coverage   74.31%   74.35%   +0.03%     
==========================================
  Files         258      258              
  Lines       20634    20640       +6     
==========================================
+ Hits        15335    15346      +11     
+ Misses       5299     5294       -5     
Flag Coverage Δ
unittests 74.35% <78.94%> (+0.03%) ⬆️

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.

MaxGroot added a commit to fox-it/citrix-netscaler-triage that referenced this pull request Nov 14, 2023
Due to changes to Dissect's handling of volumes, Dissect 3.10 does not properly handle volumes at offset 0 (see also fox-it/dissect.target#443). As this is often encountered for Citrix Netscalers, this PR suggests pinning the Dissect version at 3.9 for now.
yunzheng pushed a commit to fox-it/citrix-netscaler-triage that referenced this pull request Nov 14, 2023
Due to changes to Dissect's handling of volumes, Dissect 3.10 does not properly handle volumes at offset 0 (see also fox-it/dissect.target#443). As this is often encountered for Citrix Netscalers, this PR suggests pinning the Dissect version at 3.9 for now.
@Schamper Schamper requested a review from pyrco November 15, 2023 12:52
@Schamper Schamper merged commit a90e389 into main Nov 16, 2023
@Schamper Schamper deleted the fix-volumes-0 branch November 16, 2023 14:13
JSCU-CNI pushed a commit to JSCU-CNI/dissect.target that referenced this pull request Jan 2, 2024
Poeloe pushed a commit that referenced this pull request Feb 29, 2024
Zawadidone pushed a commit to Zawadidone/dissect.target that referenced this pull request Apr 5, 2024
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