1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-31 18:35:42 +01:00

fs: ext4: implement opendir, readdir, closedir

For accessing directories from the EFI sub-system a file system must
implement opendir, readdir, closedir. Provide the missing implementation.

With this patch the eficonfig command can be used to define load options
for the ext4 file system.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt
2024-10-26 08:40:46 +02:00
committed by Tom Rini
parent 2d94480c02
commit 22fdac381f
3 changed files with 166 additions and 3 deletions

View File

@@ -232,7 +232,9 @@ static struct fstype_info fstypes[] = {
.ln = fs_ln_unsupported,
#endif
.uuid = ext4fs_uuid,
.opendir = fs_opendir_unsupported,
.opendir = ext4fs_opendir,
.readdir = ext4fs_readdir,
.closedir = ext4fs_closedir,
.unlink = fs_unlink_unsupported,
.mkdir = fs_mkdir_unsupported,
},