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.
This commit is contained in:
Andreas Kling 2018-10-17 11:47:14 +02:00
parent b05ed591ab
commit 705832f387
Notes: sideshowbarker 2024-07-19 18:47:06 +09:00
3 changed files with 4 additions and 1 deletions

View file

@ -29,6 +29,7 @@ VFS_OBJS = \
../VirtualFileSystem/FileSystem.o \
../VirtualFileSystem/DiskBackedFileSystem.o \
../VirtualFileSystem/Ext2FileSystem.o \
../VirtualFileSystem/InodeIdentifier.o \
../VirtualFileSystem/VirtualFileSystem.o
AK_OBJS = \

View file

@ -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");

View file

@ -8,7 +8,7 @@
#include <AK/kstdio.h>
#include "sys-errno.h"
#define EXT2_DEBUG
//#define EXT2_DEBUG
RetainPtr<Ext2FileSystem> Ext2FileSystem::create(RetainPtr<DiskDevice>&& device)
{