aboutsummaryrefslogtreecommitdiff
path: root/kernel/filesystem/include/filesystem/vfs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/filesystem/include/filesystem/vfs.hpp')
-rw-r--r--kernel/filesystem/include/filesystem/vfs.hpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/kernel/filesystem/include/filesystem/vfs.hpp b/kernel/filesystem/include/filesystem/vfs.hpp
deleted file mode 100644
index e16a9618..00000000
--- a/kernel/filesystem/include/filesystem/vfs.hpp
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef TEACH_OS_KERNEL_FILESYSTEM_VFS_HPP
-#define TEACH_OS_KERNEL_FILESYSTEM_VFS_HPP
-
-#include "devices/device.hpp"
-#include "filesystem/custody.hpp"
-#include "filesystem/ext2/ext2_filesystem.hpp"
-#include "filesystem/inode.hpp"
-#include "filesystem/mount.hpp"
-#include "filesystem/open_file_description.hpp"
-
-#include <kstd/memory>
-#include <kstd/vector>
-
-#include <optional>
-#include <string_view>
-
-namespace filesystem
-{
- struct vfs
- {
- auto static init() -> void;
- auto static get() -> vfs &;
-
- ~vfs() = default;
-
- auto open(std::string_view path) -> std::optional<open_file_description>;
-
- private:
- struct device_node_entry
- {
- std::string_view name;
- kstd::shared_ptr<inode> node;
- };
-
- vfs() = default;
- auto make_device_node(kstd::shared_ptr<devices::device> const & device) -> void;
- [[nodiscard]] auto resolve_path(std::string_view path) -> std::optional<custody>;
-
- kstd::shared_ptr<ext2::ext2_filesystem> m_root_fs;
- std::optional<mount> m_root_mount;
- // kstd::vector<mount> m_mounts; // TODO BA-FS26 really needed?
- kstd::vector<std::optional<device_node_entry>> m_device_nodes; // TODO BA-FS26 remove again, use devtempfs
- };
-} // namespace filesystem
-
-#endif \ No newline at end of file