diff options
| author | ShevAbam <shevabam@gmail.com> | 2019-01-17 10:24:06 +0100 |
|---|---|---|
| committer | ShevAbam <shevabam@gmail.com> | 2019-01-17 10:24:06 +0100 |
| commit | a66bd8f49d3fe9c31724d55623a2e7ee2ba152bb (patch) | |
| tree | f3093396dd22d401c6e384899bbdac0e8b54eb41 | |
| parent | 4aca35d78e3ee7ef162a2bfdca4977d46e8bd39e (diff) | |
| parent | 16410f396a388de550b90cf7a0f7b2aa27a3fed5 (diff) | |
Merge branch 'master' of https://github.com/shevabam/ezservermonitor-web
| -rw-r--r-- | conf/esm.config.json | 1 | ||||
| -rw-r--r-- | libs/disk.php | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/conf/esm.config.json b/conf/esm.config.json index e40b3ea..2947c82 100644 --- a/conf/esm.config.json +++ b/conf/esm.config.json @@ -12,6 +12,7 @@ }, "disk": { "show_tmpfs": false, + "show_loop": false, "show_filesystem": true, "ignore_mounts": [] }, diff --git a/libs/disk.php b/libs/disk.php index d0be8b7..314e1af 100644 --- a/libs/disk.php +++ b/libs/disk.php @@ -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) |
