mufs: return tree as an argument in resolve_path() and free tree objects where necessary
This commit is contained in:
parent
4ed40e75c6
commit
59a71a4608
4 changed files with 79 additions and 53 deletions
|
@ -18,7 +18,7 @@ struct mufs_dentry {
|
|||
uint16_t path_len;
|
||||
} __attribute__((packed));
|
||||
|
||||
struct mufs_tree *resolve_path(struct mufs *fs, const char *path,
|
||||
int resolve_path(struct mufs *fs, const char *path, struct mufs_tree **tree,
|
||||
struct mufs_stat *stat);
|
||||
size_t find_dirent_size(struct mufs *fs, struct mufs_tree *tree,
|
||||
uint32_t va);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue