<!--
{
  "availability" : [
    "macOS: 15.4.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/PreallocateOperations",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(pl)FSVolumePreallocateOperations"
  },
  "title" : "FSVolume.PreallocateOperations"
}
-->

# FSVolume.PreallocateOperations

Methods and properties implemented by volumes that want to offer preallocation functions.

```
protocol PreallocateOperations : NSObjectProtocol
```

## Overview

A preallocation operation allocates space for a file without writing to it yet.
A file system may use reallocation to avoid performing space allocation while in the midst of I/O; this strategy improves performance.
Also, if the expected I/O pattern is many small writes, preallocating contiguous chunks may prevent fragmenting the file system.
This process can improve performance later.

In a kernel-based file system, you typically preallocate space with the `VNOP_ALLOCATE` operation, called from `fcntl(F_PREALLOCATE)`.

> Deprecated: Use ``doc://FSKit/documentation/FSKit/FSVolume/PreallocateHandler`` instead.

## Topics

### Preallocating space

[`preallocateSpace(for:at:length:flags:replyHandler:)`](/documentation/FSKit/FSVolume/PreallocateOperations/preallocateSpace(for:at:length:flags:replyHandler:))

Preallocates disk space for the given item.

[`FSVolume.PreallocateFlags`](/documentation/FSKit/FSVolume/PreallocateFlags)

Behavior flags for preallocation operations.

### Inspecting volume properties

[`isPreallocateInhibited`](/documentation/FSKit/FSVolume/PreallocateOperations/isPreallocateInhibited)

A Boolean value that instructs FSKit not to call this protocol’s methods, even if the volume conforms to it.



---

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)