From 0c161ae77e92580541ae19e3bd4363216be5b5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BChlbacher?= Date: Thu, 4 Jan 2024 17:18:45 +0100 Subject: [PATCH] feature: Add support for bcachefs (#1373) Make sure that bcachefs mounts are also displayed in the disks widget. bcachefs is a file system that will be included in the upcoming Linux v6.7 kernel. Briefly tested this and it works on my system. --- src/data_collection/disks/unix/file_systems.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/data_collection/disks/unix/file_systems.rs b/src/data_collection/disks/unix/file_systems.rs index 88c3c9fe..c9056826 100644 --- a/src/data_collection/disks/unix/file_systems.rs +++ b/src/data_collection/disks/unix/file_systems.rs @@ -52,6 +52,9 @@ pub enum FileSystem { /// Btrfs (https://en.wikipedia.org/wiki/Btrfs) Btrfs, + /// Bcachefs (https://en.wikipedia.org/wiki/Bcachefs) + Bcachefs, + /// MINIX FS (https://en.wikipedia.org/wiki/MINIX_file_system) Minix, @@ -104,6 +107,7 @@ impl FileSystem { FileSystem::HfsPlus => "hfs+", FileSystem::Jfs => "jfs", FileSystem::Btrfs => "btrfs", + FileSystem::Bcachefs => "bcachefs", FileSystem::Minix => "minix", FileSystem::Nilfs => "nilfs", FileSystem::Xfs => "xfs", @@ -148,6 +152,8 @@ impl FromStr for FileSystem { FileSystem::Jfs } else if s.eq_ignore_ascii_case("btrfs") { FileSystem::Btrfs + } else if s.eq_ignore_ascii_case("bcachefs") { + FileSystem::Bcachefs } else if s.eq_ignore_ascii_case("minix") { FileSystem::Minix } else if s.eq_ignore_ascii_case("nilfs") {