<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZDiskImageSynchronizationMode/fsync",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:@E@VZDiskImageSynchronizationMode@VZDiskImageSynchronizationModeFsync"
  },
  "title" : "VZDiskImageSynchronizationMode.fsync"
}
-->

# VZDiskImageSynchronizationMode.fsync

Synchronizes data to the drive using the system’s best-effort synchronization mode.

```
case fsync
```

## Discussion

This mode synchronizes the data with the drive, but doesn’t ensure the data moves from the disk’s internal cache to permanent storage.

This is a best-effort mode with the same guarantees as the `fsync(_:)` system call.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)