From 83dcf6b59cd568419c2e0bda1dc666c023012129 Mon Sep 17 00:00:00 2001 From: lolicon0930 <14966910+llc0930@users.noreply.github.com> Date: Fri, 13 Sep 2024 05:35:05 +0800 Subject: [PATCH] bug: fix support for nilfs2 file system 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 39ac0c512..c700fd6f5 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