vfs: further switch to dirent tracking
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
f9d760993d
commit
7799f3b622
3 changed files with 7 additions and 16 deletions
|
|
@ -17,9 +17,9 @@ struct fs_type {
|
|||
};
|
||||
|
||||
struct fs_ops {
|
||||
int (*alloc_inode)(fs_t *fs, inode_t **out);
|
||||
int (*alloc_inode)(fs_t *fs, dirent_t **out);
|
||||
int (*free_inode)(fs_t *fs, inode_t *inode);
|
||||
int (*open_inode)(fs_t *fs, u64 id, inode_t **out);
|
||||
int (*open_inode)(fs_t *fs, u64 id, dirent_t *dirent, inode_t **out);
|
||||
};
|
||||
|
||||
struct _fs {
|
||||
|
|
@ -36,17 +36,6 @@ struct _fs {
|
|||
struct fs_ops fs_ops;
|
||||
};
|
||||
|
||||
struct ram_file {
|
||||
u64 type;
|
||||
u64 extra;
|
||||
char *name;
|
||||
size_t name_len;
|
||||
|
||||
void *data;
|
||||
size_t data_size;
|
||||
size_t file_size;
|
||||
};
|
||||
|
||||
/* VFS ops */
|
||||
void vfs_init();
|
||||
void vfs_register(struct fs_type *fs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue