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

Kernel/ProcFS: Silently ignore attempts to update ProcFS timestamps

We have to override Inode::update_timestamps() for ProcFS inodes,
otherwise we'll get the default behavior of erroring with ENOTIMPL.
This commit is contained in:
Andreas Kling 2022-08-23 00:58:02 +02:00
parent 5307e1bf01
commit 434d77cd43
2 changed files with 6 additions and 0 deletions

View file

@ -145,6 +145,11 @@ ErrorOr<void> ProcFSGlobalInode::truncate(u64 size)
return m_associated_component->truncate(size);
}
ErrorOr<void> ProcFSGlobalInode::update_timestamps(Optional<time_t>, Optional<time_t>, Optional<time_t>)
{
return {};
}
InodeMetadata ProcFSGlobalInode::metadata() const
{
MutexLocker locker(m_inode_lock);