Skip to content

Commit

Permalink
Merge 73b4a97 into b292f15
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaisvil committed Apr 27, 2021
2 parents b292f15 + 73b4a97 commit 0bcf3fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions heim-disk/src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ pub enum FileSystem {
/// exFAT (https://en.wikipedia.org/wiki/ExFAT)
ExFat,

/// FAT (https://en.wikipedia.org/wiki/File_Allocation_Table)
Fat,

/// F2FS (https://en.wikipedia.org/wiki/F2FS)
F2fs,

Expand Down Expand Up @@ -110,6 +113,7 @@ impl FileSystem {
FileSystem::Nilfs => "nilfs",
FileSystem::Xfs => "xfs",
FileSystem::Apfs => "apfs",
FileSystem::Fat => "fat",
FileSystem::Other(string) => string.as_str(),
}
}
Expand Down Expand Up @@ -138,6 +142,7 @@ impl FromStr for FileSystem {
_ if s.eq_ignore_ascii_case("nilfs") => Ok(FileSystem::Nilfs),
_ if s.eq_ignore_ascii_case("xfs") => Ok(FileSystem::Xfs),
_ if s.eq_ignore_ascii_case("apfs") => Ok(FileSystem::Apfs),
_ if s.eq_ignore_ascii_case("msdos") => Ok(FileSystem::Fat),

_ if s.eq_ignore_ascii_case("fuseblk") => Ok(FileSystem::FuseBlk),
_ => Ok(FileSystem::Other(s.to_string())),
Expand Down

0 comments on commit 0bcf3fd

Please sign in to comment.