mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-01 18:19:56 +12:00
Add zfs_pools_only option
This commit is contained in:
parent
102b6dbc9d
commit
d8d7e40814
|
@ -155,6 +155,8 @@ namespace Config {
|
|||
|
||||
{"use_fstab", "#* Read disks list from /etc/fstab. This also disables only_physical."},
|
||||
|
||||
{"zfs_pools_only", "#* Only show ZFS pools. Setting this to True will hide all datasets, and only show ZFS pools."},
|
||||
|
||||
{"disk_free_priv", "#* Set to true to show available disk space for privileged users."},
|
||||
|
||||
{"show_io_stat", "#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view."},
|
||||
|
@ -241,6 +243,7 @@ namespace Config {
|
|||
{"show_disks", true},
|
||||
{"only_physical", true},
|
||||
{"use_fstab", true},
|
||||
{"zfs_pools_only", false},
|
||||
{"show_io_stat", true},
|
||||
{"io_mode", false},
|
||||
{"base_10_sizes", false},
|
||||
|
|
|
@ -469,6 +469,13 @@ namespace Menu {
|
|||
"This also disables only_physical.",
|
||||
"",
|
||||
"True or False."},
|
||||
{"zfs_pools_only",
|
||||
"(Linux) Only show ZFS pools.",
|
||||
"",
|
||||
"Setting this to True will hide all datasets,",
|
||||
"and only show ZFS pools.",
|
||||
"",
|
||||
"True or False."},
|
||||
{"disk_free_priv",
|
||||
"(Linux) Type of available disk space.",
|
||||
"",
|
||||
|
|
|
@ -851,6 +851,7 @@ namespace Mem {
|
|||
bool filter_exclude = false;
|
||||
auto& use_fstab = Config::getB("use_fstab");
|
||||
auto& only_physical = Config::getB("only_physical");
|
||||
auto& zfs_pools_only = Config::getB("zfs_pools_only");
|
||||
auto& disks = mem.disks;
|
||||
ifstream diskread;
|
||||
|
||||
|
|
Loading…
Reference in a new issue