Page MenuHomeFreeBSD

fusefs: fix some bugs updating atime during close
ClosedPublic

Authored by asomers on Sep 20 2023, 9:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 14, 9:15 PM
Unknown Object (File)
Mon, Jul 14, 8:12 AM
Unknown Object (File)
Jun 13 2025, 12:18 PM
Unknown Object (File)
Jun 12 2025, 12:20 PM
Unknown Object (File)
May 28 2025, 9:14 PM
Unknown Object (File)
May 25 2025, 9:19 AM
Unknown Object (File)
May 12 2025, 12:29 PM
Unknown Object (File)
May 11 2025, 12:31 PM
Subscribers

Details

Summary

When using cached attributes, we must update a file's atime during
close, if it has been read since the last attribute refresh.

  • Don't update atime if we lack write permissions to the file or if the file system is readonly.
  • If the daemon fails our atime update request for any reason, don't report this as a failure for VOP_CLOSE.

PR: 270749
Reported by: Jamie Landeg-Jones <jamie@catflap.org>
MFC after: 1 week
Sponsored by: Axcient

Test Plan

Unit tests added

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 53659
Build 50550: arc lint + arc unit