AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
194 stars 30 forks source link

Feature suggestion: allow passing "--rsyncable" to zstd compressor #117

Open goverp opened 11 months ago

goverp commented 11 months ago

With luck, rsyncing a file generated with gensquashfs may save on transferring the entire file. For example, I use rsync to maintain my snapshot of the Gentoo portage tree (order of 100 MB compressed using lzop), and weekly changes used to need a transfer of about 60% of the file (for some reason, that's no longer true, but that's a Gentoo issue, and anyway it's irrelevant).

It struck me that as zstd has an explicit option "--rsyncable" to make its output more rsync-friendly, it would benefit gensquashfs to be able to specify it, but "gensquashfs -c sztd -X help" just says "level=" as the list of available options (at least, on my Gentoo system).