mufs: return tree as an argument in resolve_path() and free tree objects where necessary

This commit is contained in:
S.J.R. van Schaik 2017-06-14 12:47:25 +02:00
parent 4ed40e75c6
commit 59a71a4608
4 changed files with 79 additions and 53 deletions

View file

@ -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);