From fe25055cc1cc999c04bc50343aa4805f46772a21 Mon Sep 17 00:00:00 2001 From: llc0930 <14966910+llc0930@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:39:20 +0000 Subject: [PATCH] bug: fix support for nilfs2 file system (#1596) Fix the problem that the nilfs2 file system partition is not displayed in the disk list. --- src/data_collection/disks/unix/file_systems.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data_collection/disks/unix/file_systems.rs b/src/data_collection/disks/unix/file_systems.rs index 39ac0c51..c700fd6f 100644 --- a/src/data_collection/disks/unix/file_systems.rs +++ b/src/data_collection/disks/unix/file_systems.rs @@ -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