Skip to content

Commit

Permalink
Improved APM support and updated version (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz authored Feb 13, 2021
1 parent 1651c81 commit fbda6d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/dpkg/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dfvfs (20210207-1) unstable; urgency=low
dfvfs (20210213-1) unstable; urgency=low

* Auto-generated

-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Sun, 07 Feb 2021 09:54:02 +0100
-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Sat, 13 Feb 2021 09:54:44 +0100
2 changes: 1 addition & 1 deletion dfvfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
storage media types and file formats.
"""

__version__ = '20210207'
__version__ = '20210213'
7 changes: 6 additions & 1 deletion dfvfs/lib/tsk_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,10 @@ def TSKVsPartIsAllocated(tsk_vs_part):
# The flags are an instance of TSK_VS_PART_FLAG_ENUM.
tsk_vs_part_flags = getattr(tsk_vs_part, 'flags', None)

# For APM partition tables the description needs to be checked to determine
# the usage of the part.
tsk_vs_part_desc = getattr(tsk_vs_part, 'desc', None)

return (tsk_vs_part_flags is not None and
tsk_vs_part_flags == pytsk3.TSK_VS_PART_FLAG_ALLOC)
tsk_vs_part_flags == pytsk3.TSK_VS_PART_FLAG_ALLOC and
tsk_vs_part_desc not in (b'Apple_partition_map', b'Apple_Free'))

0 comments on commit fbda6d3

Please sign in to comment.