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
Notes: sideshowbarker 2024-07-19 09:32:13 +09:00
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)