aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/kernel.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-02 18:17:35 +0200
committerMarvin Borner2020-05-02 18:17:35 +0200
commite8f1c287a63f0f71fe463f7271834538b45f8c05 (patch)
tree6eebab2d27e610c8eeb130ddfd6a7f858ece411a /src/kernel/kernel.c
parentaa8a8811818331cf511681327e3ba95e456f0d33 (diff)
Some work in the vfs
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r--src/kernel/kernel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c
index c2f0972..40db307 100644
--- a/src/kernel/kernel.c
+++ b/src/kernel/kernel.c
@@ -70,13 +70,13 @@ void kernel_main(uint32_t magic, uint32_t multiboot_address, uint32_t esp)
struct fs_node *test = (struct fs_node *)kmalloc(sizeof(struct fs_node));
strcpy(test->name, "/etc/test");
- ext2_root->open(test);
+ fs_open(test);
uint32_t size = ((struct ext2_file *)test->impl)->inode.size;
char buf[size];
- ext2_root->read(test, 0, size, buf);
+ fs_read(test, 0, size, buf);
buf[size - 1] = '\0';
log("Content of /etc/test: %s", buf);
- ext2_root->close(test);
+ fs_close(test);
dev_stdin();
dev_stdout();