1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

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
parent 6b585f9dd7
commit e6a8133b0c
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);