With this series opendir, readdir, closedir are implemented for ext4. These functions are needed for the UEFI sub-system to interact with the ext4 file system.
To reduce code growth the functions are reused to implement the ls command for ext4. A memory leak in ext4fs_exists is resolved. ext4fs_iterate_dir is simplified by removing a redundant pointer copy. Heinrich Schuchardt (5): fs: ext4: simplify ext4fs_iterate_dir() fs: ext4: free directory node in ext4fs_exists() fs: ext4: implement opendir, readdir, closedir efi_loader: fix GetInfo and SetInfo fs: ext4: use fs_ls_generic fs/ext4/ext4_common.c | 48 ++------ fs/ext4/ext4fs.c | 177 +++++++++++++++++++++++++--- fs/fs.c | 6 +- include/ext4fs.h | 4 + lib/efi_loader/efi_file.c | 30 +++-- test/py/tests/test_env.py | 2 +- test/py/tests/test_fs/test_basic.py | 5 +- 7 files changed, 197 insertions(+), 75 deletions(-) -- 2.45.2

