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.
This commit is contained in:
Thomas Mühlbacher 2024-01-04 17:18:45 +01:00 committed by GitHub
parent 77777ef588
commit 0c161ae77e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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") {