Repository navigation
feat(transfer): add --inplace support for remote transfers - #2531
Merged
Merged
Conversation
Write directly to destination files instead of temp-file + rename when --inplace is active. Mirrors upstream receiver.c:855 (O_WRONLY|O_CREAT) and receiver.c:340 (set_file_length truncation after delta application). Changes across the transfer pipeline: - ServerConfig.inplace field with from_flag_string_and_args default - RequestConfig.inplace propagated through receiver pipeline loops - BeginMessage.is_inplace for disk commit thread open-mode selection - Sync path (process_file_response): direct open + skip rename + truncate - Streaming path (process_file_response_streaming): is_inplace in BeginMessage - Disk commit: open_output_file, process_file, process_whole_file handle inplace - CLI server: parse --inplace from ServerLongFlags - Core: wire config.inplace() to ServerConfig for SSH and daemon transfers
oferchen
force-pushed
the
feat/inplace-remote-transfer
branch
from
February 27, 2026 19:00
28e757d to
f77c740
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
Write directly to destination files instead of temp-file + rename when --inplace is active. Mirrors upstream receiver.c:855 (O_WRONLY|O_CREAT) and receiver.c:340 (set_file_length truncation after delta application). Changes across the transfer pipeline: - ServerConfig.inplace field with from_flag_string_and_args default - RequestConfig.inplace propagated through receiver pipeline loops - BeginMessage.is_inplace for disk commit thread open-mode selection - Sync path (process_file_response): direct open + skip rename + truncate - Streaming path (process_file_response_streaming): is_inplace in BeginMessage - Disk commit: open_output_file, process_file, process_whole_file handle inplace - CLI server: parse --inplace from ServerLongFlags - Core: wire config.inplace() to ServerConfig for SSH and daemon transfers
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Write directly to destination files instead of temp-file + rename when --inplace is active. Mirrors upstream receiver.c:855 (O_WRONLY|O_CREAT) and receiver.c:340 (set_file_length truncation after delta application). Changes across the transfer pipeline: - ServerConfig.inplace field with from_flag_string_and_args default - RequestConfig.inplace propagated through receiver pipeline loops - BeginMessage.is_inplace for disk commit thread open-mode selection - Sync path (process_file_response): direct open + skip rename + truncate - Streaming path (process_file_response_streaming): is_inplace in BeginMessage - Disk commit: open_output_file, process_file, process_whole_file handle inplace - CLI server: parse --inplace from ServerLongFlags - Core: wire config.inplace() to ServerConfig for SSH and daemon transfers
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
inplace: booltoServerConfigandRequestConfigto support--inplaceremote transfersDiskCommitThreadto open destination files directly (O_WRONLY) instead of creating temp files when inplace is enabled, matching upstreamreceiver.c:855--inplaceflag through CLI server flag parser, SSH and daemon transfer pathsis_inplacethroughBeginMessageto coordinate receiver pipelineTest plan
cargo clippy --workspace --all-targets --all-features --no-deps -D warningscleanoc-rsync --inplaceagainst upstream rsync 3.4.1--inplaceis active