Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Add new options for Linux's fallocate(2) #1681

Merged
merged 1 commit into from Jul 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/core/sys/linux/fcntl.d
Expand Up @@ -10,7 +10,11 @@ nothrow:
enum {
FALLOC_FL_KEEP_SIZE = 0x01,
FALLOC_FL_PUNCH_HOLE = 0x02,
FALLOC_FL_NO_HIDE_STALE = 0x04
FALLOC_FL_NO_HIDE_STALE = 0x04,
FALLOC_FL_COLLAPSE_RANGE = 0x08,
FALLOC_FL_ZERO_RANGE = 0x10,
FALLOC_FL_INSERT_RANGE = 0x20,
FALLOC_FL_UNSHARE_RANGE = 0x40
}

// Linux-specific fallocate
Expand Down