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:
parent
88ea152b24
commit
cb97ef5589
4 changed files with 22 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue