[PATCH v4 3/3] erofs-utils: fuse: add compressed file support
Li GuiFu
bluce.lee at aliyun.com
Sat Dec 5 19:42:36 AEDT 2020
On 2020/11/27 20:24, Gao Xiang via Linux-erofs wrote:
> From: Huang Jianan <huangjianan at oppo.com>
>
> This patch adds a simple approach (~ 700 LOC) to EROFS fixed-sized
> output decompression without inplace I/O or decompression inplace
> so it's easy to be ported everywhere with less constraint.
>
> However, the on-disk compressed index parser (aka. zmap) is largely
> kept in line with the kernel side, therefore new on-disk features
> under development can be verified effectively first here.
>
> Signed-off-by: Huang Jianan <huangjianan at oppo.com>
> Signed-off-by: Guo Weichao <guoweichao at oppo.com>
> Signed-off-by: Gao Xiang <hsiangkao at aol.com>
> ---
> changes since v3:
> - fix build error without lz4 library.
>
> include/erofs/decompress.h | 35 ++++
> include/erofs/defs.h | 5 +
> include/erofs/internal.h | 8 +
> lib/Makefile.am | 2 +-
> lib/data.c | 72 ++++++-
> lib/decompress.c | 87 ++++++++
> lib/namei.c | 4 +
> lib/zmap.c | 415 +++++++++++++++++++++++++++++++++++++
> 8 files changed, 626 insertions(+), 2 deletions(-)
> create mode 100644 include/erofs/decompress.h
> create mode 100644 lib/decompress.c
> create mode 100644 lib/zmap.c
>
It looks good
Reviewed-by: Li Guifu <bluce.lee at aliyun.com>
Tested-by: Li Guifu <bluce.lee at aliyun.com>
Thanks,
More information about the Linux-erofs
mailing list