diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-28 21:25:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-29 01:09:19 +0200 |
commit | 59335bd8eaf7c4f11bb5a9ab96373dfe8eca0893 (patch) | |
tree | 12dd819aad4fcbdff12098c093615e58062cd06a /Kernel/Storage | |
parent | 31bc9565f8a4afa5abfa3d50f4b02cdc697f26b1 (diff) | |
download | serenity-59335bd8eaf7c4f11bb5a9ab96373dfe8eca0893.zip |
Kernel: Rename FileDescription::create() => try_create()
Diffstat (limited to 'Kernel/Storage')
-rw-r--r-- | Kernel/Storage/StorageManagement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Storage/StorageManagement.cpp b/Kernel/Storage/StorageManagement.cpp index bb15f4c680..9b53b991e5 100644 --- a/Kernel/Storage/StorageManagement.cpp +++ b/Kernel/Storage/StorageManagement.cpp @@ -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); } |