Skip to content

Attach source trailers to daemon configuration errors - #2144

Merged
oferchen merged 1 commit into
masterfrom
achieve-behavioral-parity-with-rsync-3.4.1
Nov 14, 2025
Merged

oferchen merged 1 commit into
masterfrom
achieve-behavioral-parity-with-rsync-3.4.1

Conversation

@oferchen

@oferchen oferchen commented Nov 14, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • ensure daemon configuration parsing and I/O diagnostics use rsync_error! so they carry tracked source locations and daemon roles
  • update network error reporting to attach the same trailers for socket failures

Testing

  • cargo test -p daemon

[Codex Task](

@oferchen
oferchen merged commit 6d2c2f7 into master Nov 14, 2025
@oferchen
oferchen deleted the achieve-behavioral-parity-with-rsync-3.4.1 branch November 14, 2025 11:05
oferchen added a commit that referenced this pull request May 14, 2026
Upstream rsync 3.4.1 negotiates the CF_INPLACE_PARTIAL_DIR capability
bit (compat.c:117 `#define CF_INPLACE_PARTIAL_DIR (1<<6)`, enabled at
compat.c:777-778 when both peers advertise the 'I' capability char).
With that bit set, the receiver enables per-file inplace for basis
files retrieved from the partial directory, so the otherwise
conflicting --inplace/--append plus --partial-dir combination runs
successfully.

Add ClientConfigBuilder::validate_with_capabilities alongside the
strict validate() default. The capability-aware variant accepts the
pair when the negotiated bitfield contains
CompatibilityFlags::INPLACE_PARTIAL_DIR; the strict default keeps the
upstream parse-time rejection (options.c:2406-2414) for callers that
have not yet seen the negotiated bits.

Pin the wire encoding for CF_INPLACE_PARTIAL_DIR alone (0x40) and
combined with CF_INC_RECURSE (0x41) so future varint refactors cannot
silently drift from upstream's write_varint payload.

Resolves G2 in
docs/audits/compatibility-flags-mutual-exclusion-matrix.md.
Refs #2142, #2143, #2144.
oferchen added a commit that referenced this pull request May 18, 2026
Upstream rsync 3.4.1 negotiates the CF_INPLACE_PARTIAL_DIR capability
bit (compat.c:117 `#define CF_INPLACE_PARTIAL_DIR (1<<6)`, enabled at
compat.c:777-778 when both peers advertise the 'I' capability char).
With that bit set, the receiver enables per-file inplace for basis
files retrieved from the partial directory, so the otherwise
conflicting --inplace/--append plus --partial-dir combination runs
successfully.

Add ClientConfigBuilder::validate_with_capabilities alongside the
strict validate() default. The capability-aware variant accepts the
pair when the negotiated bitfield contains
CompatibilityFlags::INPLACE_PARTIAL_DIR; the strict default keeps the
upstream parse-time rejection (options.c:2406-2414) for callers that
have not yet seen the negotiated bits.

Pin the wire encoding for CF_INPLACE_PARTIAL_DIR alone (0x40) and
combined with CF_INC_RECURSE (0x41) so future varint refactors cannot
silently drift from upstream's write_varint payload.

Resolves G2 in
docs/audits/compatibility-flags-mutual-exclusion-matrix.md.
Refs #2142, #2143, #2144.
oferchen added a commit that referenced this pull request May 18, 2026
Upstream rsync 3.4.1 negotiates the CF_INPLACE_PARTIAL_DIR capability
bit (compat.c:117 `#define CF_INPLACE_PARTIAL_DIR (1<<6)`, enabled at
compat.c:777-778 when both peers advertise the 'I' capability char).
With that bit set, the receiver enables per-file inplace for basis
files retrieved from the partial directory, so the otherwise
conflicting --inplace/--append plus --partial-dir combination runs
successfully.

Add ClientConfigBuilder::validate_with_capabilities alongside the
strict validate() default. The capability-aware variant accepts the
pair when the negotiated bitfield contains
CompatibilityFlags::INPLACE_PARTIAL_DIR; the strict default keeps the
upstream parse-time rejection (options.c:2406-2414) for callers that
have not yet seen the negotiated bits.

Pin the wire encoding for CF_INPLACE_PARTIAL_DIR alone (0x40) and
combined with CF_INC_RECURSE (0x41) so future varint refactors cannot
silently drift from upstream's write_varint payload.

Resolves G2 in
docs/audits/compatibility-flags-mutual-exclusion-matrix.md.
Refs #2142, #2143, #2144.
oferchen added a commit that referenced this pull request Aug 24, 2026
Upstream rsync 3.4.1 negotiates the CF_INPLACE_PARTIAL_DIR capability
bit (compat.c:117 `#define CF_INPLACE_PARTIAL_DIR (1<<6)`, enabled at
compat.c:777-778 when both peers advertise the 'I' capability char).
With that bit set, the receiver enables per-file inplace for basis
files retrieved from the partial directory, so the otherwise
conflicting --inplace/--append plus --partial-dir combination runs
successfully.

Add ClientConfigBuilder::validate_with_capabilities alongside the
strict validate() default. The capability-aware variant accepts the
pair when the negotiated bitfield contains
CompatibilityFlags::INPLACE_PARTIAL_DIR; the strict default keeps the
upstream parse-time rejection (options.c:2406-2414) for callers that
have not yet seen the negotiated bits.

Pin the wire encoding for CF_INPLACE_PARTIAL_DIR alone (0x40) and
combined with CF_INC_RECURSE (0x41) so future varint refactors cannot
silently drift from upstream's write_varint payload.

Resolves G2 in
docs/audits/compatibility-flags-mutual-exclusion-matrix.md.
Refs #2142, #2143, #2144.
oferchen added a commit that referenced this pull request Aug 24, 2026
Upstream rsync 3.4.1 negotiates the CF_INPLACE_PARTIAL_DIR capability
bit (compat.c:117 `#define CF_INPLACE_PARTIAL_DIR (1<<6)`, enabled at
compat.c:777-778 when both peers advertise the 'I' capability char).
With that bit set, the receiver enables per-file inplace for basis
files retrieved from the partial directory, so the otherwise
conflicting --inplace/--append plus --partial-dir combination runs
successfully.

Add ClientConfigBuilder::validate_with_capabilities alongside the
strict validate() default. The capability-aware variant accepts the
pair when the negotiated bitfield contains
CompatibilityFlags::INPLACE_PARTIAL_DIR; the strict default keeps the
upstream parse-time rejection (options.c:2406-2414) for callers that
have not yet seen the negotiated bits.

Pin the wire encoding for CF_INPLACE_PARTIAL_DIR alone (0x40) and
combined with CF_INC_RECURSE (0x41) so future varint refactors cannot
silently drift from upstream's write_varint payload.

Resolves G2 in
docs/audits/compatibility-flags-mutual-exclusion-matrix.md.
Refs #2142, #2143, #2144.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant