Skip to content

Commit

Permalink
clone: actually reclaim unallocated bytes (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Dec 16, 2024
1 parent 2d7615b commit e6a30b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Clone.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct Clone: AsyncParsableCommand {
// So, once we clone the VM let's try to claim the rest of space for the VM to run without errors.
let unallocatedBytes = try sourceVM.sizeBytes() - sourceVM.allocatedSizeBytes()
if unallocatedBytes > 0 {
try Prune.reclaimIfNeeded(UInt64(), sourceVM)
try Prune.reclaimIfNeeded(UInt64(unallocatedBytes), sourceVM)
}
}, onCancel: {
try? FileManager.default.removeItem(at: tmpVMDir.baseURL)
Expand Down

0 comments on commit e6a30b0

Please sign in to comment.