[Concept,00/12] ext4l: Add support for listing directoties (Part H)

Message ID 20251223011632.380026-1-sjg@u-boot.org
Headers
Series ext4l: Add support for listing directoties (Part H) |

Message

Simon Glass Dec. 23, 2025, 1:16 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

This series adds directory-listing support to the ext4l filesystem
driver. It exports a few required functions from the Linux ext4 code,
fixes the dir_emit() stub to properly call the actor callback, and
implements ext4l_ls() with path resolution and symlink following.


Simon Glass (12):
  ext4l: Fix format warning in mballoc.c
  fs: ext4l: Mount filesystems read-write
  ext4l: Add write support and buffer mapping for mount
  ext4l: Use EXT4L_PRINTF to enable ext4 diagnostic messages
  ext4l: Document __CHAR_UNSIGNED__ behavior for directory hashing
  ext4l: Implement super_set_uuid() to display filesystem UUID
  ext4l: Add message buffer to record ext4 messages
  ext4l: Add ext4l_msgs env var to print messages on mount
  test: fs: Add ext4l filesystem tests
  ext4l: Export ext4_readdir() for directory listing
  ext4l: Fix dir_emit() to call the actor callback
  ext4l: Add ls command support

 fs/ext4l/dir.c                      |   2 +-
 fs/ext4l/ext4.h                     |   5 +-
 fs/ext4l/ext4_uboot.h               |  53 +++-
 fs/ext4l/interface.c                | 393 ++++++++++++++++++++++++++++
 fs/ext4l/mballoc.c                  |   4 +-
 fs/ext4l/namei.c                    |   2 +-
 fs/ext4l/super.c                    |  28 +-
 fs/ext4l/support.c                  |  55 +++-
 fs/fs_legacy.c                      |   2 +-
 include/ext4l.h                     |  14 +
 test/fs/Makefile                    |   1 +
 test/fs/ext4l.c                     | 110 ++++++++
 test/py/tests/test_fs/test_ext4l.py |  78 ++++++
 13 files changed, 722 insertions(+), 25 deletions(-)
 create mode 100644 test/fs/ext4l.c
 create mode 100644 test/py/tests/test_fs/test_ext4l.py