1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

Kernel: Tidy up VirtualFileSystem::mount_root() a little bit

- Return KResult instead of bool
- Use TRY()
This commit is contained in:
Andreas Kling 2021-09-05 14:46:44 +02:00
parent b0f2acbd91
commit 71187d865e
Notes: sideshowbarker 2024-07-18 04:43:10 +09:00
3 changed files with 7 additions and 10 deletions

View file

@ -42,7 +42,7 @@ public:
VirtualFileSystem();
~VirtualFileSystem();
bool mount_root(FileSystem&);
KResult mount_root(FileSystem&);
KResult mount(FileSystem&, Custody& mount_point, int flags);
KResult bind_mount(Custody& source, Custody& mount_point, int flags);
KResult remount(Custody& mount_point, int new_flags);