Kernel: Update ErrorOr API and add path find to VFS

These two are done on the same commit since Changes to Shell were
annoying to make work with only one change
This commit is contained in:
Bananymous
2023-02-22 01:23:11 +02:00
parent 9aab67fed8
commit 5d31e89574
5 changed files with 80 additions and 47 deletions

View File

@@ -14,6 +14,8 @@ namespace Kernel
virtual const BAN::RefCounted<Inode> root_inode() const override { return m_root_inode; }
BAN::ErrorOr<BAN::RefCounted<Inode>> from_absolute_path(BAN::StringView);
private:
VirtualFileSystem(BAN::RefCounted<Inode> root_inode)
: m_root_inode(root_inode)