Skip to content

feat: add --io-uring/--no-io-uring CLI flags - #2429

Merged
oferchen merged 1 commit into
masterfrom
feat/io-uring-cli-flags
Feb 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/io-uring-cli-flags

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add IoUringPolicy enum (Auto/Enabled/Disabled) to fast_io crate
  • Add --io-uring flag to force io_uring usage (errors if unavailable)
  • Add --no-io-uring flag to disable io_uring and use standard buffered I/O
  • Default Auto preserves existing auto-detection behavior unchanged
  • Wire policy through CLI -> core -> transfer -> fast_io (24 files)

Test plan

  • All 22,070 tests pass
  • cargo fmt clean
  • cargo clippy clean (zero warnings)
  • Builder tests for IoUringPolicy variants
  • Verify on Linux that --io-uring enables io_uring
  • Verify on macOS/Windows that --io-uring produces an error

Add IoUringPolicy enum (Auto/Enabled/Disabled) to control io_uring
usage for file I/O. --io-uring forces io_uring (errors if unavailable),
--no-io-uring disables it. Default Auto preserves existing behavior.
@oferchen
oferchen merged commit 6e32e09 into master Feb 22, 2026
9 checks passed
@github-actions github-actions Bot added the enhancement New feature or request label Feb 22, 2026
@oferchen
oferchen deleted the feat/io-uring-cli-flags branch February 22, 2026 12:33
oferchen added a commit that referenced this pull request May 1, 2026
Add IoUringPolicy enum (Auto/Enabled/Disabled) to control io_uring
usage for file I/O. --io-uring forces io_uring (errors if unavailable),
--no-io-uring disables it. Default Auto preserves existing behavior.
oferchen added a commit that referenced this pull request May 5, 2026
Add IoUringPolicy enum (Auto/Enabled/Disabled) to control io_uring
usage for file I/O. --io-uring forces io_uring (errors if unavailable),
--no-io-uring disables it. Default Auto preserves existing behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant