Skip to content

Support for FALLOC_FL_PUNCH_HOLE #26

Description

@rowlap

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.)

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions