ext2: add unlink

This commit is contained in:
Michael Shaw 2025-02-24 19:35:23 -05:00
commit 2bcd8dc6be
4 changed files with 100 additions and 6 deletions

View file

@ -117,7 +117,7 @@ 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 (*unlink)(struct fs *fs, const char *path); /* change to vno, not path) */
int (*unlink)(struct vnode *parent, const char *name);
int (*creat)(struct vnode *parent, const char *path, mode_t mode);
int (*open_vno)(struct fs *vfs, struct vnode *out, ino_t ino_num);
};