summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/mount.c
diff options
context:
space:
mode:
authordzwdz2021-09-04 19:34:51 +0200
committerdzwdz2021-09-04 19:34:51 +0200
commit613de4db61dd99e7d2049b0a303e167fa711030b (patch)
tree84b577c30aac3ac7f8360fcc7aa78f7d29479538 /src/kernel/vfs/mount.c
parentc4531fa5e1aa16b7ba74de2975eadf06b3052b78 (diff)
new vfs impl pt. 1: implement open()
Diffstat (limited to 'src/kernel/vfs/mount.c')
-rw-r--r--src/kernel/vfs/mount.c14
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;
}