refining vfs

This commit is contained in:
2026-07-10 07:46:46 -05:00
parent 4d98d73f5e
commit 032a35206a
13 changed files with 304 additions and 277 deletions

View File

@@ -36,13 +36,13 @@ typedef struct {
} file_t;
vfs_node_t* vfs_create_root();
vfs_node_t* vfs_mkdir(vfs_node_t* parent, const char* name);
void mount(vfs_node_t* _mnt, vfs_node_t* _fs);
int open(const char* path, int flags);
int read(int fd, void* buf, size_t sz);
void vfs_mount(vfs_node_t* _mnt, vfs_node_t* _fs);
int vfs_open(const char* path, int flags);
int vfs_read(int fd, void* buf, size_t sz);
int fstat(int fd, file_t* _f);
int fseek(int fd, size_t offset);
int vfs_seek(int fd, size_t offset);
int alloc_fd(file_t* f);