Skip to content

Commit

Permalink
Fix support for volumesystem filesystem types
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphje committed Dec 11, 2016
1 parent f4c8da3 commit bf6b051
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions imagemounter/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,17 +580,17 @@ def determine_fs_type(self):
self.fstype = 'minix'
elif 'vmfs_volume_member' in fsdesc:
self.fstype = 'vmfs'
elif fsdesc == 'dos':
self.fstype = 'volumesystem'
self.volumes.vstype = 'dos'
elif 'linux_raid_member' in fsdesc or 'linux software raid' in fsdesc:
self.fstype = 'raid'
elif "dos/mbr boot sector" in fsdesc:
self.fstype = 'volumesystem'
self.volumes.vstype = 'detect'
elif 'linux_raid_member' in fsdesc or 'linux software raid' in fsdesc:
self.fstype = 'raid'
elif fsdesc in VOLUME_SYSTEM_TYPES:
elif fsdesc in FILE_SYSTEM_TYPES:
# fallback for stupid cases where we can not determine 'ufs' from the fsdesc 'ufs'
self.fstype = fsdesc
elif fsdesc in VOLUME_SYSTEM_TYPES:
self.fstype = 'volumesystem'
self.volumes.vstype = fsdesc
elif fsdesc.upper() in FILE_SYSTEM_GUIDS:
# this is a bit of a workaround for the fill_guid method
self.fstype = FILE_SYSTEM_GUIDS[fsdesc.upper()]
Expand Down

0 comments on commit bf6b051

Please sign in to comment.