From 705832f3873c335eae38917fcca2e48bbb8e3354 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 17 Oct 2018 11:47:14 +0200 Subject: [PATCH] List the root directory after mounting /. So cool that it works! It's spewing out a bunch of terminal escape sequences that the OS console obviously doesn't support, but we'll get there too. --- Kernel/Makefile | 1 + Kernel/init.cpp | 2 ++ VirtualFileSystem/Ext2FileSystem.cpp | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Kernel/Makefile b/Kernel/Makefile index 63041a0b5b1..b66032e407b 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -29,6 +29,7 @@ VFS_OBJS = \ ../VirtualFileSystem/FileSystem.o \ ../VirtualFileSystem/DiskBackedFileSystem.o \ ../VirtualFileSystem/Ext2FileSystem.o \ + ../VirtualFileSystem/InodeIdentifier.o \ ../VirtualFileSystem/VirtualFileSystem.o AK_OBJS = \ diff --git a/Kernel/init.cpp b/Kernel/init.cpp index bc9670ce7b6..723770fc4db 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -152,6 +152,8 @@ void init() // new Task(motd_main, "motd", IPC::Handle::MotdTask, Task::Ring0); new Task(user_main, "user", IPC::Handle::UserTask, Task::Ring3); + vfs->listDirectory("/"); + // The idle task will spend its eternity here for now. for (;;) { asm("hlt"); diff --git a/VirtualFileSystem/Ext2FileSystem.cpp b/VirtualFileSystem/Ext2FileSystem.cpp index 19b150848cf..8e0dc9b87bf 100644 --- a/VirtualFileSystem/Ext2FileSystem.cpp +++ b/VirtualFileSystem/Ext2FileSystem.cpp @@ -8,7 +8,7 @@ #include #include "sys-errno.h" -#define EXT2_DEBUG +//#define EXT2_DEBUG RetainPtr Ext2FileSystem::create(RetainPtr&& device) {