Skip to content

Commit

Permalink
set cache model enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqiang1588 committed Dec 5, 2023
1 parent e922f43 commit b2d62e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configuration/UTMAppleConfigurationDrive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ struct UTMAppleConfigurationDrive: UTMConfigurationDrive {
if #available(macOS 12, *) {
/*
* virtual disk cache mode have bugs,
* when it is enabled or set to auto (default value)
* when it is disabled or set to auto (default value)
* may cause linux file system corrputed, especially in the case of heavy IO loads
*/
return try VZDiskImageStorageDeviceAttachment(url: imageURL, readOnly: isReadOnly, cachingMode:VZDiskImageCachingMode.uncached, synchronizationMode: VZDiskImageSynchronizationMode.full)
return try VZDiskImageStorageDeviceAttachment(url: imageURL, readOnly: isReadOnly, cachingMode:VZDiskImageCachingMode.cached, synchronizationMode: VZDiskImageSynchronizationMode.full)
} else {
return try VZDiskImageStorageDeviceAttachment(url: imageURL, readOnly: isReadOnly)
}
Expand Down

0 comments on commit b2d62e6

Please sign in to comment.