bug: fix support for nilfs2 file system (#1596)

Fix the problem that the nilfs2 file system partition is not displayed in the disk list.
This commit is contained in:
llc0930 2024-09-13 18:39:20 +00:00 committed by GitHub
parent 4e47f9b51a
commit fe25055cc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,7 +157,7 @@ impl FromStr for FileSystem {
FileSystem::Bcachefs
} else if s.eq_ignore_ascii_case("minix") {
FileSystem::Minix
} else if s.eq_ignore_ascii_case("nilfs") {
} else if multi_eq_ignore_ascii_case!(s, "nilfs" | "nilfs2") {
FileSystem::Nilfs
} else if s.eq_ignore_ascii_case("xfs") {
FileSystem::Xfs