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.
This commit is contained in:
database64128 2023-06-09 01:07:18 +08:00 committed by GitHub
parent 1cc0e910b4
commit 48422c4111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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),