ext2: add ext2 driver v2
This driver is not yet feature complete, yet it is much cleaner than the old one.
This commit is contained in:
parent
1ae9bce778
commit
623cb5905a
5 changed files with 336 additions and 723 deletions
|
|
@ -117,10 +117,8 @@ struct file_descriptor {
|
|||
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 (*readdir)(struct vnode *vnode, struct dirent **dir);
|
||||
int (*unlink)(struct fs *fs, const char *path); /* change to vno, not path) */
|
||||
int (*open_vno)(struct fs *vfs, struct vnode *out, ino_t ino_num);
|
||||
int (*open_dir)(struct fs *vfs, struct vnode *out);
|
||||
};
|
||||
|
||||
struct fs {
|
||||
|
|
|
|||
Loading…
Reference in a new issue