/* * Copyright (c) 2021, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Kernel { class SysFS final : public FileSystem { friend class SysFSInode; friend class SysFSDirectoryInode; public: virtual ~SysFS() override; static ErrorOr> try_create(); virtual ErrorOr initialize() override; virtual StringView class_name() const override { return "SysFS"sv; } virtual Inode& root_inode() override; private: SysFS(); LockRefPtr m_root_inode; }; }