mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 13:39:58 -06:00
TRIM: skip BTRFS devices which do not support trim
This commit is contained in:
@@ -79,7 +79,7 @@ foreach ($mounts as $mount) {
|
||||
if (is_hdd($source)) continue;
|
||||
write("$target: ... <i class='fa fa-spin fa-circle-o-notch'></i>\r");
|
||||
$trim = exec("fstrim -v $target 2>/dev/null");
|
||||
if ($trim) write("$trim on $source\r","\n");
|
||||
if ($trim) write("$trim on $source\r","\n"); else write("\r");
|
||||
}
|
||||
// trim zfs
|
||||
zfs_trim(true);
|
||||
|
||||
Reference in New Issue
Block a user