Kernel: Symlinks are now working

We still have to implement loop or depth detection
This commit is contained in:
Bananymous
2023-06-02 11:43:46 +03:00
parent efb3271588
commit 7bbdee6cc4
4 changed files with 49 additions and 29 deletions

View File

@@ -25,7 +25,7 @@ namespace Kernel
BAN::RefPtr<Inode> inode;
BAN::String canonical_path;
};
BAN::ErrorOr<File> file_from_absolute_path(BAN::StringView, bool follow_links);
BAN::ErrorOr<File> file_from_absolute_path(BAN::StringView, bool follow_link);
private:
VirtualFileSystem() = default;
@@ -39,7 +39,7 @@ namespace Kernel
MountPoint* mount_from_root_inode(BAN::RefPtr<Inode>);
private:
RecursiveSpinLock m_lock;
SpinLock m_lock;
FileSystem* m_root_fs = nullptr;
BAN::Vector<MountPoint> m_mount_points;
};