mount: simplify mount_traverse

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-22 23:53:32 -04:00
commit 27c3ffa8b1
3 changed files with 26 additions and 112 deletions

View file

@ -107,7 +107,7 @@ void vfs_init(void);
void vfs_register(struct fs_driver *fs);
int vfs_open(const char *abs_path, dirent_t **out);
int vfs_openat(struct mount *mnt, dirent_t *in, const char *name, dirent_t **out);
int vfs_openat(struct mount *mnt, dirent_t *in, const char *name, dirent_t **out, struct mount **out_mnt, bool follow);
void vfs_close(dirent_t *dent);
int vfs_readdir(dirent_t *dir, struct dir_context *ctx, dirent_t **out);
int vfs_creat(dirent_t *parent, const char *name, u64 mode, int flags, dirent_t **out);