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)
Wed, Nov 6, 2:15 PM
Unknown Object (File)
Wed, Nov 6, 1:22 AM
Unknown Object (File)
Fri, Oct 18, 9:41 AM
Unknown Object (File)
Thu, Oct 17, 9:05 AM
Unknown Object (File)
Thu, Oct 17, 1:14 AM
Unknown Object (File)
Tue, Oct 15, 9:07 PM
Unknown Object (File)
Tue, Oct 15, 12:47 AM
Unknown Object (File)
Mon, Oct 14, 7:25 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