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
commit 434d77cd43
Notes: sideshowbarker 2024-07-17 08:03:10 +09:00
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);