Repository navigation
fix: honour --update and --dry-run flags in daemon receiver - #2576
Merged
Merged
Conversation
- Add dest_mtime_newer() helper to compare destination vs source mtime - Skip files with newer dest timestamps when update flag is set (upstream: generator.c:1709) - Skip all filesystem modifications in dry-run mode: directory creation, symlink creation, hardlink creation, and file transfers (upstream: receiver.c:693) - Remove up:update and up:dry-run from KNOWN_FAILURES
Add backup file creation (--backup) to the receiver's file write path. Before renaming a temp file to its destination, the receiver now renames the existing destination to a backup path (default suffix '~'), mirroring upstream backup.c:make_backup(). - Export compute_backup_path() from engine crate for shared path logic - Add BackupConfig and make_backup() helper in disk_commit.rs - Wire backup into both pipelined (disk_commit) and sync transfer paths - Remove up:backup from KNOWN_FAILURES (17 remaining)
Upstream rsync sends backup as compact flag 'b' in the server args string (options.c:2613), but our parse_transfer_flag() was missing this case. This caused up:backup interop failures since the backup flag was never set when receiving from upstream.
oferchen
added a commit
that referenced
this pull request
May 1, 2026
* fix: honour --update and --dry-run flags in daemon receiver - Add dest_mtime_newer() helper to compare destination vs source mtime - Skip files with newer dest timestamps when update flag is set (upstream: generator.c:1709) - Skip all filesystem modifications in dry-run mode: directory creation, symlink creation, hardlink creation, and file transfers (upstream: receiver.c:693) - Remove up:update and up:dry-run from KNOWN_FAILURES * fix: create backup files before overwriting in receiver Add backup file creation (--backup) to the receiver's file write path. Before renaming a temp file to its destination, the receiver now renames the existing destination to a backup path (default suffix '~'), mirroring upstream backup.c:make_backup(). - Export compute_backup_path() from engine crate for shared path logic - Add BackupConfig and make_backup() helper in disk_commit.rs - Wire backup into both pipelined (disk_commit) and sync transfer paths - Remove up:backup from KNOWN_FAILURES (17 remaining) * fix: handle backup 'b' compact flag from upstream rsync Upstream rsync sends backup as compact flag 'b' in the server args string (options.c:2613), but our parse_transfer_flag() was missing this case. This caused up:backup interop failures since the backup flag was never set when receiving from upstream.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
* fix: honour --update and --dry-run flags in daemon receiver - Add dest_mtime_newer() helper to compare destination vs source mtime - Skip files with newer dest timestamps when update flag is set (upstream: generator.c:1709) - Skip all filesystem modifications in dry-run mode: directory creation, symlink creation, hardlink creation, and file transfers (upstream: receiver.c:693) - Remove up:update and up:dry-run from KNOWN_FAILURES * fix: create backup files before overwriting in receiver Add backup file creation (--backup) to the receiver's file write path. Before renaming a temp file to its destination, the receiver now renames the existing destination to a backup path (default suffix '~'), mirroring upstream backup.c:make_backup(). - Export compute_backup_path() from engine crate for shared path logic - Add BackupConfig and make_backup() helper in disk_commit.rs - Wire backup into both pipelined (disk_commit) and sync transfer paths - Remove up:backup from KNOWN_FAILURES (17 remaining) * fix: handle backup 'b' compact flag from upstream rsync Upstream rsync sends backup as compact flag 'b' in the server args string (options.c:2613), but our parse_transfer_flag() was missing this case. This caused up:backup interop failures since the backup flag was never set when receiving from upstream.
2 tasks
oferchen
added a commit
that referenced
this pull request
May 21, 2026
…PIP-3+5 wire-up (#4677) Combined closure note covering three trackers whose deliverables have already shipped or were absorbed into existing design surface: - PIP-2 (#2565): the design doc was supposed to describe the token_loop -> ParallelDeltaApplier migration. That document already exists as docs/design/parallel-receive-delta-default-on.md (shipped in PR #4319 scaffold, extended by PR #4666 default-on flip). Marked completed retroactively. - FFB-3 (#2576): conditional task that only activated if FFB-1 chose Option A or B. FFB-1 (PR #4659) chose Option D - barrier baked into finish_file - so every existing caller already gets the barrier without callsite migration. Marked deferred N-A. - FFB-4 (#2577): explicit flush_workers call at the PIP-3 wire-up site. PIP-3 + PIP-5 (PR #4666 merged) routes through finish_file, which already barriers via Option D. No explicit call needed. Marked satisfied-by-design. Note: FFB-2 implementation (PR #4665, in CI) needed a spin-then-yield fix around finish_file's try_unwrap to close a Windows release-race; future work to restructure DecrementGuard would be FFB-5+ if filed. No source changes.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…PIP-3+5 wire-up (#4677) Combined closure note covering three trackers whose deliverables have already shipped or were absorbed into existing design surface: - PIP-2 (#2565): the design doc was supposed to describe the token_loop -> ParallelDeltaApplier migration. That document already exists as docs/design/parallel-receive-delta-default-on.md (shipped in PR #4319 scaffold, extended by PR #4666 default-on flip). Marked completed retroactively. - FFB-3 (#2576): conditional task that only activated if FFB-1 chose Option A or B. FFB-1 (PR #4659) chose Option D - barrier baked into finish_file - so every existing caller already gets the barrier without callsite migration. Marked deferred N-A. - FFB-4 (#2577): explicit flush_workers call at the PIP-3 wire-up site. PIP-3 + PIP-5 (PR #4666 merged) routes through finish_file, which already barriers via Option D. No explicit call needed. Marked satisfied-by-design. Note: FFB-2 implementation (PR #4665, in CI) needed a spin-then-yield fix around finish_file's try_unwrap to close a Windows release-race; future work to restructure DecrementGuard would be FFB-5+ if filed. No source changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dest_mtime_newer()helper to compare destination vs source mtime, used by--update(-u) to skip files where the destination is already newer (upstream: generator.c:1709)-n): directory creation, symlink creation, hardlink creation, and file transfers (upstream: receiver.c:693)up:updateandup:dry-runfrom KNOWN_FAILURES in interop test registryTest plan
cargo fmt --all -- --checkpassescargo clippy -p transfer --all-features --no-depspasses cleanup:updateandup:dry-runno longer in KNOWN_FAILURES