mhx / dwarfs

A fast high compression read-only file system for Linux, Windows and macOS
GNU General Public License v3.0
2.16k stars 58 forks source link

recompress does not change the compression algorithm #166

Closed cipitaua closed 1 year ago

cipitaua commented 1 year ago

I have a dwarfs file compressed with -l 9 and I would like to recompress it using the faster -l 7 , therefore I do:

mkdwarfs -l 7 --recompress -i file_l9.dwarfs -o file_l7.dwarfs

but

dwarfsck -d3 file_l7.dwarfs
DwarFS version 2.5 [2]
SECTION num=0, type=BLOCK, compression=ZSTD, length=26385341, checksum=0xe5a246233c44ebd2, offset=64, blocksize=67108864, ratio=39.32%
SECTION num=1, type=BLOCK, compression=ZSTD, length=31352810, checksum=0xacc2d506cee2d76c, offset=26385469, blocksize=67108864, ratio=46.72%
...

zstd is still there?

cipitaua commented 1 year ago

I'm an asshole.