diff options
| author | Tom Rini <[email protected]> | 2024-11-01 13:38:05 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-11-01 13:38:05 -0600 |
| commit | 8e5e64d55de9ed97875a0c1b7f293a0286d64312 (patch) | |
| tree | 4888d5dd9db7a34fa6c49f507919a89f06e4a85a /include | |
| parent | 15a55dbff6d9b64178ccb7d12c0e0d24fa79f37a (diff) | |
| parent | 29e5a2e9597234700420e8e93055861eba3b409c (diff) | |
Merge patch series "fs: ext4: implement opendir, readdir, closedir"
Heinrich Schuchardt <[email protected]> says:
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.
Link: https://lore.kernel.org/r/[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 |
