mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 11:19:25 -05:00
Add cache pool BTRFS info (if existing) to diagnostics
This commit is contained in:
@@ -196,6 +196,11 @@ foreach ($devices as $device) {
|
||||
}
|
||||
exec("smartctl -a $type /dev/$dev 2>/dev/null|todos >/$diag/smart/$name-$date.txt");
|
||||
}
|
||||
// create cache pool information
|
||||
if (is_dir('/mnt/cache') && $disks['cache']['fsType']=='btrfs') {
|
||||
exec("/sbin/btrfs filesystem show /mnt/cache 2>/dev/null|todos >/$diag/system/btrfs-show.txt");
|
||||
exec("/sbin/btrfs filesystem df /mnt/cache 2>/dev/null|todos >/$diag/system/btrfs-df.txt");
|
||||
}
|
||||
// create resulting zip file and remove temp folder
|
||||
exec("zip -qmr $zip /$diag");
|
||||
if ($cli) echo "done.\nZIP file '$zip' created.\n";
|
||||
|
||||
Reference in New Issue
Block a user