Re: [PATCH] fs/erofs: Introduce new features including ztailpacking, fragments and dedupe

2023-07-10 Thread Huang Jianan
在 2023/7/7 23:52, Yifan Zhao 写道: This patch updates erofs driver code to catch up with the latest code of erofs_utils (commit e4939f9eaa177e05d697ace85d8dc283e25dc2ed). LZMA will be supported in the separate patch later. Signed-off-by: Yifan Zhao Looks good to me. Reviewed-by: Huang

Re: [PATCH 096/171] Correct SPL use of FS_EROFS

2023-01-30 Thread Huang Jianan
\ namei.o \ data.o \ Looks good to me. Reviewed-by: Huang Jianan Thanks, Jianan

Re: [PATCH 1/1] fs/erofs: silence erofs_probe()

2022-08-01 Thread Huang Jianan
es: 830613f8f5bb ("fs/erofs: add erofs filesystem support") > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass > --- > v2: > keep erofs_err() for block size mismatch > --- > fs/erofs/super.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 del

Re: [PATCH 1/1] fs/erofs: silence erofs_probe()

2022-07-31 Thread Huang Jianan
erofs_err("blksize %u isn't supported on this platform", + erofs_dbg("blksize %u isn't supported on this platform", 1 << blkszbits); return ret; } Reviewed-by: Huang Jianan Thanks, Jianan

Re: [PATCH 8/8] fs: erofs: add unaligned read range handling

2022-06-30 Thread Huang Jianan
the generic unaligned read support. Cc: Huang Jianan Cc: linux-er...@lists.ozlabs.org Signed-off-by: Qu Wenruo Looks good to me, Reviewed-by: Huang Jianan Thanks, Jianan --- fs/erofs/internal.h | 1 + fs/erofs/super.c| 6 ++ fs/fs.c | 2 +- include/erofs.h | 1 + 4

Re: [PATCH RFC 2/8] fs: always get the file size in _fs_read()

2022-06-28 Thread Huang Jianan
Hi, wenruo, 在 2022/6/28 15:28, Qu Wenruo 写道: For _fs_read(), @len == 0 means we read the whole file. And we just pass @len == 0 to make each filesystem to handle it. In fact we have info->size() call to properly get the filesize. So we can not only call info->size() to grab the file_size for

Re: [PATCH v4 0/5] fs/erofs: new filesystem

2022-03-05 Thread Huang Jianan
在 2022/3/4 3:15, Tom Rini 写道: On Thu, Mar 03, 2022 at 10:51:18PM +0800, Huang Jianan wrote: Hi Tom, Would you mind taking some time to check if this version meets the requirements ?So we could have a chance to be merged into the next version ? I have triggered a CI via Github PR based

Re: [PATCH v4 0/5] fs/erofs: new filesystem

2022-03-03 Thread Huang Jianan
Jianan 写道: Changes since v3: - update tools/docker/Dockerfile; Changes since v2: - sync up with erofs-utils 1.4; - update lib/lz4 to v1.8.3; - add test for filesystem functions; Changes since v1: - fix the inconsistency between From and SoB; - add missing license header; Huang

[PATCH v4 3/5] fs/erofs: add lz4 decompression support

2022-02-25 Thread Huang Jianan
Support EROFS lz4 compressed files. Signed-off-by: Huang Jianan --- fs/erofs/Kconfig | 9 + fs/erofs/Makefile | 4 +- fs/erofs/data.c | 90 ++- fs/erofs/decompress.c | 78 ++ fs/erofs/decompress.h | 24 ++ fs/erofs/namei.c | 2 +- fs/erofs/zmap.c | 601

[PATCH v4 5/5] test/py: Add tests for the erofs

2022-02-25 Thread Huang Jianan
Add Python scripts to test 'ls' and 'load' commands, as well as test related filesystem functions. Signed-off-by: Huang Jianan --- MAINTAINERS | 1 + configs/sandbox_defconfig | 1 + test/py/tests/test_fs/test_erofs.py | 211

[PATCH v4 4/5] fs/erofs: add filesystem commands

2022-02-25 Thread Huang Jianan
Add 'ls' and 'load' commands. Signed-off-by: Huang Jianan --- MAINTAINERS | 1 + cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/erofs.c | 42 ++ 4 files changed, 50 insertions(+) create mode 100644 cmd/erofs.c diff --git a/MAINTAINERS b

[PATCH v4 1/5] fs/erofs: add erofs filesystem support

2022-02-25 Thread Huang Jianan
This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan --- MAINTAINERS | 7 + fs/Kconfig | 2 + fs/Makefile | 1 + fs/erofs/Kconfig| 12 ++ fs/erofs/Makefile | 7 + fs/erofs/data.c | 223 ++ fs/erofs

[PATCH v4 2/5] lib/lz4: update LZ4 decompressor module

2022-02-25 Thread Huang Jianan
Update the LZ4 compression module based on LZ4 v1.8.3 in order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by: Huang Jianan --- include/u-boot/lz4.h | 49 lib/lz4.c| 679

[PATCH v4 0/5] fs/erofs: new filesystem

2022-02-25 Thread Huang Jianan
Changes since v3: - update tools/docker/Dockerfile; Changes since v2: - sync up with erofs-utils 1.4; - update lib/lz4 to v1.8.3; - add test for filesystem functions; Changes since v1: - fix the inconsistency between From and SoB; - add missing license header; Huang Jianan (5): fs/erofs

[PATCH v3 5/5] test/py: Add tests for the erofs

2022-02-08 Thread Huang Jianan
Add Python scripts to test 'ls' and 'load' commands, as well as test related filesystem functions. Signed-off-by: Huang Jianan --- MAINTAINERS | 1 + configs/sandbox_defconfig | 1 + test/py/tests/test_fs/test_erofs.py | 211 3

[PATCH v3 3/5] fs/erofs: add lz4 decompression support

2022-02-08 Thread Huang Jianan
Support EROFS lz4 compressed files. Signed-off-by: Huang Jianan --- fs/erofs/Kconfig | 9 + fs/erofs/Makefile | 4 +- fs/erofs/data.c | 90 ++- fs/erofs/decompress.c | 78 ++ fs/erofs/decompress.h | 24 ++ fs/erofs/namei.c | 2 +- fs/erofs/zmap.c | 601

[PATCH v3 4/5] fs/erofs: add filesystem commands

2022-02-08 Thread Huang Jianan
Add 'ls' and 'load' commands. Signed-off-by: Huang Jianan --- MAINTAINERS | 1 + cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/erofs.c | 42 ++ 4 files changed, 50 insertions(+) create mode 100644 cmd/erofs.c diff --git a/MAINTAINERS b

[PATCH v3 2/5] lib/lz4: update LZ4 decompressor module

2022-02-08 Thread Huang Jianan
Update the LZ4 compression module based on LZ4 v1.8.3 in order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by: Huang Jianan --- include/u-boot/lz4.h | 49 lib/lz4.c| 679

[PATCH v3 1/5] fs/erofs: add erofs filesystem support

2022-02-08 Thread Huang Jianan
This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan --- MAINTAINERS | 7 + fs/Kconfig | 2 + fs/Makefile | 1 + fs/erofs/Kconfig| 12 ++ fs/erofs/Makefile | 7 + fs/erofs/data.c | 223 ++ fs/erofs

[PATCH v3 0/5] fs/erofs: new filesystem

2022-02-08 Thread Huang Jianan
Changes since v2: - sync up with erofs-utils 1.4; - update lib/lz4 to v1.8.3; - add test for filesystem functions; Changes since v1: - fix the inconsistency between From and SoB; - add missing license header; Huang Jianan (5): fs/erofs: add erofs filesystem support lib/lz4: update LZ4

Re: [PATCH v2 0/3] fs/erofs: new filesystem

2022-01-14 Thread Huang Jianan
在 2022/1/5 19:57, Gao Xiang 写道: Hi Jianan, On Wed, Aug 25, 2021 at 06:40:42PM -0400, Tom Rini wrote: On Mon, Aug 23, 2021 at 08:36:43PM +0800, Huang Jianan wrote: From: Huang Jianan Add erofs filesystem support. The code is adapted from erofs-utils in order to reduce maintenance burden

Re: [PATCH v2 1/3] fs/erofs: add erofs filesystem support

2021-08-30 Thread Huang Jianan
在 2021/8/30 21:27, Huang Jianan 写道: 在 2021/8/26 6:39, Tom Rini 写道: On Mon, Aug 23, 2021 at 08:36:44PM +0800, Huang Jianan wrote: From: Huang Jianan This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan ---   fs/Kconfig  |   1 +   fs/Makefile |   1

Re: [PATCH v2 2/3] fs/erofs: add lz4 1.8.3 decompressor

2021-08-30 Thread Huang Jianan
在 2021/8/26 6:39, Tom Rini 写道: On Mon, Aug 23, 2021 at 08:36:45PM +0800, Huang Jianan wrote: From: Huang Jianan In order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by: Huang Jianan --- fs/erofs/Makefile | 3 +- fs

Re: [PATCH v2 1/3] fs/erofs: add erofs filesystem support

2021-08-30 Thread Huang Jianan
在 2021/8/26 6:39, Tom Rini 写道: On Mon, Aug 23, 2021 at 08:36:44PM +0800, Huang Jianan wrote: From: Huang Jianan This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan --- fs/Kconfig | 1 + fs/Makefile | 1 + fs/erofs/Kconfig| 12

[PATCH v2 3/3] fs/erofs: add lz4 decompression support

2021-08-23 Thread Huang Jianan
From: Huang Jianan Support EROFS lz4 compressed files. Signed-off-by: Huang Jianan --- fs/erofs/Makefile | 4 +- fs/erofs/data.c | 84 ++- fs/erofs/decompress.c | 74 ++ fs/erofs/decompress.h | 29 +++ fs/erofs/namei.c | 2 +- fs/erofs/zmap.c | 517

[PATCH v2 1/3] fs/erofs: add erofs filesystem support

2021-08-23 Thread Huang Jianan
From: Huang Jianan This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan --- fs/Kconfig | 1 + fs/Makefile | 1 + fs/erofs/Kconfig| 12 ++ fs/erofs/Makefile | 7 + fs/erofs/data.c | 124 ++ fs/erofs/erofs_fs.h | 384

[PATCH v2 2/3] fs/erofs: add lz4 1.8.3 decompressor

2021-08-23 Thread Huang Jianan
From: Huang Jianan In order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by: Huang Jianan --- fs/erofs/Makefile | 3 +- fs/erofs/lz4.c| 534 ++ fs/erofs/lz4.h| 5 + 3

[PATCH v2 0/3] fs/erofs: new filesystem

2021-08-23 Thread Huang Jianan
From: Huang Jianan Add erofs filesystem support. The code is adapted from erofs-utils in order to reduce maintenance burden and keep with the latest feature. Changes since v1: - fix the inconsistency between From and SoB (Bin Meng); - add missing license header; Huang Jianan (3): fs/erofs

Re: [PATCH 1/3] fs/erofs: new filesystem

2021-08-23 Thread Huang Jianan
在 2021/8/23 12:24, Bin Meng 写道: On Mon, Aug 23, 2021 at 12:03 AM Huang Jianan wrote: From: Huang Jianan Add erofs filesystem support. The code is adapted from erofs-utils in order to reduce maintenance burden and keep with the latest feature. This patch mainly deals with uncompressed

[PATCH 3/3] fs/erofs: add lz4 decompression support

2021-08-22 Thread Huang Jianan
From: Huang Jianan Support EROFS lz4 compressed files. Signed-off-by: Huang Jianan --- fs/erofs/Makefile | 4 +- fs/erofs/data.c | 84 ++- fs/erofs/decompress.c | 74 ++ fs/erofs/decompress.h | 29 +++ fs/erofs/namei.c | 2 +- fs/erofs/zmap.c | 517

[PATCH 2/3] fs/erofs: add lz4 1.8.3 decompressor

2021-08-22 Thread Huang Jianan
From: Huang Jianan In order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by: Huang Jianan --- fs/erofs/Makefile | 3 +- fs/erofs/lz4.c| 534 ++ fs/erofs/lz4.h| 4 + 3

[PATCH 1/3] fs/erofs: new filesystem

2021-08-22 Thread Huang Jianan
From: Huang Jianan Add erofs filesystem support. The code is adapted from erofs-utils in order to reduce maintenance burden and keep with the latest feature. This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan --- fs/Kconfig | 1 + fs/Makefile