Skip to content

mksquashfs: add '-min-sparse-copy <size>' option#335

Open
apeters1971 wants to merge 1 commit intoplougher:masterfrom
apeters1971:master
Open

mksquashfs: add '-min-sparse-copy <size>' option#335
apeters1971 wants to merge 1 commit intoplougher:masterfrom
apeters1971:master

Conversation

@apeters1971
Copy link
Copy Markdown

This allows instead of copying full contents into an image to put a sparse file of the same size for all files which are atleast of size . E.g. when using '-min-sparse-copy 1' the image contains only files with '0' bytes as contents and their original file size. For 'min-sparse-copy 1000' all files with atleast 1000 bytes contain only '0' as contents.

This allows instead of copying full contents into an image to put a sparse file of the same size for all files which are atleast of size <size>. E.g. when using '-min-sparse-copy 1' the image contains only files with '0' bytes as contents and their original file size. For 'min-sparse-copy 1000' all files with atleast 1000 bytes contain only '0' as contents.

Skip duplicate pre-check for synthetic sparse placeholders to avoid routing transient buffers through write_file_blocks_dup(), and fix long-option parsing for --min-sparse-copy=<size>.
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

Successfully merging this pull request may close these issues.

1 participant