i_ops: change link and unlink to inode-tracking
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
8c346a7018
commit
7e4e70853e
3 changed files with 26 additions and 35 deletions
|
|
@ -37,8 +37,8 @@ struct inode_ops {
|
|||
ssize_t (*read)(inode_t *inode, char *buf, size_t size, size_t offset);
|
||||
ssize_t (*write)(inode_t *inode, char *buf, size_t size, size_t offset);
|
||||
|
||||
int (*link)(dirent_t *parent, inode_t *child, const char *name, dirent_t **out);
|
||||
int (*unlink)(dirent_t *dent);
|
||||
int (*link)(inode_t *parent_dir, inode_t *child, const char *name, dirent_t **out);
|
||||
int (*unlink)(inode_t *parent_dir, const char *name);
|
||||
ssize_t (*get_dents)(inode_t *parent, dirent_t **dents);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue