Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F_PUNCHHOLE #3336

Closed
anacrolix opened this issue Sep 4, 2023 · 2 comments
Closed

F_PUNCHHOLE #3336

anacrolix opened this issue Sep 4, 2023 · 2 comments
Labels
C-API-request Category: API request

Comments

@anacrolix
Copy link
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!

@anacrolix anacrolix added the C-API-request Category: API request label Sep 4, 2023
@devnexen
Copy link
Contributor

devnexen commented Sep 7, 2023

please do :-) here is the contributing guide.

@anacrolix
Copy link
Contributor Author

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

anacrolix added a commit to anacrolix/rust-libc that referenced this issue Sep 10, 2023
@bors bors closed this as completed in 06148e1 Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-API-request Category: API request
Projects
None yet
Development

No branches or pull requests

2 participants