mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +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:
parent
7e245b74f1
commit
9e1bea50ee
Notes:
sideshowbarker
2024-07-17 08:19:42 +09:00
Author: https://github.com/boki1 🔰
Commit: 9e1bea50ee
Pull-request: https://github.com/SerenityOS/serenity/pull/14820
Reviewed-by: https://github.com/bgianfo ✅
2 changed files with 23 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue