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)
Thu, Oct 1, 4:19 PM
Unknown Object (File)
Wed, Sep 23, 4:44 AM
Unknown Object (File)
Sat, Sep 19, 12:25 PM
Unknown Object (File)
Sep 2 2026, 9:40 AM
Unknown Object (File)
Sep 2 2026, 9:35 AM
Unknown Object (File)
Sep 2 2026, 1:17 AM
Unknown Object (File)
Sep 1 2026, 7:39 PM
Unknown Object (File)
Aug 27 2026, 9:01 AM
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 Not Applicable
Unit
Tests Not Applicable