Repository navigation
feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths - #4099
Merged
Merged
Conversation
Refs #2159, parent G5 meta #2151. Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring upstream rsync 3.4.1: - NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236). Wired into the local-copy executor (three sites: --link-dest, cached-inode link, reference-directory link) and the receiver hardlink follower path. - NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream: rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into the local-copy metadata-only skip path, the local-copy reference-directory `Skip` decision, the receiver hardlink already-linked branch, and the receiver symlink up-to-date branch. Adds byte-for-byte pinning tests in both crates verifying the emission shape and the level gate (suppressed below the configured NAME level).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…ths (#4099) * feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths Refs #2159, parent G5 meta #2151. Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring upstream rsync 3.4.1: - NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236). Wired into the local-copy executor (three sites: --link-dest, cached-inode link, reference-directory link) and the receiver hardlink follower path. - NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream: rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into the local-copy metadata-only skip path, the local-copy reference-directory `Skip` decision, the receiver hardlink already-linked branch, and the receiver symlink up-to-date branch. Adds byte-for-byte pinning tests in both crates verifying the emission shape and the level gate (suppressed below the configured NAME level). * style: apply rustfmt to NAME emission test imports and macro calls
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…ths (#4099) * feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths Refs #2159, parent G5 meta #2151. Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring upstream rsync 3.4.1: - NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236). Wired into the local-copy executor (three sites: --link-dest, cached-inode link, reference-directory link) and the receiver hardlink follower path. - NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream: rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into the local-copy metadata-only skip path, the local-copy reference-directory `Skip` decision, the receiver hardlink already-linked branch, and the receiver symlink up-to-date branch. Adds byte-for-byte pinning tests in both crates verifying the emission shape and the level gate (suppressed below the configured NAME level). * style: apply rustfmt to NAME emission test imports and macro calls
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…ths (#4099) * feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths Refs #2159, parent G5 meta #2151. Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring upstream rsync 3.4.1: - NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236). Wired into the local-copy executor (three sites: --link-dest, cached-inode link, reference-directory link) and the receiver hardlink follower path. - NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream: rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into the local-copy metadata-only skip path, the local-copy reference-directory `Skip` decision, the receiver hardlink already-linked branch, and the receiver symlink up-to-date branch. Adds byte-for-byte pinning tests in both crates verifying the emission shape and the level gate (suppressed below the configured NAME level). * style: apply rustfmt to NAME emission test imports and macro calls
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…ths (#4099) * feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths Refs #2159, parent G5 meta #2151. Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring upstream rsync 3.4.1: - NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236). Wired into the local-copy executor (three sites: --link-dest, cached-inode link, reference-directory link) and the receiver hardlink follower path. - NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream: rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into the local-copy metadata-only skip path, the local-copy reference-directory `Skip` decision, the receiver hardlink already-linked branch, and the receiver symlink up-to-date branch. Adds byte-for-byte pinning tests in both crates verifying the emission shape and the level gate (suppressed below the configured NAME level). * style: apply rustfmt to NAME emission test imports and macro calls
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
Wires upstream rsync's
--info=NAMEper-file action lines into oc-rsync's copy/link/del action sites. Refs #2159, parent G5 meta #2151."%s => %s"for hard-link creation (upstream:hlink.c:236). Added at the three local-copy hard-link sites (--link-dest, cached-inode reuse, reference-directory link) and at the receiver's hardlink follower create site."%s is uptodate"for already-current destinations (upstream:rsync.c:672-676,generator.c:1010/1133,hlink.c:223). Added at the local-copy metadata-only skip path, the local-copy reference-directorySkipdecision, the receiver hardlink already-linked branch, and the receiver symlink up-to-date branch.info_log!(Del, 1, "deleting ...")matching upstreamlog.c:864-868; no NAME emission applies (upstream gateslog_deleteonINFO_GTE(DEL, 1)).Each emission cites the upstream file and line. The
info_log!macro gates formatting on the configured flag level so emissions cost zero when disabled.Test plan
crates/engine/src/local_copy/executor/file/copy/links.rsfor the NAME 1=>and NAME 2is uptodateshapes and level-gate suppression.crates/transfer/src/receiver/directory/links.rscovering the hardlink follower NAME 1/2 emissions and the level-zero suppression case.