summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/VirtualFileSystem.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 00:46:06 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 00:51:06 +0200
commit6a27de2d946c649af0fe78dfef07f9e183af3af5 (patch)
tree6b0d6856e0d37517e1341dc48418b0997f844112 /Kernel/FileSystem/VirtualFileSystem.h
parent79552c91d5812c17914adea09ae2b8a94b153d0e (diff)
downloadserenity-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.h26
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();