1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +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

@ -84,6 +84,7 @@ protected:
virtual ErrorOr<void> traverse_as_directory(Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)>) const override;
virtual ErrorOr<NonnullLockRefPtr<Inode>> lookup(StringView) override;
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;
};