Skip to content

feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity) - #4105

Merged
oferchen merged 2 commits into
masterfrom
feat/debug-hlink-emissions-2188
May 15, 2026
Merged

oferchen merged 2 commits into
masterfrom
feat/debug-hlink-emissions-2188

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds a protocol::flist::hardlink::trace module that emits the six HLINK debug messages from upstream hlink.c byte-for-byte: the level-3 per-device hashtable announcement and the five level-2 follower-resolution messages (virtual first / waiting for / looking for a leader / found flist match / leader is).
  • Wires the level-3 emission into HardlinkTable::announce_device, called from the generator's hardlink-index assignment so each new device prints exactly once.
  • Wires the level-2 receiver-side emissions into ReceiverContext::create_hardlinks for each follower (looking for a leader / leader is, with virtual first when no leader was recorded).

Test plan

  • cargo nextest run -p protocol --all-features -E 'test(flist::hardlink::trace)' (CI)
  • cargo nextest run -p transfer --all-features -E 'test(hardlink_debug_hlink_leader_emission)' (CI)
  • fmt + clippy on the full workspace (CI)

Refs #2188, #2151.

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.
@github-actions github-actions Bot added the enhancement New feature or request label May 15, 2026
@oferchen
oferchen merged commit 80588ba into master May 15, 2026
38 of 39 checks passed
@oferchen
oferchen deleted the feat/debug-hlink-emissions-2188 branch May 16, 2026 19:50
oferchen added a commit that referenced this pull request May 18, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
oferchen added a commit that referenced this pull request May 18, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
oferchen added a commit that referenced this pull request Aug 24, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
oferchen added a commit that referenced this pull request Aug 24, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant