mbox series

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

Message ID 20210823123646.9765-1-jnhuang95@gmail.com
Headers show
Series fs/erofs: new filesystem | expand

Message

Jianan Huang Aug. 23, 2021, 12:36 p.m. UTC
From: Huang Jianan <huangjianan@oppo.com>

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: add erofs filesystem support
  fs/erofs: add lz4 1.8.3 decompressor
  fs/erofs: add lz4 decompression support

 fs/Kconfig            |   1 +
 fs/Makefile           |   1 +
 fs/erofs/Kconfig      |  12 +
 fs/erofs/Makefile     |  10 +
 fs/erofs/data.c       | 206 ++++++++++++++++
 fs/erofs/decompress.c |  74 ++++++
 fs/erofs/decompress.h |  29 +++
 fs/erofs/erofs_fs.h   | 384 ++++++++++++++++++++++++++++++
 fs/erofs/fs.c         | 231 ++++++++++++++++++
 fs/erofs/internal.h   | 203 ++++++++++++++++
 fs/erofs/lz4.c        | 534 ++++++++++++++++++++++++++++++++++++++++++
 fs/erofs/lz4.h        |   5 +
 fs/erofs/namei.c      | 238 +++++++++++++++++++
 fs/erofs/super.c      |  65 +++++
 fs/erofs/zmap.c       | 517 ++++++++++++++++++++++++++++++++++++++++
 fs/fs.c               |  22 ++
 include/erofs.h       |  19 ++
 include/fs.h          |   1 +
 18 files changed, 2552 insertions(+)
 create mode 100644 fs/erofs/Kconfig
 create mode 100644 fs/erofs/Makefile
 create mode 100644 fs/erofs/data.c
 create mode 100644 fs/erofs/decompress.c
 create mode 100644 fs/erofs/decompress.h
 create mode 100644 fs/erofs/erofs_fs.h
 create mode 100644 fs/erofs/fs.c
 create mode 100644 fs/erofs/internal.h
 create mode 100644 fs/erofs/lz4.c
 create mode 100644 fs/erofs/lz4.h
 create mode 100644 fs/erofs/namei.c
 create mode 100644 fs/erofs/super.c
 create mode 100644 fs/erofs/zmap.c
 create mode 100644 include/erofs.h

Comments

Gao Xiang Aug. 25, 2021, 1:23 a.m. UTC | #1
Hi U-Boot folks, 

On Mon, Aug 23, 2021 at 08:36:43PM +0800, Huang Jianan wrote:
> From: Huang Jianan <huangjianan@oppo.com>
> 
> 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: add erofs filesystem support
>   fs/erofs: add lz4 1.8.3 decompressor
>   fs/erofs: add lz4 decompression support

Could someone take some time looking into this? I think adding erofs
support to U-Boot is useful for booting with erofs. And keep sync
with erofsfuse code in erofs-utils is a good strategy for latest
feature.

Thanks in advance.

Thanks,
Gao Xiang

> 
>  fs/Kconfig            |   1 +
>  fs/Makefile           |   1 +
>  fs/erofs/Kconfig      |  12 +
>  fs/erofs/Makefile     |  10 +
>  fs/erofs/data.c       | 206 ++++++++++++++++
>  fs/erofs/decompress.c |  74 ++++++
>  fs/erofs/decompress.h |  29 +++
>  fs/erofs/erofs_fs.h   | 384 ++++++++++++++++++++++++++++++
>  fs/erofs/fs.c         | 231 ++++++++++++++++++
>  fs/erofs/internal.h   | 203 ++++++++++++++++
>  fs/erofs/lz4.c        | 534 ++++++++++++++++++++++++++++++++++++++++++
>  fs/erofs/lz4.h        |   5 +
>  fs/erofs/namei.c      | 238 +++++++++++++++++++
>  fs/erofs/super.c      |  65 +++++
>  fs/erofs/zmap.c       | 517 ++++++++++++++++++++++++++++++++++++++++
>  fs/fs.c               |  22 ++
>  include/erofs.h       |  19 ++
>  include/fs.h          |   1 +
>  18 files changed, 2552 insertions(+)
>  create mode 100644 fs/erofs/Kconfig
>  create mode 100644 fs/erofs/Makefile
>  create mode 100644 fs/erofs/data.c
>  create mode 100644 fs/erofs/decompress.c
>  create mode 100644 fs/erofs/decompress.h
>  create mode 100644 fs/erofs/erofs_fs.h
>  create mode 100644 fs/erofs/fs.c
>  create mode 100644 fs/erofs/internal.h
>  create mode 100644 fs/erofs/lz4.c
>  create mode 100644 fs/erofs/lz4.h
>  create mode 100644 fs/erofs/namei.c
>  create mode 100644 fs/erofs/super.c
>  create mode 100644 fs/erofs/zmap.c
>  create mode 100644 include/erofs.h
> 
> -- 
> 2.25.1
Tom Rini Aug. 25, 2021, 10:40 p.m. UTC | #2
On Mon, Aug 23, 2021 at 08:36:43PM +0800, Huang Jianan wrote:

> From: Huang Jianan <huangjianan@oppo.com>
> 
> 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: add erofs filesystem support
>   fs/erofs: add lz4 1.8.3 decompressor
>   fs/erofs: add lz4 decompression support

Aside from what I've just now sent, can you please extend the existing
py/tests/ to cover basic functionality here, ensure they run on sandbox
and in CI?  Thanks.
Gao Xiang Jan. 5, 2022, 11:57 a.m. UTC | #3
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 <huangjianan@oppo.com>
> > 
> > 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: add erofs filesystem support
> >   fs/erofs: add lz4 1.8.3 decompressor
> >   fs/erofs: add lz4 decompression support
> 
> Aside from what I've just now sent, can you please extend the existing
> py/tests/ to cover basic functionality here, ensure they run on sandbox
> and in CI?  Thanks.

Any further progress on this work? At least sync it up with erofs-utils
1.4?

Thanks,
Gao Xiang

> 
> -- 
> Tom
Jianan Huang Jan. 14, 2022, 2:20 p.m. UTC | #4
在 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 <huangjianan@oppo.com>
>>>
>>> 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: add erofs filesystem support
>>>    fs/erofs: add lz4 1.8.3 decompressor
>>>    fs/erofs: add lz4 decompression support
>> Aside from what I've just now sent, can you please extend the existing
>> py/tests/ to cover basic functionality here, ensure they run on sandbox
>> and in CI?  Thanks.
> Any further progress on this work? At least sync it up with erofs-utils
> 1.4?
I'm still working on this, the new version will be sent soon.

Thanks,
Jianan
> Thanks,
> Gao Xiang
>
>> -- 
>> Tom
>