erofs-utils: add preliminary zstd support [x]
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 15 May 2024 05:16:41 +0000 (13:16 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 16 May 2024 16:32:22 +0000 (00:32 +0800)
commited2f7cf8b7483962518e517c3f2401aaead999ad
tree3de15cf31d23687a36ab9d46d8e75a9b8289e92a
parent2f46123601ebaa5d89bc662aa47e9b2d77ab59a8
erofs-utils: add preliminary zstd support [x]

This patch just adds a preliminary Zstandard support to erofs-utils
since currently Zstandard doesn't support fixed-sized output compression
officially.  Mkfs could take more time to finish but it works at least.

The built-in zstd compressor for erofs-utils is slowly WIP, therefore
apparently it will take more efforts.

[ TODO: Later I tend to add another way to generate fixed-sized input
        pclusters temporarily for relatively large pcluster sizes as
        an option since it will have minor impacts to the results. ]

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240515051641.3929058-1-hsiangkao@linux.alibaba.com
12 files changed:
configure.ac
dump/Makefile.am
fsck/Makefile.am
fuse/Makefile.am
include/erofs_fs.h
lib/Makefile.am
lib/compress.c
lib/compressor.c
lib/compressor.h
lib/compressor_libzstd.c [new file with mode: 0644]
lib/decompress.c
mkfs/Makefile.am