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

Support for FALLOC_FL_PUNCH_HOLE #26

Open
rowlap opened this issue Sep 5, 2020 · 0 comments
Open

Support for FALLOC_FL_PUNCH_HOLE #26

rowlap opened this issue Sep 5, 2020 · 0 comments

Comments

@rowlap
Copy link

rowlap commented Sep 5, 2020

fatcat's -z mode is great for backups of FAT filesystems, in order to make them more compressible.

Would there be any interest in adding fallocate support for making holes in the file for similar space-saving purposes? I've hacked around a proof of concept which seems to work.

This would be functionally similar to defragging / compacting then shrinking the filesystem, except when done right, no undeleted data is touched.

(Why do this? I have backups of filesystems with low %age use, but prefer to keep them in the exact backup file which dd copies. It would save gigs of space to be able to make the files sparse.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant