diff options
| author | Lukas Oesch <lukas.oesch@ost.ch> | 2026-03-17 19:48:59 +0100 |
|---|---|---|
| committer | Lukas Oesch <lukas.oesch@ost.ch> | 2026-03-17 19:48:59 +0100 |
| commit | e4291ea7c01cad04a02ca3f577dba9ccbadad110 (patch) | |
| tree | 4af08f01820bf13fba8dda7646d036bcbdd3df53 /kernel/filesystem/include/filesystem/vfs.hpp | |
| parent | 59504cfd677dd3e9d9ddb0deea4df7614efedb84 (diff) | |
| parent | fde097681f96e2c6f23ecd71a5c0037acb3ac79e (diff) | |
| download | kernel-e4291ea7c01cad04a02ca3f577dba9ccbadad110.tar.xz kernel-e4291ea7c01cad04a02ca3f577dba9ccbadad110.zip | |
Merge branch 'tidy-up-folder-structure' into 'develop-BA-FS26'
rename files to snake_case (temp_device part1 -> renamed to device later, due...
See merge request teachos/kernel!12
Diffstat (limited to 'kernel/filesystem/include/filesystem/vfs.hpp')
| -rw-r--r-- | kernel/filesystem/include/filesystem/vfs.hpp | 46 |
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 |
