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

Leverage file system hole punching to avoid GC rewrite #308

Open
Connor1996 opened this issue Jan 31, 2024 · 0 comments
Open

Leverage file system hole punching to avoid GC rewrite #308

Connor1996 opened this issue Jan 31, 2024 · 0 comments
Labels
type/enhancement Type: Issue - Enhancement

Comments

@Connor1996
Copy link
Member

https://man7.org/linux/man-pages/man2/fallocate.2.html
FALLOC_FL_PUNCH_HOLE can deallocate space in the byte range starting. Within the specified range, partial filesystem blocks are zeroed, and whole filesystem blocks are removed from the file. With that, we don't need to GC rewrite blob files and still save disk space.

@Connor1996 Connor1996 added the type/enhancement Type: Issue - Enhancement label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: Issue - Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant