Repository navigation
Fix Windows device detection and stabilize message source test - #1609
Conversation
There was a problem hiding this comment.
💡 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".
| share.hash(&mut hasher); | ||
| Some(hasher.finish()) | ||
| } | ||
| _ => None, | ||
| }, |
There was a problem hiding this comment.
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 👍 / 👎.
…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.
…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.
…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.
Summary
Testing