There was an error while loading. Please reload this page.
1 parent 8157adb commit 334533aCopy full SHA for 334533a
1 file changed
Sources/Services/RuntimeLinux/Server/RuntimeService.swift
@@ -872,9 +872,11 @@ public actor RuntimeService {
872
// Perform filesystem trim on the root filesystem
873
try await ctr.container.filesystemOperation(operation: .trim, path: "/")
874
875
- // Perform filesystem trim on each named volume mount
+ // Trim all block-backed mounts. Named volumes are expected to be
876
+ // block-backed, and may be represented as either `.volume` or
877
+ // `.block` depending on how configuration was created.
878
for mount in ctr.config.mounts {
- if case .volume = mount.type {
879
+ if mount.isBlock {
880
try await ctr.container.filesystemOperation(operation: .trim, path: mount.destination)
881
}
882
0 commit comments