mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2025-05-23 18:12:25 -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": {
|
||||
"show_tmpfs": false,
|
||||
"show_loop": false,
|
||||
"show_filesystem": true,
|
||||
"ignore_mounts": []
|
||||
},
|
||||
|
@ -32,6 +32,9 @@ else
|
||||
if (strpos($type, 'tmpfs') !== false && $Config->get('disk:show_tmpfs') === false)
|
||||
continue;
|
||||
|
||||
if (strpos($filesystem, '/dev/loop') !== false && $Config->get('disk:show_loop') === false)
|
||||
continue;
|
||||
|
||||
foreach ($Config->get('disk:ignore_mounts') as $to_ignore)
|
||||
{
|
||||
if ($mount === $to_ignore)
|
||||
|
Loading…
x
Reference in New Issue
Block a user