diff options
author | Liav A <liavalb@gmail.com> | 2022-05-28 15:42:03 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-29 19:31:02 +0100 |
commit | 58acdce41f60fec39bd09838ca492a21dd0ea5bb (patch) | |
tree | ea123713aa2fafbaf8d11ced5a599fd369aef789 /Kernel/FileSystem/ProcFS.h | |
parent | 4c588441e318e2d0d238fe802ba010f838078aa6 (diff) | |
download | serenity-58acdce41f60fec39bd09838ca492a21dd0ea5bb.zip |
Kernel/FileSystem: Simplify even more the mount syscall
As with the previous commit, we put a distinction between filesystems
that require a file description and those which don't, but now in a much
more readable mechanism - all initialization properties as well as the
create static method are grouped to create the FileSystemInitializer
structure. Then when we need to initialize an instance, we iterate over
a table of these structures, checking for matching structure and then
validating the given arguments from userspace against the requirements
to ensure we can create a valid instance of the requested filesystem.
Diffstat (limited to 'Kernel/FileSystem/ProcFS.h')
-rw-r--r-- | Kernel/FileSystem/ProcFS.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/ProcFS.h b/Kernel/FileSystem/ProcFS.h index 97d5c9051b..63811e31e1 100644 --- a/Kernel/FileSystem/ProcFS.h +++ b/Kernel/FileSystem/ProcFS.h @@ -28,7 +28,7 @@ class ProcFS final : public FileSystem { public: virtual ~ProcFS() override; - static ErrorOr<NonnullRefPtr<ProcFS>> try_create(); + static ErrorOr<NonnullRefPtr<FileSystem>> try_create(); virtual ErrorOr<void> initialize() override; virtual StringView class_name() const override { return "ProcFS"sv; } |