diff options
Diffstat (limited to 'kernel/kernel/filesystem/filesystem.hpp')
| -rw-r--r-- | kernel/kernel/filesystem/filesystem.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/kernel/kernel/filesystem/filesystem.hpp b/kernel/kernel/filesystem/filesystem.hpp index f18422b2..dccc9434 100644 --- a/kernel/kernel/filesystem/filesystem.hpp +++ b/kernel/kernel/filesystem/filesystem.hpp @@ -12,7 +12,6 @@ #include <optional> #include <string_view> -#include <utility> namespace kernel::filesystem { @@ -25,14 +24,11 @@ namespace kernel::filesystem //! Virtual destructor enabling polymorphic destruction. virtual ~filesystem() = default; - //! Probes the given inode to determine if it contains a recognizable filesystem, and if so, mount it. + //! Probes the given inode to determine if it contains a recognizable filesystem. //! - //! @warning This function panics if @p backing_inode is null. - //! - //! @param backing_inode The inode to probe and mount. - //! @return A pointer to the mounted filesystem and the root of it on success, an error otherwise. - auto static probe_and_mount(kstd::shared_ptr<inode> const & backing_inode) - -> kstd::result<std::pair<kstd::shared_ptr<filesystem>, kstd::shared_ptr<inode>>>; + //! @param backing_inode The inode to probe and mount, if any. + //! @return A pointer to the instantiated filesystem and the root of it on success, an error otherwise. + auto static probe(kstd::shared_ptr<inode> const & backing_inode) -> kstd::result<kstd::shared_ptr<filesystem>>; //! Initializes the filesystem with the given inode. //! |
