diff options
Diffstat (limited to 'src/kernel/vfs/mount.c')
-rw-r--r-- | src/kernel/vfs/mount.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c index 9d66f0b..07eed0d 100644 --- a/src/kernel/vfs/mount.c +++ b/src/kernel/vfs/mount.c @@ -3,15 +3,15 @@ #include <kernel/vfs/mount.h> struct vfs_mount *vfs_mount_seed(void) { - struct vfs_mount *mount = NULL; /*kmalloc(sizeof(struct vfs_mount)); + struct vfs_mount *mount = kmalloc(sizeof(struct vfs_mount)); + struct vfs_backend *backend = kmalloc(sizeof(struct vfs_backend)); + backend->type = VFS_BACK_ROOT; *mount = (struct vfs_mount){ .prev = NULL, - .prefix = "/tty", - .prefix_len = 4, - .handle = { - .type = HANDLE_SPECIAL_TTY, - }, - };*/ + .prefix = "", + .prefix_len = 0, + .backend = backend, + }; return mount; } |