Repository navigation
Conversation
oferchen
added a commit
that referenced
this pull request
Nov 15, 2026
…rd-link detection (#277) (#8387) ## Summary - **#311 (`crates/platform/src/signal.rs`):** Factor Windows console control event dispatch out of the `unsafe extern "system" fn handler` into `dispatch_console_ctrl(ctrl_type, shutdown, graceful) -> bool` with compile-time `const` assertions against Win32 `CTRL_*_EVENT` constants and cross-platform unit tests. - **#277 (`crates/fast_io/src/same_fs.rs`, `crates/engine/src/local_copy/hard_links/windows.rs`, `crates/engine/src/local_copy/executor/file/copy/links.rs`):** - Add `fast_io::same_fs::FileIdentity` and `file_identity(path)` sharing a single `windows_file_info` (`GetFileInformationByHandle`) helper on Windows and `symlink_metadata` on Unix. - Implement Windows `HardLinkTracker` (`existing_target_for_path` / `record_for_path`) keyed by `(volume_id, file_index)` when `nlink > 1`, and wire `source` at local-copy call sites. - Implement `is_already_hardlinked(destination, target)` via `fast_io::same_fs::file_identity` on both Unix and Windows. - Note from audit: **#407** (`test_copy_partial_eof` temp-file pid-unique naming) was already fixed in `7bc2964a4` (#8139), and **#353** (required Windows CI full workspace test surface) landed in `c88299623` (#8316). ## Verification - `cargo fmt --all -- --check` - `cargo test --locked -p platform`: 88 passed, 0 failed - `cargo test --locked -p fast_io --lib same_fs`: 6 passed, 0 failed (1111 filtered out) - `cargo test --locked -p engine --lib local_copy::hard_links`: 50 passed, 0 failed (4559 filtered out) - `cargo clippy --locked -p platform -p fast_io -p engine --all-targets -- -D warnings`
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
Message::with_roleandMessage::with_sourceas#[must_use]to prevent silently discarding trailer metadata during chainingTesting
Parity