Skip to content

Commit d19f3bf

Browse files
committed
improve vm disk performance with cache and sync option
Signed-off-by: Balaji Vijayakumar <[email protected]>
1 parent be16163 commit d19f3bf

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)