Diagnostics: add totals in btrfs usage information

This commit is contained in:
bergware
2018-10-15 19:03:54 +02:00
parent c61fd1a978
commit 34f37b7059

View File

@@ -192,7 +192,7 @@ foreach ($devices as $device) {
}
// create cache pool information
if (is_dir('/mnt/cache') && strpos($disks['cache']['fsType'],'btrfs')!==false) {
exert("/sbin/btrfs filesystem usage /mnt/cache 2>/dev/null|todos >".escapeshellarg("/$diag/system/btrfs-usage.txt"));
exert("/sbin/btrfs filesystem usage -T /mnt/cache 2>/dev/null|todos >".escapeshellarg("/$diag/system/btrfs-usage.txt"));
}
// create installed plugin information
$plugins = glob("/var/log/plugins/*.plg");