Skip to content

Add support for the SquashFS filesystem

Joao Marcos Costa u-boot 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v3 posting 3/30 of 5 patches 0 repliesSuperseded
  3. v3 posting 2/30 of 5 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/35 patches0 repliesSuperseded
v25 patches0 repliesSuperseded
v14 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Add tests for the SquashFS commands
- Add missing endianness convertions
- Improve pointers management

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fs/squashfs: new filesystemMAINTAINERS common/spl/Kconfig fs/Kconfig +13 more+2297 -02 replies
2/6fs/squashfs: add filesystem commandsMAINTAINERS cmd/Kconfig cmd/Makefile +1 more+50 -01 reply
3/6include/u-boot, lib/zlib: add sources for zlib decompressionfs/squashfs/Kconfig include/u-boot/zlib.h lib/Kconfig +2 more+140 -01 reply
4/6fs/squashfs: add support for zlib decompressionfs/squashfs/sqfs_decompressor.c+30 -01 reply
5/6fs/fs.c: add symbolic link case to fs_ls_generic()fs/fs.c+3 -01 reply
6/6test/py: Add tests for the SquashFS commandsMAINTAINERS configs/sandbox_defconfig test/py/tests/test_fs/test_squashfs/sqfs_common.py +2 more+103 -02 replies
6/6test/py: Add tests for the SquashFS commands+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/6] Add support for the SquashFS filesystem

Hello!

This series adds support for the SquashFS filesystem. For now, zlib is the only supported compression type. This is my first contribution to U-Boot as well as to a major Open Source project.

Changes in v4:
- Add tests for the SquashFS commands
- Add missing endianness convertions
- Improve pointers management
Changes in v3:
- Replace CONFIG_IS_ENABLED by IS_ENABLED in fs/fs.c
Changes in v2:
- Replace sqfs_ls() by U-Boot's fs_ls_generic()
- Add info. to MAINTAINERS
- Fix build failures
- Fix style problems

Joao Marcos Costa (6):
fs/squashfs: new filesystem
fs/squashfs: add filesystem commands include/u-boot, lib/zlib: add sources for zlib decompression fs/squashfs: add support for zlib decompression fs/fs.c: add symbolic link case to fs_ls_generic() test/py: Add tests for the SquashFS commands

 MAINTAINERS                                   |    8 +
 cmd/Kconfig                                   |    6 +
 cmd/Makefile                                  |    1 +
 cmd/sqfs.c                                    |   42 +
 common/spl/Kconfig                            |    9 +
 configs/sandbox_defconfig                     |    1 +
 fs/Kconfig                                    |    2 +
 fs/Makefile                                   |    2 +
 fs/fs.c                                       |   18 +
 fs/squashfs/Kconfig                           |   11 +
 fs/squashfs/Makefile                          |    7 +
 fs/squashfs/sqfs.c                            | 1538 +++++++++++++++++
 fs/squashfs/sqfs_decompressor.c               |   59 +
 fs/squashfs/sqfs_decompressor.h               |   58 +
 fs/squashfs/sqfs_dir.c                        |   91 +
 fs/squashfs/sqfs_filesystem.h                 |  300 ++++
 fs/squashfs/sqfs_inode.c                      |  155 ++
 fs/squashfs/sqfs_utils.h                      |   49 +
 include/fs.h                                  |    1 +
 include/squashfs.h                            |   25 +
 include/u-boot/zlib.h                         |   32 +
 lib/Kconfig                                   |    7 +
 lib/zlib/uncompr.c                            |   97 ++
 lib/zlib/zlib.c                               |    3 +
 .../test_fs/test_squashfs/sqfs_common.py      |   42 +
 .../test_fs/test_squashfs/test_sqfs_load.py   |   33 +
 .../test_fs/test_squashfs/test_sqfs_ls.py     |   26 +
 27 files changed, 2623 insertions(+)
 create mode 100644 cmd/sqfs.c
 create mode 100644 fs/squashfs/Kconfig
 create mode 100644 fs/squashfs/Makefile
 create mode 100644 fs/squashfs/sqfs.c
 create mode 100644 fs/squashfs/sqfs_decompressor.c
 create mode 100644 fs/squashfs/sqfs_decompressor.h
 create mode 100644 fs/squashfs/sqfs_dir.c
 create mode 100644 fs/squashfs/sqfs_filesystem.h
 create mode 100644 fs/squashfs/sqfs_inode.c
 create mode 100644 fs/squashfs/sqfs_utils.h
 create mode 100644 include/squashfs.h
 create mode 100644 lib/zlib/uncompr.c
 create mode 100644 test/py/tests/test_fs/test_squashfs/sqfs_common.py
 create mode 100644 test/py/tests/test_fs/test_squashfs/test_sqfs_load.py
 create mode 100644 test/py/tests/test_fs/test_squashfs/test_sqfs_ls.py
Signature · 1 line
2.17.1