mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:35:07 +00:00
Kernel: Make Inode::set_{a,c,m}time return KResult
This exposed some missing error propagation, which this patch also takes care of.
This commit is contained in:
parent
a5f385f052
commit
cd9be1733c
8 changed files with 42 additions and 44 deletions
|
@ -335,7 +335,7 @@ KResult TmpFSInode::truncate(u64 size)
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
int TmpFSInode::set_atime(time_t time)
|
||||
KResult TmpFSInode::set_atime(time_t time)
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
|
||||
|
@ -345,7 +345,7 @@ int TmpFSInode::set_atime(time_t time)
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
int TmpFSInode::set_ctime(time_t time)
|
||||
KResult TmpFSInode::set_ctime(time_t time)
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
|
||||
|
@ -354,11 +354,11 @@ int TmpFSInode::set_ctime(time_t time)
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
int TmpFSInode::set_mtime(time_t time)
|
||||
KResult TmpFSInode::set_mtime(time_t t)
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
|
||||
m_metadata.mtime = time;
|
||||
m_metadata.mtime = t;
|
||||
notify_watchers();
|
||||
return KSuccess;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue