vfs: fix various logical errors in the vfs

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-05 15:18:34 +02:00
commit eb41b17fea
6 changed files with 146 additions and 45 deletions

View file

@ -64,6 +64,8 @@ void vfs_register(struct fs_type *fs);
int vfs_open(const char *abs_path, dirent_t **out);
void vfs_close(dirent_t *dent);
int vfs_creat(dirent_t *parent, const char *name, u64 mode, int flags, dirent_t **out);
int vfs_mount(const char *mount_point, fs_t *fs_to_mount);
ssize_t vfs_write(inode_t *ino, char *buf, size_t size, size_t offset);
ssize_t vfs_read(inode_t *ino, char *buf, size_t size, size_t offset);