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

Kernel/VirtualFileSystem: Allow unmounting via inode and mount path

This pair of information uniquely identifies any mount point, and it can
be used in situations where mount point custodies are not available.
This commit is contained in:
kleines Filmröllchen 2023-06-17 18:17:00 +02:00 committed by Jelle Raaijmakers
parent abc1eaff36
commit 8940552d1d
2 changed files with 6 additions and 2 deletions

View file

@ -62,6 +62,7 @@ public:
ErrorOr<void> bind_mount(Custody& source, Custody& mount_point, int flags);
ErrorOr<void> remount(Custody& mount_point, int new_flags);
ErrorOr<void> unmount(Custody& mount_point);
ErrorOr<void> unmount(Inode& guest_inode, StringView custody_path);
ErrorOr<NonnullRefPtr<OpenFileDescription>> open(Credentials const&, StringView path, int options, mode_t mode, Custody& base, Optional<UidAndGid> = {});
ErrorOr<NonnullRefPtr<OpenFileDescription>> open(Process const&, Credentials const&, StringView path, int options, mode_t mode, Custody& base, Optional<UidAndGid> = {});