diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-11 00:46:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-11 00:51:06 +0200 |
commit | 6a27de2d946c649af0fe78dfef07f9e183af3af5 (patch) | |
tree | 6b0d6856e0d37517e1341dc48418b0997f844112 /Kernel/FileSystem/VirtualFileSystem.h | |
parent | 79552c91d5812c17914adea09ae2b8a94b153d0e (diff) | |
download | serenity-6a27de2d946c649af0fe78dfef07f9e183af3af5.zip |
Kernel: Make VirtualFileSystem::Mount a top-level class
And move it to its own compilation unit.
Diffstat (limited to 'Kernel/FileSystem/VirtualFileSystem.h')
-rw-r--r-- | Kernel/FileSystem/VirtualFileSystem.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.h b/Kernel/FileSystem/VirtualFileSystem.h index 555d9705ff..58241db6d2 100644 --- a/Kernel/FileSystem/VirtualFileSystem.h +++ b/Kernel/FileSystem/VirtualFileSystem.h @@ -16,6 +16,7 @@ #include <Kernel/FileSystem/FileSystem.h> #include <Kernel/FileSystem/InodeIdentifier.h> #include <Kernel/FileSystem/InodeMetadata.h> +#include <Kernel/FileSystem/Mount.h> #include <Kernel/KResult.h> #include <Kernel/UnveilNode.h> @@ -33,31 +34,6 @@ struct UidAndGid { class VirtualFileSystem { AK_MAKE_ETERNAL public: - class Mount { - public: - Mount(FileSystem&, Custody* host_custody, int flags); - Mount(Inode& source, Custody& host_custody, int flags); - - const Inode* host() const; - Inode* host(); - - const Inode& guest() const { return *m_guest; } - Inode& guest() { return *m_guest; } - - FileSystem const& guest_fs() const { return *m_guest_fs; } - - String absolute_path() const; - - int flags() const { return m_flags; } - void set_flags(int flags) { m_flags = flags; } - - private: - NonnullRefPtr<Inode> m_guest; - NonnullRefPtr<FileSystem> m_guest_fs; - RefPtr<Custody> m_host_custody; - int m_flags; - }; - static void initialize(); static VirtualFileSystem& the(); |