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

Added APFS support #314 #317

Merged
merged 3 commits into from
Nov 23, 2018
Merged

Added APFS support #314 #317

merged 3 commits into from
Nov 23, 2018

Conversation

joachimmetz
Copy link
Member

@joachimmetz joachimmetz commented Nov 2, 2018

Depends on: #319

Added APFS support #314

@codecov
Copy link

codecov bot commented Nov 2, 2018

Codecov Report

Merging #317 into master will increase coverage by 0.15%.
The diff coverage is 90.86%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #317      +/-   ##
==========================================
+ Coverage   87.83%   87.99%   +0.15%     
==========================================
  Files         192      202      +10     
  Lines        8824     9260     +436     
==========================================
+ Hits         7751     8148     +397     
- Misses       1073     1112      +39
Impacted Files Coverage Δ
dfvfs/file_io/file_object_io.py 88.46% <ø> (ø) ⬆️
dfvfs/lib/vshadow.py 87.5% <0%> (ø) ⬆️
dfvfs/lib/apfs_container.py 100% <100%> (ø)
dfvfs/path/apfs_container_path_spec.py 100% <100%> (ø)
dfvfs/vfs/ntfs_file_system.py 89.74% <100%> (ø) ⬆️
dfvfs/resolver_helpers/apfs_resolver_helper.py 100% <100%> (ø)
dfvfs/path/apfs_path_spec.py 100% <100%> (ø)
dfvfs/lib/definitions.py 100% <100%> (ø) ⬆️
...resolver_helpers/apfs_container_resolver_helper.py 100% <100%> (ø)
dfvfs/file_io/apfs_file_io.py 75.86% <75.86%> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6046c3d...14f58b8. Read the comment docs.

@Onager
Copy link
Contributor

Onager commented Nov 3, 2018

Holding off on review until checks pass

Copy link
Contributor

@Onager Onager left a comment

Choose a reason for hiding this comment

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

Just one question, and I've pushed a few fixes for typos and some extra tests, so please pull before making changes.


parent_path_spec = getattr(self.path_spec, 'parent', None)
path_spec = apfs_path_spec.APFSPathSpec(
location=parent_location, identifier=parent_identifier,
Copy link
Contributor

Choose a reason for hiding this comment

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

parent_location will be uninitialized here if location is None - what's supposed to happen in that unlikely situation?

Copy link
Member Author

@joachimmetz joachimmetz Nov 23, 2018

Choose a reason for hiding this comment

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

apfs_path_spec.APFSPathSpec will raise ValueError if location and identifier are None. Let me fix parent_location not being initialized.

@joachimmetz
Copy link
Member Author

@Onager PTAL

@Onager Onager merged commit c3e2d54 into log2timeline:master Nov 23, 2018
joachimmetz added a commit that referenced this pull request Nov 23, 2018
@joachimmetz joachimmetz deleted the apfs branch November 23, 2018 10:06
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