mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel: Handle OOM in DiskCache when mounting Ext2 filesystems
Create the disk cache up front, so we can verify it succeeds. Make the KBuffer allocation fail-able, so we can properly handle failure when the user asks up to mount a Ext2 filesystem under OOM conditions.
This commit is contained in:
committed by
Andreas Kling
parent
187c086270
commit
a6db2f985a
Notes:
sideshowbarker
2024-07-18 07:31:41 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/a6db2f985a4 Pull-request: https://github.com/SerenityOS/serenity/pull/9154 Reviewed-by: https://github.com/alimpfard ✅
@@ -15,6 +15,7 @@ public:
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(u64, BlockIndex);
|
||||
|
||||
virtual ~BlockBasedFileSystem() override;
|
||||
virtual bool initialize() override;
|
||||
|
||||
u64 logical_block_size() const { return m_logical_block_size; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user