FileSystem: Merge symlink following logic into path resolution.

When encountering a symlink, we abandon the custody chain we've been working
on and start over with a new one (by recursing into a new resolution call.)
Caching symlinks in the custody model would be incredibly difficult to get
right with all the extra invalidation it would require, so let's just not.
This commit is contained in:
Andreas Kling 2019-05-31 06:42:49 +02:00
commit e6a8133b0c
Notes: sideshowbarker 2024-07-19 13:49:43 +09:00
2 changed files with 14 additions and 16 deletions

View file

@ -108,7 +108,6 @@ private:
bool is_vfs_root(InodeIdentifier) const;
void traverse_directory_inode(Inode&, Function<bool(const FS::DirectoryEntry&)>);
KResultOr<Retained<Custody>> resolve_symbolic_link(Custody& base, Inode& symlink_inode);
Mount* find_mount_for_host(InodeIdentifier);
Mount* find_mount_for_guest(InodeIdentifier);