Repository navigation
docs(daemon): document filter precedence and exchange (#1888) - #3489
Merged
Merged
Conversation
Add docs/daemon/filter-precedence.md covering the three filter rule sources (daemon module config, client CLI, per-directory .rsync-filter), their evaluation order, the wire format, and a worked example showing why a client --include cannot override a daemon-side exclude. Cites build_daemon_filter_rules() in helpers.rs:223, the prepend logic in transfer.rs:868-879, and the wire encoding in wire.rs, with references to upstream clientserver.c:874-893 and exclude.c:1658.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Add docs/daemon/filter-precedence.md covering the three filter rule sources (daemon module config, client CLI, per-directory .rsync-filter), their evaluation order, the wire format, and a worked example showing why a client --include cannot override a daemon-side exclude. Cites build_daemon_filter_rules() in helpers.rs:223, the prepend logic in transfer.rs:868-879, and the wire encoding in wire.rs, with references to upstream clientserver.c:874-893 and exclude.c:1658.
3 tasks
oferchen
added a commit
that referenced
this pull request
Jun 3, 2026
…5394) * test: add --iconv=utf8,latin1 filename round-trip integration test (#3489) Add two integration tests verifying that filenames survive a complete UTF-8 -> ISO-8859-1 -> UTF-8 round-trip through the local-copy iconv path: - iconv_utf8_latin1_round_trip_preserves_filenames: exercises five distinct Latin-1 accented characters (e-acute, n-tilde, u-diaeresis, o-diaeresis, a-grave) across flat files and nested directories. Verifies intermediate Latin-1 encoding and final UTF-8 recovery, plus payload integrity. - iconv_round_trip_trailing_slash_copies_contents: same round-trip but with trailing-slash source operands (content-copy semantics) to cover both from_operands path behaviors. Both tests are gated on cfg(all(target_os = "linux", feature = "iconv")) consistent with the existing iconv_local_copy test file. * style: apply cargo fmt formatting
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…5394) * test: add --iconv=utf8,latin1 filename round-trip integration test (#3489) Add two integration tests verifying that filenames survive a complete UTF-8 -> ISO-8859-1 -> UTF-8 round-trip through the local-copy iconv path: - iconv_utf8_latin1_round_trip_preserves_filenames: exercises five distinct Latin-1 accented characters (e-acute, n-tilde, u-diaeresis, o-diaeresis, a-grave) across flat files and nested directories. Verifies intermediate Latin-1 encoding and final UTF-8 recovery, plus payload integrity. - iconv_round_trip_trailing_slash_copies_contents: same round-trip but with trailing-slash source operands (content-copy semantics) to cover both from_operands path behaviors. Both tests are gated on cfg(all(target_os = "linux", feature = "iconv")) consistent with the existing iconv_local_copy test file. * style: apply cargo fmt formatting
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
docs/daemon/filter-precedence.mddocumenting how filter rules from three sources combine: daemon module config (oc-rsyncd.conf), client CLI (--filter/--include/--exclude/--include-from/--exclude-from), and per-directory.rsync-filtermerge files.--include='secrets/'cannot override a daemon-sideexclude = secrets/.Citations
crates/daemon/src/daemon/sections/module_access/helpers.rs:223—build_daemon_filter_rules()in upstream-mandated order.crates/transfer/src/receiver/transfer.rs:868-879— daemon rules prepended to client wire rules.crates/protocol/src/filters/wire.rs:181, 217—read_filter_list()/write_filter_list()wire format.clientserver.c:874-893(rsync_module()),exclude.c:1658(send_filter_list()).Closes #1888.
Test plan