Skip to content

Fix Windows device detection and stabilize message source test - #1609

Merged
oferchen merged 1 commit into
masterfrom
fix-compilation-errors-in-rsync-engine
Oct 29, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-compilation-errors-in-rsync-engine

Conversation

@oferchen

@oferchen oferchen commented Oct 29, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • derive Windows device identifiers from path prefixes to avoid unstable metadata APIs
  • adjust Windows trailing separator detection to iterate without requiring double-ended iterators
  • normalize expected test paths so tracked source tests tolerate the split module layout

Testing

  • cargo check -p rsync-engine
  • cargo test -p rsync-core message::tests::tracked_message_source_propagates_caller_location

@oferchen
oferchen merged commit 5ad8dbe into master Oct 29, 2025
@oferchen
oferchen deleted the fix-compilation-errors-in-rsync-engine branch October 29, 2025 23:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +218 to +222
share.hash(&mut hasher);
Some(hasher.finish())
}
_ => None,
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Windows device IDs ignore junction-mounted volumes

The new Windows branch computes a device identifier solely from the path prefix (Prefix::Disk or Prefix::UNC) instead of querying the metadata’s volume_serial_number. For directories that are volume mount points or junctions (e.g. C:\mount_to_D mounted to D:), the prefix remains C: even though the metadata device is D:. With --one-file-system enabled, both the root and the mounted directory now report the same identifier so traversal no longer skips the mount point, potentially copying entire other volumes. The previous implementation compared the actual volume serial numbers and handled these cases correctly, so this change regresses mount-point detection on Windows.

Useful? React with 👍 / 👎.

oferchen added a commit that referenced this pull request Apr 21, 2026
…er opportunities (#3283)

* refactor: audit WorkQueueSender usage sites and document multi-producer opportunities

Audit all WorkQueueSender usage sites to determine multi-producer needs
(issue #1609). All current sites are correctly single-producer because
the rsync wire protocol is inherently single-stream on the receive side.
The multi-producer feature flag remains forward-looking infrastructure
with no current production use case.

* fix: gate unused imports behind multi-producer feature flag

Arc, AtomicU64, and Ordering are only used in the #[cfg(feature =
"multi-producer")] test, so they must be similarly gated.
oferchen added a commit that referenced this pull request May 1, 2026
…er opportunities (#3283)

* refactor: audit WorkQueueSender usage sites and document multi-producer opportunities

Audit all WorkQueueSender usage sites to determine multi-producer needs
(issue #1609). All current sites are correctly single-producer because
the rsync wire protocol is inherently single-stream on the receive side.
The multi-producer feature flag remains forward-looking infrastructure
with no current production use case.

* fix: gate unused imports behind multi-producer feature flag

Arc, AtomicU64, and Ordering are only used in the #[cfg(feature =
"multi-producer")] test, so they must be similarly gated.
oferchen added a commit that referenced this pull request May 5, 2026
…er opportunities (#3283)

* refactor: audit WorkQueueSender usage sites and document multi-producer opportunities

Audit all WorkQueueSender usage sites to determine multi-producer needs
(issue #1609). All current sites are correctly single-producer because
the rsync wire protocol is inherently single-stream on the receive side.
The multi-producer feature flag remains forward-looking infrastructure
with no current production use case.

* fix: gate unused imports behind multi-producer feature flag

Arc, AtomicU64, and Ordering are only used in the #[cfg(feature =
"multi-producer")] test, so they must be similarly gated.
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