ext2: add writing features
This commit is contained in:
parent
7d9fdb8e13
commit
e42eb8d714
2 changed files with 251 additions and 9 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue