mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
Kernel: Make FileSystem::initialize() return KResult
This forced me to also come up with error codes for a bunch of situations where we'd previously just panic the kernel.
This commit is contained in:
@@ -23,10 +23,12 @@ TmpFS::~TmpFS()
|
||||
{
|
||||
}
|
||||
|
||||
bool TmpFS::initialize()
|
||||
KResult TmpFS::initialize()
|
||||
{
|
||||
m_root_inode = TmpFSInode::create_root(*this);
|
||||
return !m_root_inode.is_null();
|
||||
if (!m_root_inode)
|
||||
return ENOMEM;
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
Inode& TmpFS::root_inode()
|
||||
|
||||
Reference in New Issue
Block a user