[PATCH v2] erofs-utils: add preliminary zstd support [x]

2024-05-08 Thread Gao Xiang
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

[PATCH v2] erofs: Zstandard compression support

2024-05-08 Thread Gao Xiang
From: Gao Xiang Add Zstandard compression as the 4th supported algorithm since it becomes more popular now and some end users have asked this for quite a while [1][2]. Each EROFS physical cluster contains only one valid standard Zstandard frame as described in [3] so that decompression can be

Re: [PATCH] erofs: Zstandard compression support

2024-05-08 Thread Chao Yu
On 2024/5/8 17:03, Gao Xiang wrote: Add Zstandard compression as the 4th supported algorithm since it becomes more popular now and some end users have asked this for quite a while [1][2]. Each EROFS physical cluster contains only one valid standard Zstandard frame as described in [3] so that

[PATCH] erofs: clean up z_erofs_load_full_lcluster()

2024-05-08 Thread Gao Xiang
Only four lcluster types here, remove redundant code. No real logic changes. Signed-off-by: Gao Xiang --- Some random cleanup out of the upcoming big lclusters.. fs/erofs/erofs_fs.h | 5 + fs/erofs/zmap.c | 21 + 2 files changed, 6 insertions(+), 20 deletions(-)

[PATCH] erofs-utils: add preliminary zstd support

2024-05-08 Thread Gao Xiang
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

[PATCH] erofs: Zstandard compression support

2024-05-08 Thread Gao Xiang
Add Zstandard compression as the 4th supported algorithm since it becomes more popular now and some end users have asked this for quite a while [1][2]. Each EROFS physical cluster contains only one valid standard Zstandard frame as described in [3] so that decompression can be performed on a