summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin-Yeung <53309384+Devin-Yeung@users.noreply.github.com>2023-11-15 12:57:24 +0800
committerGitHub <noreply@github.com>2023-11-14 23:57:24 -0500
commitd1d14989005a26ff18f1c9add1c2963aafe12e8e (patch)
tree0cbe3e488e4404630bb849ed36535422c7a117a7
parent712a0036811d1ec1f676b2ba76fff4bf5cc5fa97 (diff)
bug: fat32 mounts don't show up in macOS (#1314)
-rw-r--r--src/app/data_harvester/disks/unix/file_systems.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/data_harvester/disks/unix/file_systems.rs b/src/app/data_harvester/disks/unix/file_systems.rs
index 703e0379..e54e0bc0 100644
--- a/src/app/data_harvester/disks/unix/file_systems.rs
+++ b/src/app/data_harvester/disks/unix/file_systems.rs
@@ -117,7 +117,9 @@ impl FromStr for FileSystem {
_ if s.eq_ignore_ascii_case("ext2") => Ok(FileSystem::Ext2),
_ 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("msdos") || s.eq_ignore_ascii_case("vfat") => {
+ Ok(FileSystem::VFat)
+ }
_ 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),