Repository navigation
Optimize rolling checksum multi-byte updates - #1926
Merged
Merged
Conversation
2 of 3 tasks
oferchen
added a commit
that referenced
this pull request
May 2, 2026
Mirrors upstream rsync 3.4.1's am_root tri-state semantics: when --fake-super (or daemon `fake super = yes`) is active, the receiver must demote am_root to the negative sentinel that routes privileged operations (chown, mknod, mkfifo) through the user.rsync.%stat xattr placeholder branch instead of attempting real syscalls. Extracts an `effective_am_root(super_mode, fake_super) -> bool` helper covering the full truth table and rewires `LocalCopyOptions::am_root()` through it. Updates the two combined-flag tests that previously asserted the un-demoted behavior, and adds dedicated truth-table tests at the helper. upstream: options.c:89 - am_root tri-state, -1 is "fake-super" upstream: clientserver.c:1102-1105 - daemon fake super = yes forces -1 upstream: syscall.c do_mknod() - am_root<0 substitutes 0600 placeholder Refs #1926.
oferchen
added a commit
that referenced
this pull request
May 2, 2026
Mirrors upstream rsync 3.4.1's am_root tri-state semantics: when --fake-super (or daemon `fake super = yes`) is active, the receiver must demote am_root to the negative sentinel that routes privileged operations (chown, mknod, mkfifo) through the user.rsync.%stat xattr placeholder branch instead of attempting real syscalls. Extracts an `effective_am_root(super_mode, fake_super) -> bool` helper covering the full truth table and rewires `LocalCopyOptions::am_root()` through it. Updates the two combined-flag tests that previously asserted the un-demoted behavior, and adds dedicated truth-table tests at the helper. upstream: options.c:89 - am_root tri-state, -1 is "fake-super" upstream: clientserver.c:1102-1105 - daemon fake super = yes forces -1 upstream: syscall.c do_mknod() - am_root<0 substitutes 0600 placeholder Refs #1926.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Mirrors upstream rsync 3.4.1's am_root tri-state semantics: when --fake-super (or daemon `fake super = yes`) is active, the receiver must demote am_root to the negative sentinel that routes privileged operations (chown, mknod, mkfifo) through the user.rsync.%stat xattr placeholder branch instead of attempting real syscalls. Extracts an `effective_am_root(super_mode, fake_super) -> bool` helper covering the full truth table and rewires `LocalCopyOptions::am_root()` through it. Updates the two combined-flag tests that previously asserted the un-demoted behavior, and adds dedicated truth-table tests at the helper. upstream: options.c:89 - am_root tri-state, -1 is "fake-super" upstream: clientserver.c:1102-1105 - daemon fake super = yes forces -1 upstream: syscall.c do_mknod() - am_root<0 substitutes 0600 placeholder Refs #1926.
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
RollingChecksum::roll_manywith an aggregated weighted-delta calculation that matches the scalar behaviour while reducing work for long batchesinternal docsTesting
cargo test -p rsync-checksums