<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/PreallocateFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:@E@FSPreallocateFlags"
  },
  "title" : "FSVolume.PreallocateFlags"
}
-->

# FSVolume.PreallocateFlags

Behavior flags for preallocation operations.

```
struct PreallocateFlags
```

## Topics

### Declaring preallocation behaviors

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

Allocates contiguous space.

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

Allocates all requested space or no space at all.

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

Allocates space that isn’t freed when deleting the descriptor.

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

Allocates space from the physical end of file.

### Working with raw values

[`init(rawValue:)`](/documentation/FSKit/FSVolume/PreallocateFlags/init(rawValue:))



---

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)