From bf6b0515ad4ebf9d5c8c88198419591ff5da1b79 Mon Sep 17 00:00:00 2001 From: Ralph Broenink Date: Sun, 11 Dec 2016 16:48:37 +0100 Subject: [PATCH] Fix support for volumesystem filesystem types --- imagemounter/volume.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/imagemounter/volume.py b/imagemounter/volume.py index 06189ca..a69b34b 100644 --- a/imagemounter/volume.py +++ b/imagemounter/volume.py @@ -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()]