diff options
| author | Alexey Charkov <[email protected]> | 2026-06-26 19:18:21 +0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-10 15:55:01 -0600 |
| commit | 5f064aef5d766e291982f9cba6dc728dcdb53868 (patch) | |
| tree | 32c38c701e606012e1f5d660e1f1e1ac1c1dfc60 /include | |
| parent | 19eafbadf20f56c1a24abe6b5e8774e776894261 (diff) | |
fs: btrfs: implement opendir(), readdir() and closedir()
Add support for generic directory iteration with opendir(), readdir() and
closedir() in the btrfs filesystem driver.
Signed-off-by: Alexey Charkov <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/btrfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/btrfs.h b/include/btrfs.h index 2d73add18e0..6fff45a497e 100644 --- a/include/btrfs.h +++ b/include/btrfs.h @@ -10,6 +10,8 @@ struct blk_desc; struct disk_partition; +struct fs_dir_stream; +struct fs_dirent; int btrfs_probe(struct blk_desc *fs_dev_desc, struct disk_partition *fs_partition); @@ -20,5 +22,8 @@ int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *); void btrfs_close(void); int btrfs_uuid(char *); void btrfs_list_subvols(void); +int btrfs_opendir(const char *filename, struct fs_dir_stream **dirsp); +int btrfs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp); +void btrfs_closedir(struct fs_dir_stream *dirs); #endif /* __U_BOOT_BTRFS_H__ */ |
