mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 21:20:01 -06:00
Use -x (extended all) option for generation of SMART reports
This commit is contained in:
@@ -150,7 +150,7 @@ case "identify":
|
||||
}
|
||||
break;
|
||||
case "save":
|
||||
exec("smartctl -a $type ".escapeshellarg("/dev/$port")." >".escapeshellarg("$docroot/{$_POST['file']}"));
|
||||
exec("smartctl -x $type ".escapeshellarg("/dev/$port")." >".escapeshellarg("$docroot/{$_POST['file']}"));
|
||||
break;
|
||||
case "delete":
|
||||
if (strpos(realpath("/var/tmp/{$_POST['file']}"), "/var/tmp/") === 0) {
|
||||
|
||||
@@ -193,7 +193,7 @@ foreach ($devices as $device) {
|
||||
}
|
||||
}
|
||||
$port = port_name($port);
|
||||
exec("smartctl -a $type ".escapeshellarg("/dev/$port")." 2>/dev/null|todos >".escapeshellarg("/$diag/smart/$name-$date $diskName ($port).txt"));
|
||||
exec("smartctl -x $type ".escapeshellarg("/dev/$port")." 2>/dev/null|todos >".escapeshellarg("/$diag/smart/$name-$date $diskName ($port).txt"));
|
||||
}
|
||||
// create cache pool information
|
||||
if (is_dir('/mnt/cache') && strpos($disks['cache']['fsType'],'btrfs')!==false) {
|
||||
|
||||
Reference in New Issue
Block a user