diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-10-26 08:40:46 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-11-01 13:37:58 -0600 |
| commit | 22fdac381f98b55d7dba55010f8fe9fab58d5556 (patch) | |
| tree | 970b813a7dfdf0aee3933a4e13781004b64949cd /include | |
| parent | 2d94480c025faf11d2e1010f5437e72d8e934127 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/ext4fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h index 41f9eb8bd33..fe3fb301ec8 100644 --- a/include/ext4fs.h +++ b/include/ext4fs.h @@ -27,6 +27,7 @@ #ifndef __EXT4__ #define __EXT4__ #include <ext_common.h> +#include <fs.h> struct disk_partition; @@ -218,4 +219,7 @@ int ext4fs_uuid(char *uuid_str); void ext_cache_init(struct ext_block_cache *cache); void ext_cache_fini(struct ext_block_cache *cache); int ext_cache_read(struct ext_block_cache *cache, lbaint_t block, int size); +int ext4fs_opendir(const char *dirname, struct fs_dir_stream **dirsp); +int ext4fs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp); +void ext4fs_closedir(struct fs_dir_stream *dirs); #endif |
