From 48422c411193ff81b01d97e6ec3bb70f18b3c5ac Mon Sep 17 00:00:00 2001 From: database64128 Date: Fri, 9 Jun 2023 01:07:18 +0800 Subject: [PATCH] bug: ntfs3 mounts don't show up (#1191) Partitions mounted using the ntfs3 driver in linux (mainlined since 5.15) won't show up because the name didn't match. --- src/app/data_harvester/disks/unix/file_systems.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/data_harvester/disks/unix/file_systems.rs b/src/app/data_harvester/disks/unix/file_systems.rs index 3fc51ed8..703e0379 100644 --- a/src/app/data_harvester/disks/unix/file_systems.rs +++ b/src/app/data_harvester/disks/unix/file_systems.rs @@ -118,7 +118,7 @@ impl FromStr for FileSystem { _ if s.eq_ignore_ascii_case("ext3") => Ok(FileSystem::Ext3), _ if s.eq_ignore_ascii_case("ext4") => Ok(FileSystem::Ext4), _ if s.eq_ignore_ascii_case("vfat") => Ok(FileSystem::VFat), - _ if s.eq_ignore_ascii_case("ntfs") => Ok(FileSystem::Ntfs), + _ if s == "ntfs3" || s.eq_ignore_ascii_case("ntfs") => Ok(FileSystem::Ntfs), _ if s.eq_ignore_ascii_case("zfs") => Ok(FileSystem::Zfs), _ if s.eq_ignore_ascii_case("hfs") => Ok(FileSystem::Hfs), _ if s.eq_ignore_ascii_case("reiserfs") => Ok(FileSystem::Reiser3),