mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
Kernel: Rename FileDescription::create() => try_create()
This commit is contained in:
parent
31bc9565f8
commit
59335bd8ea
11 changed files with 16 additions and 16 deletions
|
@ -182,7 +182,7 @@ NonnullRefPtr<FileSystem> StorageManagement::root_filesystem() const
|
|||
if (!boot_device_description) {
|
||||
PANIC("StorageManagement: Couldn't find a suitable device to boot from");
|
||||
}
|
||||
auto e2fs = Ext2FS::create(FileDescription::create(boot_device_description.release_nonnull()).value());
|
||||
auto e2fs = Ext2FS::create(FileDescription::try_create(boot_device_description.release_nonnull()).value());
|
||||
if (auto result = e2fs->initialize(); result.is_error()) {
|
||||
PANIC("StorageManagement: Couldn't open root filesystem: {}", result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue