From c20f773c5da757943099a15e61ed9553f4e12893 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 7 Nov 2023 02:36:22 +0200 Subject: [PATCH] Kernel: /tmp is now TmpFS instead of RamFS --- kernel/kernel/FS/VirtualFileSystem.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/kernel/FS/VirtualFileSystem.cpp b/kernel/kernel/FS/VirtualFileSystem.cpp index a023afd5..7fae11b6 100644 --- a/kernel/kernel/FS/VirtualFileSystem.cpp +++ b/kernel/kernel/FS/VirtualFileSystem.cpp @@ -3,8 +3,7 @@ #include #include #include -#include -#include +#include #include #include #include @@ -31,7 +30,7 @@ namespace Kernel MUST(s_instance->mount(root_creds, &ProcFileSystem::get(), "/proc"sv)); - auto* tmpfs = MUST(RamFileSystem::create(1024 * 1024, 0777, 0, 0)); + auto* tmpfs = MUST(TmpFileSystem::create(1024, 0777, 0, 0)); MUST(s_instance->mount(root_creds, tmpfs, "/tmp"sv)); }