Skip to content

F_PUNCHHOLE #3336

Closed
Closed
@anacrolix

Description

@anacrolix

Apple has F_PUNCHHOLE for punching file system holes.

aarch64-apple-darwin

fcntl.h:

#define F_PUNCHHOLE     99              /* Deallocate a range of the file */
/* fpunchhole_t used by F_PUNCHHOLE */
typedef struct fpunchhole {
	unsigned int fp_flags; /* unused */
	unsigned int reserved; /* (to maintain 8-byte alignment) */
	off_t fp_offset; /* IN: start of the region */
	off_t fp_length; /* IN: size of the region */
} fpunchhole_t;

Happy to add this myself with some pointers. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions