Repository navigation
Sanitize fallback bwlimit argument - #1148
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".
| let fallback_bwlimit = match (bandwidth_limit.as_ref(), bwlimit.as_ref()) { | ||
| (Some(limit), _) => Some(OsString::from(limit.bytes_per_second().get().to_string())), | ||
| (None, Some(_)) => Some(OsString::from("0")), | ||
| (None, None) => None, |
There was a problem hiding this comment.
Convert bwlimit to KiB for fallback invocation
The new fallback_bwlimit serialises BandwidthLimit using limit.bytes_per_second().get() before passing it to the remote fallback, but upstream rsync interprets plain numeric --bwlimit arguments as kilobytes per second. This means a user-specified limit is now multiplied by roughly 1024 when the fallback binary is invoked (e.g. --bwlimit=1M becomes --bwlimit 1048576, i.e. ~1 GB/s instead of 1 MB/s). Any remote transfer that hits the fallback path will ignore the user’s intended cap. The value should be converted to KiB/s (or the original text preserved) before forwarding.
Useful? React with 👍 / 👎.
Document the Windows ERROR_DISK_FULL test plan for the IOCP disk-commit path: VHD-backed limited-capacity volume, fatal error categorisation, completion-port drain on failure, and exit-code mapping to RERR_FILEIO. Mirrors the Linux ENOSPC coverage filed under #1148.
Document the Windows ERROR_DISK_FULL test plan for the IOCP disk-commit path: VHD-backed limited-capacity volume, fatal error categorisation, completion-port drain on failure, and exit-code mapping to RERR_FILEIO. Mirrors the Linux ENOSPC coverage filed under #1148.
Document the Windows ERROR_DISK_FULL test plan for the IOCP disk-commit path: VHD-backed limited-capacity volume, fatal error categorisation, completion-port drain on failure, and exit-code mapping to RERR_FILEIO. Mirrors the Linux ENOSPC coverage filed under #1148.
Summary
--bwlimitvalue passed to remote fallback invocations so older rsync binaries accept the argument0when the fallback path is usedRemoteFallbackArgsTesting