Skip to content

Commit 5a2dea0

Browse files
authored
Merge pull request #1268 from balajiv113/disk-perf
improve vm disk performance with VZDiskImageSynchronizationModeFsync
2 parents be16163 + d19f3bf commit 5a2dea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/vz/vm_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func attachDisks(driver *driver.BaseDriver, vmConfig *vz.VirtualMachineConfigura
278278
if err = validateDiskFormat(diffDiskPath); err != nil {
279279
return err
280280
}
281-
diffDiskAttachment, err := vz.NewDiskImageStorageDeviceAttachment(diffDiskPath, false)
281+
diffDiskAttachment, err := vz.NewDiskImageStorageDeviceAttachmentWithCacheAndSync(diffDiskPath, false, vz.DiskImageCachingModeAutomatic, vz.DiskImageSynchronizationModeFsync)
282282
if err != nil {
283283
return err
284284
}

0 commit comments

Comments
 (0)