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

Kernel/VFS: Check that mount-point is not in use

Before committing the mount, verify that this host i-node is not already
a mount-point.
This commit is contained in:
Kristiyan Stoimenov 2022-08-10 18:50:23 +03:00 committed by Brian Gianforcaro
parent 7e245b74f1
commit 9e1bea50ee
2 changed files with 23 additions and 3 deletions

View file

@ -90,6 +90,8 @@ private:
ErrorOr<void> traverse_directory_inode(Inode&, Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)>);
bool mount_point_exists_at_inode(InodeIdentifier inode);
Mount* find_mount_for_host(InodeIdentifier);
Mount* find_mount_for_guest(InodeIdentifier);