diff --git a/fs/vfs/ramfs.c b/fs/vfs/ramfs.c index 0795073..b5dcac6 100644 --- a/fs/vfs/ramfs.c +++ b/fs/vfs/ramfs.c @@ -236,7 +236,7 @@ void ramfs_init(void) ramfs_inode_ops->unlink = unlink; ramfs_inode_ops->get_dents = get_dents; - struct fs_type ramfs_type = {.name = "ramfs", .init = init, .fs_umount = umount}; + struct fs_driver ramfs_type = {.name = "ramfs", .init = init, .fs_umount = umount}; vfs_register(&ramfs_type); } diff --git a/fs/vfs/vfs.c b/fs/vfs/vfs.c index c092154..7926d16 100644 --- a/fs/vfs/vfs.c +++ b/fs/vfs/vfs.c @@ -252,9 +252,9 @@ int vfs_mount(const char *mount_point, fs_t *fs_to_mount) return -ENOSYS; } -void vfs_register(struct fs_type *fs) +void vfs_register(struct fs_driver *fs) { - struct fs_type *ins = kalloc(sizeof(*fs), ALLOC_KERN); + struct fs_driver *ins = kalloc(sizeof(*fs), ALLOC_KERN); if (!ins) return; diff --git a/include/fs/vfs.h b/include/fs/vfs.h index cdff9e2..1817a1e 100644 --- a/include/fs/vfs.h +++ b/include/fs/vfs.h @@ -29,7 +29,7 @@ #define FS_RDONLY 0x00000001 -struct fs_type { +struct fs_driver { char name[256]; int (*init)(int flags, inode_t *inode, fs_t **out); int (*fs_umount)(fs_t *fs); @@ -57,7 +57,7 @@ struct _fs { }; void vfs_init(void); -void vfs_register(struct fs_type *fs); +void vfs_register(struct fs_driver *fs); int vfs_open(const char *abs_path, dirent_t **out); void vfs_close(dirent_t *dent);