Skip to content

feat: implement --atimes/-U access time preservation - #2390

Merged
oferchen merged 1 commit into
masterfrom
feature/atimes-preservation
Feb 21, 2026
Merged

oferchen merged 1 commit into
masterfrom
feature/atimes-preservation

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Wire the -U / --atimes flag through the full transfer pipeline
  • Add preserve_atimes to MetadataOptions and LocalCopyOptions builders
  • Parse U flag in ParsedServerFlags
  • Propagate flag via flist reader/writer (with_preserve_atimes)
  • Apply atime from FileEntry in metadata apply (utimensat)
  • Optimize: skip syscall when current atime already matches
  • Wire into daemon_transfer, ssh_transfer, and invocation builders

Test plan

  • All 21,990 tests pass
  • cargo clippy clean
  • cargo fmt clean
  • CI passes on all platforms

Wire the -U / --atimes flag through the full transfer pipeline:
- Add preserve_atimes to MetadataOptions and LocalCopyOptions builders
- Parse 'U' flag in ParsedServerFlags
- Propagate flag via flist reader/writer (with_preserve_atimes)
- Apply atime from FileEntry in metadata apply (utimensat)
- Optimize: skip syscall when current atime already matches
- Wire into daemon_transfer, ssh_transfer, and invocation builders
@github-actions github-actions Bot added the enhancement New feature or request label Feb 21, 2026
@oferchen
oferchen merged commit 51908b3 into master Feb 21, 2026
21 of 31 checks passed
@oferchen
oferchen deleted the feature/atimes-preservation branch February 21, 2026 16:11
oferchen added a commit that referenced this pull request May 1, 2026
Wire the -U / --atimes flag through the full transfer pipeline:
- Add preserve_atimes to MetadataOptions and LocalCopyOptions builders
- Parse 'U' flag in ParsedServerFlags
- Propagate flag via flist reader/writer (with_preserve_atimes)
- Apply atime from FileEntry in metadata apply (utimensat)
- Optimize: skip syscall when current atime already matches
- Wire into daemon_transfer, ssh_transfer, and invocation builders
oferchen added a commit that referenced this pull request May 5, 2026
Wire the -U / --atimes flag through the full transfer pipeline:
- Add preserve_atimes to MetadataOptions and LocalCopyOptions builders
- Parse 'U' flag in ParsedServerFlags
- Propagate flag via flist reader/writer (with_preserve_atimes)
- Apply atime from FileEntry in metadata apply (utimensat)
- Optimize: skip syscall when current atime already matches
- Wire into daemon_transfer, ssh_transfer, and invocation builders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant