diff options
| author | Lukas Oesch <lukas.oesch@ost.ch> | 2026-05-11 21:16:55 +0200 |
|---|---|---|
| committer | Lukas Oesch <lukas.oesch@ost.ch> | 2026-05-11 21:16:55 +0200 |
| commit | 5853b580c74411ecf196d241449411e0d01f0532 (patch) | |
| tree | 39efc6b7bc14da1c1c15a1b7993aadcc23848ca5 /kernel/include | |
| parent | 0ffee4e5dbc20dd7f1f7991d1f8dab698fc9b7a0 (diff) | |
| parent | c958b72922b89fff35c0b8e0bbf21ad42a667022 (diff) | |
| download | kernel-5853b580c74411ecf196d241449411e0d01f0532.tar.xz kernel-5853b580c74411ecf196d241449411e0d01f0532.zip | |
Merge branch 'refactor-dentry-get-full-path' into 'develop-BA-FS26'
Refactor get_full_path remove recursion
See merge request teachos/kernel!31
Diffstat (limited to 'kernel/include')
| -rw-r--r-- | kernel/include/kernel/filesystem/dentry.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/include/kernel/filesystem/dentry.hpp b/kernel/include/kernel/filesystem/dentry.hpp index bd62735..226f2b9 100644 --- a/kernel/include/kernel/filesystem/dentry.hpp +++ b/kernel/include/kernel/filesystem/dentry.hpp @@ -34,7 +34,7 @@ namespace kernel::filesystem @param inode The associated inode for this dentry. @param name The name of the dentry (optional). */ - dentry(kstd::shared_ptr<dentry> const & parent, kstd::shared_ptr<inode> const & inode, std::string_view name = {}); + dentry(kstd::shared_ptr<dentry> const & parent, kstd::shared_ptr<inode> const & inode, std::string_view name); /** @brief Get the associated inode. @@ -58,7 +58,7 @@ namespace kernel::filesystem @brief Get the full path of the dentry by traversing up to the root. @return The full path of the dentry. */ - [[nodiscard]] auto get_full_path() const -> kstd::string; + [[nodiscard]] auto get_absolute_path() const -> kstd::string; /** @brief Add a @p child dentry. |
