Skip to content

F_PUNCHHOLE #3336

Closed
Closed
@anacrolix

Description

@anacrolix
Contributor

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!

Activity

devnexen

devnexen commented on Sep 7, 2023

@devnexen
Contributor

please do :-) here is the contributing guide.

anacrolix

anacrolix commented on Sep 7, 2023

@anacrolix
ContributorAuthor

Woops, already did, here's the PR #3337

added a commit that references this issue on Sep 10, 2023
684e5b0
added a commit that references this issue on Sep 22, 2023
06148e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @anacrolix@devnexen

        Issue actions

          F_PUNCHHOLE · Issue #3336 · rust-lang/libc