ext2: add writing features

This commit is contained in:
Michael Shaw 2025-02-18 15:20:24 -05:00
commit e42eb8d714
2 changed files with 251 additions and 9 deletions

View file

@ -118,6 +118,7 @@ struct fs_ops {
int (*read)(struct vnode *vnode, void *buf, size_t offset, size_t size);
int (*write)(struct vnode *vnode, void *buf, size_t offset, size_t size);
int (*unlink)(struct fs *fs, const char *path); /* change to vno, not path) */
int (*creat)(struct vnode *parent, const char *path, mode_t mode);
int (*open_vno)(struct fs *vfs, struct vnode *out, ino_t ino_num);
};