#include "filesystem/mount.hpp" #include "kapi/system.hpp" #include "filesystem/filesystem.hpp" #include namespace filesystem { mount::mount(std::string_view const & path, filesystem * fs) : m_path(path) , m_filesystem(fs) { if (!m_filesystem) { kapi::system::panic("[FILESYSTEM] mount initialized with null filesystem."); } } auto mount::path() const -> std::string_view { return m_path; } auto mount::get_filesystem() const -> filesystem * { return m_filesystem; } } // namespace filesystem