Add zfs_pools_only option

This commit is contained in:
simplepad 2022-07-01 18:35:41 +03:00
parent 102b6dbc9d
commit d8d7e40814
No known key found for this signature in database
GPG key ID: 00DB76DD9FB623EC
3 changed files with 11 additions and 0 deletions

View file

@ -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},

View file

@ -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.",
"",

View file

@ -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;