mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Kernel: Tidy up Ext2FS construction a bit
This commit is contained in:
parent
47bfbe343b
commit
36725228fa
Notes:
sideshowbarker
2024-07-18 04:37:32 +09:00
Author: https://github.com/awesomekling
Commit: 36725228fa
4 changed files with 5 additions and 5 deletions
|
@ -72,7 +72,7 @@ KResultOr<FlatPtr> Process::sys$mount(Userspace<const Syscall::SC_mount_params*>
|
|||
|
||||
dbgln("mount: attempting to mount {} on {}", description->absolute_path(), target);
|
||||
|
||||
fs = Ext2FS::create(*description);
|
||||
fs = TRY(Ext2FS::try_create(*description));
|
||||
} else if (fs_type == "9p"sv || fs_type == "Plan9FS"sv) {
|
||||
if (description_or_error.is_error())
|
||||
return EBADF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue