Skip to content

Conversation

@ThomasWaldmann
Copy link
Member

When creating an archive with --atime on platforms without O_NOATIME, opening a file for reading could update atime before we recorded it (thus we archived the updated atime, not the original one).

Capture pre-open path-based-stat atime and use it
if it pre-dates the atime we got from the fd AND
if it refers to same fs object (avoid race condition).

When creating an archive with --atime on platforms
without O_NOATIME, opening a file for reading could
update atime before we recorded it (thus we archived
the updated atime, not the original one).

Capture pre-open path-based-stat atime and use it
if it pre-dates the atime we got from the fd AND
if it refers to same fs object (avoid race condition).
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.09%. Comparing base (15f5923) to head (ec0cb41).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9180   +/-   ##
=======================================
  Coverage   81.08%   81.09%           
=======================================
  Files          78       78           
  Lines       13659    13663    +4     
  Branches     2043     2044    +1     
=======================================
+ Hits        11076    11080    +4     
  Misses       1910     1910           
  Partials      673      673           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann
Copy link
Member Author

difficult to test in master: windows is too broken, lots of fail in cygwin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant