1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 00:32:06 +00:00

Ext2FS: Fail with EMFILE if we would overflow i_links_count

This commit is contained in:
Andreas Kling 2020-02-08 02:26:33 +01:00
parent 88ea152b24
commit cb97ef5589
4 changed files with 22 additions and 16 deletions

View file

@ -151,14 +151,14 @@ int Inode::set_mtime(time_t)
return -ENOTIMPL;
}
int Inode::increment_link_count()
KResult Inode::increment_link_count()
{
return -ENOTIMPL;
return KResult(-ENOTIMPL);
}
int Inode::decrement_link_count()
KResult Inode::decrement_link_count()
{
return -ENOTIMPL;
return KResult(-ENOTIMPL);
}
void Inode::set_vmobject(VMObject& vmobject)