diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-01-04 17:18:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 11:18:45 -0500 |
commit | 0c161ae77e92580541ae19e3bd4363216be5b5e8 (patch) | |
tree | 6c09e2642f20c18ae1a624502c4a83f9c521be73 /src | |
parent | 77777ef5887c2e1bd1a10c55cbb329c0471d4388 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/data_collection/disks/unix/file_systems.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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") { |