mirror of
https://github.com/ClementTsang/bottom.git
synced 2024-09-11 03:35:35 +03:00
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:
parent
77777ef588
commit
0c161ae77e
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user