mirror of https://github.com/cirruslabs/tart.git
clone: actually reclaim unallocated bytes (#974)
This commit is contained in:
parent
2d7615bdf8
commit
e6a30b07e3
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue