From b2d62e6ef263983f2c255e219b788f7799c6ffe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=98=E9=BB=98?= Date: Tue, 5 Dec 2023 14:11:52 +0800 Subject: [PATCH] set cache model enabled --- Configuration/UTMAppleConfigurationDrive.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configuration/UTMAppleConfigurationDrive.swift b/Configuration/UTMAppleConfigurationDrive.swift index 004ec06c5..e9b070bd2 100644 --- a/Configuration/UTMAppleConfigurationDrive.swift +++ b/Configuration/UTMAppleConfigurationDrive.swift @@ -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) }