diff options
Diffstat (limited to 'kernel/kernel/filesystem/filesystem.hpp')
| -rw-r--r-- | kernel/kernel/filesystem/filesystem.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/kernel/filesystem/filesystem.hpp b/kernel/kernel/filesystem/filesystem.hpp index cae36967..83f9b54d 100644 --- a/kernel/kernel/filesystem/filesystem.hpp +++ b/kernel/kernel/filesystem/filesystem.hpp @@ -12,6 +12,7 @@ #include <optional> #include <string_view> +#include <utility> namespace kernel::filesystem { @@ -21,6 +22,8 @@ namespace kernel::filesystem //! Filesystem implementations must derive from this class. struct filesystem { + using mount_result = std::pair<kstd::shared_ptr<inode>, kstd::shared_ptr<void>>; + //! Virtual destructor enabling polymorphic destruction. virtual ~filesystem() = default; @@ -37,7 +40,7 @@ namespace kernel::filesystem //! //! @param backing_inode The inode to use as the backing inode for the filesystem. //! @return The root inode of the mounted filesystem on success, and error otherwise. - virtual auto mount(kstd::shared_ptr<inode> const & backing_inode) -> kstd::result<kstd::shared_ptr<inode>> = 0; + virtual auto mount(kstd::shared_ptr<inode> const & backing_inode) -> kstd::result<mount_result> = 0; //! Find a child inode below the given parent inode with the specified name. //! |
