mirror of
https://github.com/unraid/webgui.git
synced 2026-04-25 20:01:38 -05:00
@@ -62,7 +62,7 @@ function zfs_info($name) {
|
||||
|
||||
function zfs_trim($write) {
|
||||
exec("zfs list -Ho name",$pools);
|
||||
foreach ($pools as $name) if (strpos($name,'/')===false) {
|
||||
foreach ($pools as $name) {
|
||||
if ($write) {
|
||||
write("/mnt/$name: ... <i class='fa fa-spin fa-circle-o-notch'></i>\r");
|
||||
if (exec("zpool trim -w $name 2>&1")=='') write(zfs_info($name)."\r","\n"); else write("\r");
|
||||
|
||||
Reference in New Issue
Block a user