]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: ext4: use fs_ls_generic
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Oct 2024 06:40:48 +0000 (08:40 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 Nov 2024 19:37:58 +0000 (13:37 -0600)
commit29e5a2e9597234700420e8e93055861eba3b409c
tree8d2eb95a4ddfd7ef3ca48d4a95a15fdfb78f8a2e
parent8b1d6fcc9082c9eea590408e4675c45671107cd7
fs: ext4: use fs_ls_generic

Now that opendir, readir, closedir are implemented for ext4 we can use
fs_ls_generic() for implementing the ls command.

Adjust the unit tests:

* fs_ls_generic() produces more spaces between file size and name.
* The ext4 specific message "** Can not find directory. **\n" is not
  written anymore.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
fs/ext4/ext4_common.c
fs/ext4/ext4fs.c
fs/fs.c
test/py/tests/test_env.py
test/py/tests/test_fs/test_basic.py