Add CLI debug flag handling and propagate to fallback#1084
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".
| const SUPPORTED_OPTIONS_LIST: &str = "--help/-h, --version/-V, --daemon, --dry-run/-n, --list-only, --archive/-a, --delete/--del, --delete-before, --delete-during, --delete-delay, --delete-after, --checksum/-c, --size-only, --ignore-existing, --exclude, --exclude-from, --include, --include-from, --filter (including exclude-if-present=FILE), --files-from, --password-file, --no-motd, --from0, --bwlimit, --timeout, --protocol, --compress/-z, --no-compress, --compress-level, --info, --debug, --verbose/-v, --progress, --no-progress, --msgs2stderr, --itemize-changes/-i, --out-format, --stats, --partial, --partial-dir, --no-partial, --remove-source-files, --remove-sent-files, --inplace, --no-inplace, --whole-file/-W, --no-whole-file, -P, --sparse/-S, --no-sparse, --copy-links/-L, --copy-dirlinks/-k, --no-copy-links, -D, --devices, --no-devices, --specials, --no-specials, --owner, --no-owner, --group, --no-group, --perms/-p, --no-perms, --times/-t, --no-times, --acls/-A, --no-acls, --xattrs/-X, --no-xattrs, --numeric-ids, and --no-numeric-ids"; | ||
| const SUPPORTED_OPTIONS_LIST: &str = "--help/-h, --version/-V, --daemon, --dry-run/-n, --list-only, --archive/-a, --delete/--del, --delete-before, --delete-during, --delete-delay, --delete-after, --checksum/-c, --size-only, --ignore-existing, --exclude, --exclude-from, --include, --include-from, --filter (including exclude-if-present=FILE), --files-from, --password-file, --no-motd, --from0, --bwlimit, --timeout, --protocol, --rsync-path, --compress/-z, --no-compress, --compress-level, --info, --verbose/-v, --progress, --no-progress, --msgs2stderr, --itemize-changes/-i, --out-format, --stats, --partial, --partial-dir, --no-partial, --remove-source-files, --remove-sent-files, --inplace, --no-inplace, --whole-file/-W, --no-whole-file, -P, --sparse/-S, --no-sparse, --copy-links/-L, --copy-dirlinks/-k, --no-copy-links, -D, --devices, --no-devices, --specials, --no-specials, --owner, --no-owner, --group, --no-group, --perms/-p, --no-perms, --times/-t, --no-times, --acls/-A, --no-acls, --xattrs/-X, --no-xattrs, --numeric-ids, and --no-numeric-ids"; |
There was a problem hiding this comment.
Remove duplicate SUPPORTED_OPTIONS_LIST const
Introducing a second const SUPPORTED_OPTIONS_LIST right after the existing one leaves two top‑level constants with the same name in lib.rs. Rust disallows multiple items sharing the same identifier in a module, so the crate will fail to compile before any of the new debug flag logic can run. Replace the existing declaration instead of adding another so the constants remain unique.
Useful? React with 👍 / 👎.
…#3828) Audit the 64-entry PARALLEL_STAT_THRESHOLD against high-latency filesystem semantics. Surveys NFS GETATTR cost, FUSE attribute caching, and server-side concurrency ceilings; proposes statfs-based detection, env var override, and CLI flag with auto/always/never modes.
…3923) Design note motivating per-filesystem thresholds for the receiver's parallel stat refresh. Captures detection strategy via statfs magic numbers, a starting threshold table, an implementation sketch with a per-device cache, and the misdetection risks on bind mounts and overlay filesystems.
…#3828) Audit the 64-entry PARALLEL_STAT_THRESHOLD against high-latency filesystem semantics. Surveys NFS GETATTR cost, FUSE attribute caching, and server-side concurrency ceilings; proposes statfs-based detection, env var override, and CLI flag with auto/always/never modes.
…3923) Design note motivating per-filesystem thresholds for the receiver's parallel stat refresh. Captures detection strategy via statfs magic numbers, a starting threshold table, an implementation sketch with a per-device cache, and the misdetection risks on bind mounts and overlay filesystems.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68fc1090c1848323a37c9d11acef17f9