Revert "TRIM: skip ZFS sub-volumes"

This reverts commit d8c5e1bbd8.
This commit is contained in:
bergware
2023-03-24 15:50:35 +01:00
parent d8c5e1bbd8
commit 74429dfc94
+1 -1
View File
@@ -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");