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)