diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-14 14:02:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 15:19:00 +0200 |
commit | d30d776ca46b12d7f4f9b5b7bdbfb247813a94af (patch) | |
tree | 396e08592d2c733fa1414314a1a63f031bd8686e /Kernel/FileSystem/FileSystem.h | |
parent | 46b93174fce7ec46f45529f83672ccdac9dd6079 (diff) | |
download | serenity-d30d776ca46b12d7f4f9b5b7bdbfb247813a94af.zip |
Kernel: Make FileSystem::initialize() return KResult
This forced me to also come up with error codes for a bunch of
situations where we'd previously just panic the kernel.
Diffstat (limited to 'Kernel/FileSystem/FileSystem.h')
-rw-r--r-- | Kernel/FileSystem/FileSystem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/FileSystem.h b/Kernel/FileSystem/FileSystem.h index 04cce7d878..2f511d6daf 100644 --- a/Kernel/FileSystem/FileSystem.h +++ b/Kernel/FileSystem/FileSystem.h @@ -31,7 +31,7 @@ public: static void sync(); static void lock_all(); - virtual bool initialize() = 0; + virtual KResult initialize() = 0; virtual StringView class_name() const = 0; virtual Inode& root_inode() = 0; virtual bool supports_watchers() const { return false; } |