mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2025-05-24 10:22:26 -04:00
Adds option to ignore /dev/loopX via config file #60
This commit is contained in:
parent
4e8eb68ed7
commit
16410f396a
@ -12,6 +12,7 @@
|
|||||||
},
|
},
|
||||||
"disk": {
|
"disk": {
|
||||||
"show_tmpfs": false,
|
"show_tmpfs": false,
|
||||||
|
"show_loop": false,
|
||||||
"show_filesystem": true,
|
"show_filesystem": true,
|
||||||
"ignore_mounts": []
|
"ignore_mounts": []
|
||||||
},
|
},
|
||||||
|
@ -32,6 +32,9 @@ else
|
|||||||
if (strpos($type, 'tmpfs') !== false && $Config->get('disk:show_tmpfs') === false)
|
if (strpos($type, 'tmpfs') !== false && $Config->get('disk:show_tmpfs') === false)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (strpos($filesystem, '/dev/loop') !== false && $Config->get('disk:show_loop') === false)
|
||||||
|
continue;
|
||||||
|
|
||||||
foreach ($Config->get('disk:ignore_mounts') as $to_ignore)
|
foreach ($Config->get('disk:ignore_mounts') as $to_ignore)
|
||||||
{
|
{
|
||||||
if ($mount === $to_ignore)
|
if ($mount === $to_ignore)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user