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

Add support for Parallels HDD/HDS and PVS #16

Merged
merged 6 commits into from
Apr 19, 2023
Merged

Add support for Parallels HDD/HDS and PVS #16

merged 6 commits into from
Apr 19, 2023

Conversation

Schamper
Copy link
Member

@Schamper Schamper commented Apr 9, 2023

Adds parser for Parallels HDD/HDS files and Parallels PVS descriptor files.

@Schamper Schamper self-assigned this Apr 9, 2023
@codecov
Copy link

codecov bot commented Apr 9, 2023

Codecov Report

Merging #16 (c089576) into main (51deb19) will increase coverage by 2.98%.
The diff coverage is 87.80%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   57.98%   60.96%   +2.98%     
==========================================
  Files          26       29       +3     
  Lines        2135     2375     +240     
==========================================
+ Hits         1238     1448     +210     
- Misses        897      927      +30     
Flag Coverage Δ
unittests 60.96% <87.80%> (+2.98%) ⬆️

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

Impacted Files Coverage Δ
dissect/hypervisor/disk/hdd.py 86.11% <86.11%> (ø)
dissect/hypervisor/__init__.py 100.00% <100.00%> (ø)
dissect/hypervisor/descriptor/pvs.py 100.00% <100.00%> (ø)
dissect/hypervisor/descriptor/vbox.py 100.00% <100.00%> (ø)
dissect/hypervisor/disk/c_hdd.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

dissect/hypervisor/disk/hdd.py Outdated Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Outdated Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Outdated Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Outdated Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Outdated Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Outdated Show resolved Hide resolved
self.cluster_size = self.header.m_Sectors * SECTOR_SIZE

self.data_offset = self.header.m_FirstBlockOffset
self.in_use = self.header.m_DiskInUse == c_hdd.SIGNATURE_DISK_IN_USE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend to use braces here to visually distinguish the comparison from the assignment. But this is personal taste.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black removes those unfortunately, and I don't think it warrants a # nofmt.

dissect/hypervisor/disk/hdd.py Outdated Show resolved Hide resolved
dissect/hypervisor/disk/hdd.py Show resolved Hide resolved
@Schamper Schamper requested a review from pyrco April 18, 2023 15:14
@Schamper Schamper merged commit 072e025 into main Apr 19, 2023
@Schamper Schamper deleted the parallels branch April 19, 2023 19:21
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.

None yet

3 participants