Skip to content

Commit

Permalink
config(apple): use .full for synchronizationMode as it is the framwor…
Browse files Browse the repository at this point in the history
…k's default
  • Loading branch information
gnattu committed Nov 24, 2023
1 parent bb7b70a commit 6c02a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Configuration/UTMAppleConfigurationDrive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct UTMAppleConfigurationDrive: UTMConfigurationDrive {
if let imageURL = imageURL {
// Use cached caching mode for virtio drive to prevent fs corruption on linux when possible
if #available(macOS 12.0, *), !isNvme, useFsWorkAround {
return try VZDiskImageStorageDeviceAttachment(url: imageURL, readOnly: isReadOnly, cachingMode: .cached, synchronizationMode: .fsync)
return try VZDiskImageStorageDeviceAttachment(url: imageURL, readOnly: isReadOnly, cachingMode: .cached, synchronizationMode: .full)
} else {
return try VZDiskImageStorageDeviceAttachment(url: imageURL, readOnly: isReadOnly)
}
Expand Down

0 comments on commit 6c02a1a

Please sign in to comment.