diff --git a/kernel/include/kernel/FS/FileSystem.h b/kernel/include/kernel/FS/FileSystem.h index 9435870a98..673d596c38 100644 --- a/kernel/include/kernel/FS/FileSystem.h +++ b/kernel/include/kernel/FS/FileSystem.h @@ -9,6 +9,7 @@ namespace Kernel class FileSystem { public: + virtual ~FileSystem() {} virtual BAN::RefPtr root_inode() = 0; }; diff --git a/kernel/kernel/Process.cpp b/kernel/kernel/Process.cpp index 9d580a1464..9325768a59 100644 --- a/kernel/kernel/Process.cpp +++ b/kernel/kernel/Process.cpp @@ -106,7 +106,9 @@ namespace Kernel BAN::ErrorOr Process::mount(BAN::StringView partition, BAN::StringView path) { - TRY(VirtualFileSystem::get().mount(partition, path)); + auto absolute_partition = TRY(absolute_path_of(partition)); + auto absolute_path = TRY(absolute_path_of(path)); + TRY(VirtualFileSystem::get().mount(absolute_partition, absolute_path)); return {}; }