mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +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:
parent
5307e1bf01
commit
434d77cd43
2 changed files with 6 additions and 0 deletions
|
@ -145,6 +145,11 @@ ErrorOr<void> ProcFSGlobalInode::truncate(u64 size)
|
||||||
return m_associated_component->truncate(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
|
InodeMetadata ProcFSGlobalInode::metadata() const
|
||||||
{
|
{
|
||||||
MutexLocker locker(m_inode_lock);
|
MutexLocker locker(m_inode_lock);
|
||||||
|
|
|
@ -84,6 +84,7 @@ protected:
|
||||||
virtual ErrorOr<void> traverse_as_directory(Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)>) const override;
|
virtual ErrorOr<void> traverse_as_directory(Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)>) const override;
|
||||||
virtual ErrorOr<NonnullLockRefPtr<Inode>> lookup(StringView) override;
|
virtual ErrorOr<NonnullLockRefPtr<Inode>> lookup(StringView) override;
|
||||||
virtual ErrorOr<void> truncate(u64) override final;
|
virtual ErrorOr<void> truncate(u64) override final;
|
||||||
|
virtual ErrorOr<void> update_timestamps(Optional<time_t> atime, Optional<time_t> ctime, Optional<time_t> mtime) override;
|
||||||
|
|
||||||
NonnullLockRefPtr<ProcFSExposedComponent> m_associated_component;
|
NonnullLockRefPtr<ProcFSExposedComponent> m_associated_component;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue